Revision: 5256 http://geany.svn.sourceforge.net/geany/?rev=5256&view=rev Author: ntrel Date: 2010-09-23 14:37:22 +0000 (Thu, 23 Sep 2010)
Log Message: ----------- Move editor popup menu Insert Comments submenu to top of Insert menu.
Modified Paths: -------------- trunk/ChangeLog trunk/geany.glade trunk/src/interface.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-09-23 14:32:32 UTC (rev 5255) +++ trunk/ChangeLog 2010-09-23 14:37:22 UTC (rev 5256) @@ -12,6 +12,8 @@ * src/interface.c, src/keybindings.c, geany.glade: Move 'Edit->Commands->Insert Alternative White Space' to editor popup Insert menu. + * src/interface.c, geany.glade: + Move editor popup menu Insert Comments submenu to top of Insert menu.
2010-09-22 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/geany.glade =================================================================== --- trunk/geany.glade 2010-09-23 14:32:32 UTC (rev 5255) +++ trunk/geany.glade 2010-09-23 14:37:22 UTC (rev 5256) @@ -2626,6 +2626,26 @@ <widget class="GtkMenu" id="insert1_menu">
<child> + <widget class="GtkImageMenuItem" id="comments"> + <property name="visible">True</property> + <property name="label" translatable="yes">I_nsert Comments</property> + <property name="use_underline">True</property> + + <child internal-child="image"> + <widget class="GtkImage" id="image3732"> + <property name="visible">True</property> + <property name="stock">gtk-add</property> + <property name="icon_size">1</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + </widget> + </child> + </widget> + </child> + + <child> <widget class="GtkMenuItem" id="add_changelog_entry2"> <property name="visible">True</property> <property name="label" translatable="yes">Insert _ChangeLog Entry</property> @@ -2653,26 +2673,6 @@ </child>
<child> - <widget class="GtkImageMenuItem" id="comments"> - <property name="visible">True</property> - <property name="label" translatable="yes">I_nsert Comments</property> - <property name="use_underline">True</property> - - <child internal-child="image"> - <widget class="GtkImage" id="image3732"> - <property name="visible">True</property> - <property name="stock">gtk-add</property> - <property name="icon_size">1</property> - <property name="xalign">0.5</property> - <property name="yalign">0.5</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - </widget> - </child> - </widget> - </child> - - <child> <widget class="GtkSeparatorMenuItem" id="separator57"> <property name="visible">True</property> </widget>
Modified: trunk/src/interface.c =================================================================== --- trunk/src/interface.c 2010-09-23 14:32:32 UTC (rev 5255) +++ trunk/src/interface.c 2010-09-23 14:37:22 UTC (rev 5256) @@ -2104,11 +2104,11 @@ GtkWidget *menu_format2; GtkWidget *insert1; GtkWidget *insert1_menu; + GtkWidget *comments; + GtkWidget *image3732; GtkWidget *add_changelog_entry2; GtkWidget *insert_function_description1; GtkWidget *insert_multiline_comment1; - GtkWidget *comments; - GtkWidget *image3732; GtkWidget *separator57; GtkWidget *insert_date2; GtkWidget *image3733; @@ -2193,6 +2193,14 @@ insert1_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (insert1), insert1_menu);
+ comments = gtk_image_menu_item_new_with_mnemonic (_("I_nsert Comments")); + gtk_widget_show (comments); + gtk_container_add (GTK_CONTAINER (insert1_menu), comments); + + image3732 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU); + gtk_widget_show (image3732); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (comments), image3732); + add_changelog_entry2 = gtk_menu_item_new_with_mnemonic (_("Insert _ChangeLog Entry")); gtk_widget_show (add_changelog_entry2); gtk_container_add (GTK_CONTAINER (insert1_menu), add_changelog_entry2); @@ -2205,14 +2213,6 @@ gtk_widget_show (insert_multiline_comment1); gtk_container_add (GTK_CONTAINER (insert1_menu), insert_multiline_comment1);
- comments = gtk_image_menu_item_new_with_mnemonic (_("I_nsert Comments")); - gtk_widget_show (comments); - gtk_container_add (GTK_CONTAINER (insert1_menu), comments); - - image3732 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU); - gtk_widget_show (image3732); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (comments), image3732); - separator57 = gtk_separator_menu_item_new (); gtk_widget_show (separator57); gtk_container_add (GTK_CONTAINER (insert1_menu), separator57); @@ -2354,11 +2354,11 @@ GLADE_HOOKUP_OBJECT (edit_menu1, menu_format2, "menu_format2"); GLADE_HOOKUP_OBJECT (edit_menu1, insert1, "insert1"); GLADE_HOOKUP_OBJECT (edit_menu1, insert1_menu, "insert1_menu"); + GLADE_HOOKUP_OBJECT (edit_menu1, comments, "comments"); + GLADE_HOOKUP_OBJECT (edit_menu1, image3732, "image3732"); GLADE_HOOKUP_OBJECT (edit_menu1, add_changelog_entry2, "add_changelog_entry2"); GLADE_HOOKUP_OBJECT (edit_menu1, insert_function_description1, "insert_function_description1"); GLADE_HOOKUP_OBJECT (edit_menu1, insert_multiline_comment1, "insert_multiline_comment1"); - GLADE_HOOKUP_OBJECT (edit_menu1, comments, "comments"); - GLADE_HOOKUP_OBJECT (edit_menu1, image3732, "image3732"); GLADE_HOOKUP_OBJECT (edit_menu1, separator57, "separator57"); GLADE_HOOKUP_OBJECT (edit_menu1, insert_date2, "insert_date2"); GLADE_HOOKUP_OBJECT (edit_menu1, image3733, "image3733");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.