WIP: widgets bound
This commit is contained in:
parent
227c448052
commit
11c9405080
|
@ -73,7 +73,7 @@ class AboutDialog(Gtk.AboutDialog):
|
||||||
def __init__(self, parent):
|
def __init__(self, parent):
|
||||||
Gtk.AboutDialog.__init__(self)
|
Gtk.AboutDialog.__init__(self)
|
||||||
self.props.program_name = 'GemGraph'
|
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.authors = ['Adrien Bourmault', 'Jean Sirmai']
|
||||||
self.props.copyright = 'Copyright © 2022 Libre en Communs'
|
self.props.copyright = 'Copyright © 2022 Libre en Communs'
|
||||||
self.props.logo_icon_name = 'application-x-executable'
|
self.props.logo_icon_name = 'application-x-executable'
|
||||||
|
|
|
@ -74,7 +74,9 @@ gem_graph_client_application_about_action (GSimpleAction *action,
|
||||||
GVariant *parameter,
|
GVariant *parameter,
|
||||||
gpointer user_data)
|
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;
|
GemGraphClientApplication *self = user_data;
|
||||||
GtkWindow *window = NULL;
|
GtkWindow *window = NULL;
|
||||||
|
|
||||||
|
@ -83,11 +85,11 @@ gem_graph_client_application_about_action (GSimpleAction *action,
|
||||||
window = gtk_application_get_active_window(GTK_APPLICATION (self));
|
window = gtk_application_get_active_window(GTK_APPLICATION (self));
|
||||||
|
|
||||||
gtk_show_about_dialog(window,
|
gtk_show_about_dialog(window,
|
||||||
"program-name", "gem-graph-client",
|
"program-name", "Gem-graph",
|
||||||
"logo-icon-name", "org.alec.gemgraph",
|
"logo-icon-name", "application-x-executable",
|
||||||
"authors", authors,
|
"authors", authors,
|
||||||
"version", "0.1.0",
|
"version", "0.1.0",
|
||||||
"copyright", "© 2023 neox",
|
"copyright", "Copyright © 2022 Libre en Communs",
|
||||||
NULL);
|
NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
24
src/window.c
24
src/window.c
|
@ -199,7 +199,11 @@ struct _GemGraphClientWindow
|
||||||
|
|
||||||
/* Template widgets */
|
/* Template widgets */
|
||||||
GtkHeaderBar *main_titlebar;
|
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,
|
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,
|
gtk_widget_class_bind_template_child(widget_class,
|
||||||
GemGraphClientWindow,
|
GemGraphClientWindow,
|
||||||
main_titlebar);
|
main_titlebar);
|
||||||
//gtk_widget_class_bind_template_child(widget_class,
|
gtk_widget_class_bind_template_child(widget_class,
|
||||||
// GemGraphClientWindow,
|
GemGraphClientWindow,
|
||||||
// label);
|
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)
|
static void gem_graph_client_window_init(GemGraphClientWindow *self)
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<property name="default-height">720</property>
|
<property name="default-height">720</property>
|
||||||
<property name="default-width">1080</property>
|
<property name="default-width">1080</property>
|
||||||
<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.1.0</property>
|
||||||
<child type="titlebar">
|
<child type="titlebar">
|
||||||
<object class="GtkHeaderBar" id="main_titlebar">
|
<object class="GtkHeaderBar" id="main_titlebar">
|
||||||
<child type="end">
|
<child type="end">
|
||||||
|
|
Loading…
Reference in New Issue