summaryrefslogtreecommitdiff
path: root/src/gui/menus
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-08-18 22:27:06 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-08-18 22:29:56 (GMT)
commit3e9d5cedf701fd8957024f7ddf65238aea9a1eba (patch)
tree0495d0c5952f68a129b232325f45c23440ee1650 /src/gui/menus
parentc5631dd09fa9981e914ec9082c6270b69a719ca4 (diff)
Rebuilt the About window using Glade.
Diffstat (limited to 'src/gui/menus')
-rw-r--r--src/gui/menus/help.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/gui/menus/help.c b/src/gui/menus/help.c
index 154620a..db19758 100644
--- a/src/gui/menus/help.c
+++ b/src/gui/menus/help.c
@@ -161,12 +161,18 @@ static void mcb_help_bug_report(GtkMenuItem *menuitem, gpointer unused)
static void mcb_help_about(GtkMenuItem *menuitem, gpointer unused)
{
- GtkWindow *parent; /* Fenêtre principale */
+ GtkWindow *editor; /* Fenêtre graphique principale*/
+ GtkBuilder *builder; /* Constructeur utilisé */
GtkWidget *dialog; /* Boîte de dialogue à montrer */
- parent = get_editor_window();
+ editor = get_editor_window();
+
+ dialog = create_about_dialog(editor, &builder);
+
+ g_signal_connect_swapped(dialog, "destroy", G_CALLBACK(g_object_unref), builder);
- dialog = create_about_dialog(parent);
gtk_widget_show(dialog);
+ g_object_unref(G_OBJECT(editor));
+
}