Hi. Try to keep mailing list in loop too. I'm redirecting this back again.
2010/6/14 Alexander Kuleshov <kuleshovm...@gmail.com>: > Yes. > > typedef struct _MainWin MainWin; > typedef struct _MainWinClass MainWinClass; > > #define LOAD_BUFFER_SIZE 65536 > > #define MAIN_WIN_TYPE (main_win_get_type ()) > #define MAIN_WIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), > MAIN_WIN_TYPE, MainWin)) > #define MAIN_WIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), > MAIN_WIN_TYPE, MainWinClass)) > #define IS_MAIN_WIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), > MAIN_WIN_TYPE)) > #define IS_MAIN_WIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), > MAIN_WIN_TYPE)) > #define MAIN_WIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), > MAIN_WIN_TYPE, MainWinClass)) > > > > typedef struct _MainWinClass > { > GtkWindowClass parent_class; > }; > > typedef struct _MainWin > { > GtkWindow parent; > GtkWidget* scroll; > GtkWidget* box; > GtkWidget *toolbar; > }; > > /* constructor */ > GtkWindow* main_win_new(); > > gboolean main_win_open( MainWin* mw, const char* file_path); > > void main_win_show_error( MainWin* mw, const char* message); > > void main_win_close( MainWin* mw ); > > GType main_win_get_type(void); > > void on_open( GtkWidget* btn, MainWin* mw ); You still haven't answered how yout type is registered with GType (you need to show the contents of main_win_get_type() function or suitable macro that provides it). Tadej -- Tadej Borovšak tadeboro.blogspot.com tadeb...@gmail.com tadej.borov...@gmail.com _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list