WIP: widgets bound
This commit is contained in:
parent
227c448052
commit
11c9405080
|
@ -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'
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
30
src/window.c
30
src/window.c
|
@ -195,11 +195,15 @@ void on_activate(GtkApplication *app, gpointer user_data)
|
|||
|
||||
struct _GemGraphClientWindow
|
||||
{
|
||||
GtkApplicationWindow parent_instance;
|
||||
GtkApplicationWindow parent_instance;
|
||||
|
||||
/* Template widgets */
|
||||
GtkHeaderBar *main_titlebar;
|
||||
//GtkLabel *label;
|
||||
/* Template widgets */
|
||||
GtkHeaderBar *main_titlebar;
|
||||
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)
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue