summaryrefslogtreecommitdiff
path: root/src/gui/menus
diff options
context:
space:
mode:
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));
+
}