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"
"mesa-headers"
"mesa"
"libadwaita"
)
)

View File

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

View File

@ -198,8 +198,8 @@ struct _GemGraphClientWindow
GtkApplicationWindow parent_instance;
/* Template widgets */
GtkHeaderBar *header_bar;
GtkLabel *label;
GtkHeaderBar *main_titlebar;
//GtkLabel *label;
};
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,
GemGraphClientWindow,
header_bar);
gtk_widget_class_bind_template_child(widget_class,
GemGraphClientWindow,
label);
main_titlebar);
//gtk_widget_class_bind_template_child(widget_class,
// GemGraphClientWindow,
// label);
}
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="title">GemGraph 0.0.1</property>
<child type="titlebar">
<object class="AdwHeaderBar" id="main_titlebar">
<object class="GtkHeaderBar" id="main_titlebar">
<child type="end">
<object class="GtkMenuButton" id="main_button_menu">
<property name="direction">none</property>
@ -43,7 +43,7 @@
</object>
</child>
<child>
<object class="AdwToastOverlay" id="toast_overlay">
<object class="GtkOverlay" id="toast_overlay">
<property name="child">
<object class="GtkPaned" id="main_paned">
<property name="position">300</property>