/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7---*/ /* EtcTerminal - The ultimate, fantabulous scrolled text view widget, if */ /* I can ever get it to stop spitting errors. Someday, this */ /* will have many turbo-studly, to-die-for features... */ /* */ /* Running this widget in the test container produces the following error */ /* repeated three times at application start up: */ /* */ /* (test_etcterminal:7253): Gtk-CRITICAL **: file gtkrange.c: line 440 */ /* (gtk_range_get_adjustment): assertion `GTK_IS_RANGE (range)' failed */ /* */ /*------------------------------------------------------------------------*/ #ifndef __etcterminal_h__ #define __etcterminal_h__ //#include #include G_BEGIN_DECLS #define ETC_TERMINAL_TYPE (etc_terminal_get_type()) #define ETC_TERMINAL(obj) (GTK_CHECK_CAST((obj), ETC_TERMINAL_TYPE, EtcTerminal)) #define ETC_TERMINAL_CLASS(klass) (GTK_CHECK_CLASS_CAST((klass), ETC_TERMINAL_TYPE, EtcTerminalClass)) #define IS_ETC_TERMINAL(obj) (GTK_CHECK_TYPE((obj), ETC_TERMINAL_TYPE)) #define IS_ETC_TERMINAL_CLASS(klass) (GTK_CHECK_CLASS_TYPE((klass), ETC_TERMINAL_TYPE)) typedef struct _EtcTerminal { GtkScrolledWindow term; GtkWidget *textview; } EtcTerminal; typedef struct _EtcTerminalClass { GtkScrolledWindowClass parent_class; } EtcTerminalClass; GType etc_terminal_get_type (void); GtkWidget * etc_terminal_new (void); G_END_DECLS #endif /* __etcterminal_h__ */