Update gtk118
This commit is contained in:
parent
48768c4fcb
commit
7a306a6306
|
@ -62,4 +62,4 @@ static void my_window_class_init(MyWindowClass * klass){}
|
|||
|
||||
MyWindow * my_window_new(GtkApplication * application){
|
||||
return (MyWindow*)g_object_new(my_window_get_type(),"application",application,NULL);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include "MyWindow.h"
|
||||
|
||||
static void gtkmain(GtkApplication * app,gpointer user_data){
|
||||
//Create a window and show
|
||||
MyWindow * window = my_window_new(app);
|
||||
gtk_widget_show(GTK_WIDGET(window));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue