gthumb r2192 - in trunk: . src
- From: mjc svn gnome org
- To: svn-commits-list gnome org
- Subject: gthumb r2192 - in trunk: . src
- Date: Wed, 16 Jan 2008 13:02:10 +0000 (GMT)
Author: mjc
Date: Wed Jan 16 13:02:09 2008
New Revision: 2192
URL: http://svn.gnome.org/viewvc/gthumb?rev=2192&view=rev
Log:
2008-01-16 Michael J. Chudobiak <mjc svn gnome org>
* src/dlg-scripts.c: (add_menu_item_and_action):
Do not show undefined scripts in the Scripts menu.
Modified:
trunk/ChangeLog
trunk/src/dlg-scripts.c
Modified: trunk/src/dlg-scripts.c
==============================================================================
--- trunk/src/dlg-scripts.c (original)
+++ trunk/src/dlg-scripts.c Wed Jan 16 13:02:09 2008
@@ -1173,14 +1173,17 @@
cb_data);
gtk_action_group_add_action (action_group, action);
- g_object_unref (action);
- gtk_ui_manager_add_ui (ui,
- merge_id,
- "/MenuBar/Scripts/User_Defined_Scripts",
- name,
- name,
- GTK_UI_MANAGER_MENUITEM,
- FALSE);
+ g_object_unref (action);
+
+ /* Add non-empty scripts to the menu */
+ if (strcmp (command, ""))
+ gtk_ui_manager_add_ui (ui,
+ merge_id,
+ "/MenuBar/Scripts/User_Defined_Scripts",
+ name,
+ name,
+ GTK_UI_MANAGER_MENUITEM,
+ FALSE);
g_free (full_label);
g_free (label);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]