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 <[EMAIL PROTECTED]>
* 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);
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list
Want to limit the commits to a few modules? Go to above URL, log in to edit
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development
mailing list. Email [EMAIL PROTECTED] if interested.