Base window visible

This commit is contained in:
Adrien Bourmault 2023-01-24 21:54:29 +01:00
parent 4766fbc9bb
commit 227c448052
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
4 changed files with 10 additions and 12 deletions

View File

@ -21,5 +21,6 @@
"glib" "glib"
"mesa-headers" "mesa-headers"
"mesa" "mesa"
"libadwaita"
) )
) )

View File

@ -40,15 +40,12 @@ int main(int argc, char **argv)
// bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); // bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
// textdomain (GETTEXT_PACKAGE); // textdomain (GETTEXT_PACKAGE);
//app = gtk_application_new(NULL, G_APPLICATION_DEFAULT_FLAGS);
app = gem_graph_client_application_new("org.alec.gemgraph", app = gem_graph_client_application_new("org.alec.gemgraph",
G_APPLICATION_DEFAULT_FLAGS); G_APPLICATION_DEFAULT_FLAGS);
//g_signal_connect(app, "activate", G_CALLBACK(on_activate), NULL); //g_signal_connect(app, "activate", G_CALLBACK(on_activate), NULL);
res = g_application_run(G_APPLICATION(app), argc, argv); res = g_application_run(G_APPLICATION(app), argc, argv);
g_object_unref(app);
return res; return res;
} }

View File

@ -198,8 +198,8 @@ struct _GemGraphClientWindow
GtkApplicationWindow parent_instance; GtkApplicationWindow parent_instance;
/* Template widgets */ /* Template widgets */
GtkHeaderBar *header_bar; GtkHeaderBar *main_titlebar;
GtkLabel *label; //GtkLabel *label;
}; };
G_DEFINE_FINAL_TYPE (GemGraphClientWindow, G_DEFINE_FINAL_TYPE (GemGraphClientWindow,
@ -223,10 +223,10 @@ static void gem_graph_client_window_class_init(GemGraphClientWindowClass *klass)
gtk_widget_class_bind_template_child(widget_class, gtk_widget_class_bind_template_child(widget_class,
GemGraphClientWindow, GemGraphClientWindow,
header_bar); main_titlebar);
gtk_widget_class_bind_template_child(widget_class, //gtk_widget_class_bind_template_child(widget_class,
GemGraphClientWindow, // GemGraphClientWindow,
label); // label);
} }
static void gem_graph_client_window_init(GemGraphClientWindow *self) static void gem_graph_client_window_init(GemGraphClientWindow *self)

View File

@ -10,7 +10,7 @@
<property name="icon-name">application-x-executable</property> <property name="icon-name">application-x-executable</property>
<property name="title">GemGraph 0.0.1</property> <property name="title">GemGraph 0.0.1</property>
<child type="titlebar"> <child type="titlebar">
<object class="AdwHeaderBar" id="main_titlebar"> <object class="GtkHeaderBar" id="main_titlebar">
<child type="end"> <child type="end">
<object class="GtkMenuButton" id="main_button_menu"> <object class="GtkMenuButton" id="main_button_menu">
<property name="direction">none</property> <property name="direction">none</property>
@ -43,7 +43,7 @@
</object> </object>
</child> </child>
<child> <child>
<object class="AdwToastOverlay" id="toast_overlay"> <object class="GtkOverlay" id="toast_overlay">
<property name="child"> <property name="child">
<object class="GtkPaned" id="main_paned"> <object class="GtkPaned" id="main_paned">
<property name="position">300</property> <property name="position">300</property>