Re: gtk_window_fullscreen problem



Hi.

Try to keep mailing list in loop too. I'm redirecting this back again.

2010/6/14 Alexander Kuleshov <kuleshovmail 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
tadeboro gmail com
tadej borovsak gmail com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]