From 4bdecebebcfaeedea76fc6d03bd48793b2c5870f Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Fri, 30 May 2008 11:51:39 +0000 Subject: [PATCH] tell the user that a restart is needed for the changes to take effect. 2008-05-30 Sven Neumann * app/dialogs/module-dialog.c: tell the user that a restart is needed for the changes to take effect. svn path=/trunk/; revision=25871 --- ChangeLog | 5 +++++ app/dialogs/module-dialog.c | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index 587e10624d..82fb537a58 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-05-30 Sven Neumann + + * app/dialogs/module-dialog.c: tell the user that a restart is + needed for the changes to take effect. + 2008-05-30 Sven Neumann * app/dialogs/module-dialog.c: some more internal cleanups. diff --git a/app/dialogs/module-dialog.c b/app/dialogs/module-dialog.c index 611d70d4b6..389be9ab79 100644 --- a/app/dialogs/module-dialog.c +++ b/app/dialogs/module-dialog.c @@ -3,6 +3,7 @@ * * module-dialog.c * (C) 1999 Austin Donnelly + * (C) 2008 Sven Neumann * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -66,6 +67,7 @@ typedef struct GimpModule *selected; GtkListStore *list; + GtkWidget *hint; GtkWidget *table; GtkWidget *label[NUM_INFOS]; GtkWidget *error_box; @@ -145,6 +147,13 @@ module_dialog_new (Gimp *gimp) gtk_container_add (GTK_CONTAINER (GTK_DIALOG (shell)->vbox), vbox); gtk_widget_show (vbox); + dialog->hint = gimp_hint_box_new (_("You will have to restart GIMP " + "for the changes to take effect.")); + gtk_box_pack_start (GTK_BOX (vbox), dialog->hint, FALSE, FALSE, 0); + + if (gimp->write_modulerc) + gtk_widget_show (dialog->hint); + listbox = gtk_scrolled_window_new (NULL, NULL); gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (listbox), GTK_SHADOW_IN); @@ -320,6 +329,7 @@ dialog_enabled_toggled (GtkCellRendererToggle *celltoggle, g_object_unref (module); dialog->gimp->write_modulerc = TRUE; + gtk_widget_show (dialog->hint); } }