gimp r25871 - in trunk: . app/dialogs



Author: neo
Date: Fri May 30 11:51:39 2008
New Revision: 25871
URL: http://svn.gnome.org/viewvc/gimp?rev=25871&view=rev

Log:
2008-05-30  Sven Neumann  <sven gimp org>

	* app/dialogs/module-dialog.c: tell the user that a restart is
	needed for the changes to take effect.


Modified:
   trunk/ChangeLog
   trunk/app/dialogs/module-dialog.c

Modified: trunk/app/dialogs/module-dialog.c
==============================================================================
--- trunk/app/dialogs/module-dialog.c	(original)
+++ trunk/app/dialogs/module-dialog.c	Fri May 30 11:51:39 2008
@@ -3,6 +3,7 @@
  *
  * module-dialog.c
  * (C) 1999 Austin Donnelly <austin gimp org>
+ * (C) 2008 Sven Neumann <sven gimp org>
  *
  * 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 @@
   GimpModule   *selected;
   GtkListStore *list;
 
+  GtkWidget    *hint;
   GtkWidget    *table;
   GtkWidget    *label[NUM_INFOS];
   GtkWidget    *error_box;
@@ -145,6 +147,13 @@
   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 @@
       g_object_unref (module);
 
       dialog->gimp->write_modulerc = TRUE;
+      gtk_widget_show (dialog->hint);
    }
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]