WIP: widgets bound

This commit is contained in:
Adrien Bourmault 2023-01-24 22:59:37 +01:00
parent 227c448052
commit 11c9405080
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
4 changed files with 31 additions and 13 deletions

View File

@ -73,7 +73,7 @@ class AboutDialog(Gtk.AboutDialog):
def __init__(self, parent):
Gtk.AboutDialog.__init__(self)
self.props.program_name = 'GemGraph'
self.props.version = "0.0.1"
self.props.version = "0.0.0"
self.props.authors = ['Adrien Bourmault', 'Jean Sirmai']
self.props.copyright = 'Copyright © 2022 Libre en Communs'
self.props.logo_icon_name = 'application-x-executable'

View File

@ -74,7 +74,9 @@ gem_graph_client_application_about_action (GSimpleAction *action,
GVariant *parameter,
gpointer user_data)
{
static const char *authors[] = {"neox", NULL};
static const char *authors[] = { "Adrien Bourmault <neox@a-lec.org>",
"Jean Sirmai <jean@a-lec.org>",
NULL};
GemGraphClientApplication *self = user_data;
GtkWindow *window = NULL;
@ -83,11 +85,11 @@ gem_graph_client_application_about_action (GSimpleAction *action,
window = gtk_application_get_active_window(GTK_APPLICATION (self));
gtk_show_about_dialog(window,
"program-name", "gem-graph-client",
"logo-icon-name", "org.alec.gemgraph",
"program-name", "Gem-graph",
"logo-icon-name", "application-x-executable",
"authors", authors,
"version", "0.1.0",
"copyright", "© 2023 neox",
"copyright", "Copyright © 2022 Libre en Communs",
NULL);
}

View File

@ -199,7 +199,11 @@ struct _GemGraphClientWindow
/* Template widgets */
GtkHeaderBar *main_titlebar;
//GtkLabel *label;
GtkStack *main_stack;
GtkStack *side_stack;
GtkPaned *main_paned;
GtkMenuButton *main_button_mode;
GtkToggleButton *main_button_sidebar;
};
G_DEFINE_FINAL_TYPE (GemGraphClientWindow,
@ -224,9 +228,21 @@ static void gem_graph_client_window_class_init(GemGraphClientWindowClass *klass)
gtk_widget_class_bind_template_child(widget_class,
GemGraphClientWindow,
main_titlebar);
//gtk_widget_class_bind_template_child(widget_class,
// GemGraphClientWindow,
// label);
gtk_widget_class_bind_template_child(widget_class,
GemGraphClientWindow,
main_stack);
gtk_widget_class_bind_template_child(widget_class,
GemGraphClientWindow,
side_stack);
gtk_widget_class_bind_template_child(widget_class,
GemGraphClientWindow,
main_paned);
gtk_widget_class_bind_template_child(widget_class,
GemGraphClientWindow,
main_button_mode);
gtk_widget_class_bind_template_child(widget_class,
GemGraphClientWindow,
main_button_sidebar);
}
static void gem_graph_client_window_init(GemGraphClientWindow *self)

View File

@ -8,7 +8,7 @@
<property name="default-height">720</property>
<property name="default-width">1080</property>
<property name="icon-name">application-x-executable</property>
<property name="title">GemGraph 0.0.1</property>
<property name="title">GemGraph 0.1.0</property>
<child type="titlebar">
<object class="GtkHeaderBar" id="main_titlebar">
<child type="end">