SF.net SVN: geany:[5230] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Tue Sep 14 15:19:13 UTC 2010


Revision: 5230
          http://geany.svn.sourceforge.net/geany/?rev=5230&view=rev
Author:   ntrel
Date:     2010-09-14 15:19:13 +0000 (Tue, 14 Sep 2010)

Log Message:
-----------
Don't translate indent width menu items as they are now used for
atoi().

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/geany.glade
    trunk/src/interface.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2010-09-14 15:10:46 UTC (rev 5229)
+++ trunk/ChangeLog	2010-09-14 15:19:13 UTC (rev 5230)
@@ -12,6 +12,9 @@
    updated by Erik de Castro Lopo - thanks).
  * src/interface.c, src/callbacks.c, src/callbacks.h, geany.glade:
    Combine indent width menu item callbacks.
+ * src/interface.c, geany.glade:
+   Don't translate indent width menu items as they are now used for
+   atoi().
 
 
 2010-09-13  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>

Modified: trunk/geany.glade
===================================================================
--- trunk/geany.glade	2010-09-14 15:10:46 UTC (rev 5229)
+++ trunk/geany.glade	2010-09-14 15:19:13 UTC (rev 5230)
@@ -1435,7 +1435,7 @@
 			      <child>
 				<widget class="GtkRadioMenuItem" id="indent_width_1">
 				  <property name="visible">True</property>
-				  <property name="label" translatable="yes">_1</property>
+				  <property name="label">_1</property>
 				  <property name="use_underline">True</property>
 				  <property name="active">True</property>
 				  <signal name="activate" handler="on_indent_width_activate" last_modification_time="Tue, 14 Sep 2010 15:03:11 GMT"/>
@@ -1445,7 +1445,7 @@
 			      <child>
 				<widget class="GtkRadioMenuItem" id="indent_width_2">
 				  <property name="visible">True</property>
-				  <property name="label" translatable="yes">_2</property>
+				  <property name="label">_2</property>
 				  <property name="use_underline">True</property>
 				  <property name="active">True</property>
 				  <property name="group">indent_width_1</property>
@@ -1456,7 +1456,7 @@
 			      <child>
 				<widget class="GtkRadioMenuItem" id="indent_width_3">
 				  <property name="visible">True</property>
-				  <property name="label" translatable="yes">_3</property>
+				  <property name="label">_3</property>
 				  <property name="use_underline">True</property>
 				  <property name="active">True</property>
 				  <property name="group">indent_width_1</property>
@@ -1467,7 +1467,7 @@
 			      <child>
 				<widget class="GtkRadioMenuItem" id="indent_width_4">
 				  <property name="visible">True</property>
-				  <property name="label" translatable="yes">_4</property>
+				  <property name="label">_4</property>
 				  <property name="use_underline">True</property>
 				  <property name="active">True</property>
 				  <property name="group">indent_width_1</property>
@@ -1478,7 +1478,7 @@
 			      <child>
 				<widget class="GtkRadioMenuItem" id="indent_width_5">
 				  <property name="visible">True</property>
-				  <property name="label" translatable="yes">_5</property>
+				  <property name="label">_5</property>
 				  <property name="use_underline">True</property>
 				  <property name="active">True</property>
 				  <property name="group">indent_width_1</property>
@@ -1489,7 +1489,7 @@
 			      <child>
 				<widget class="GtkRadioMenuItem" id="indent_width_6">
 				  <property name="visible">True</property>
-				  <property name="label" translatable="yes">_6</property>
+				  <property name="label">_6</property>
 				  <property name="use_underline">True</property>
 				  <property name="active">True</property>
 				  <property name="group">indent_width_1</property>
@@ -1500,7 +1500,7 @@
 			      <child>
 				<widget class="GtkRadioMenuItem" id="indent_width_7">
 				  <property name="visible">True</property>
-				  <property name="label" translatable="yes">_7</property>
+				  <property name="label">_7</property>
 				  <property name="use_underline">True</property>
 				  <property name="active">True</property>
 				  <property name="group">indent_width_1</property>
@@ -1511,7 +1511,7 @@
 			      <child>
 				<widget class="GtkRadioMenuItem" id="indent_width_8">
 				  <property name="visible">True</property>
-				  <property name="label" translatable="yes">_8</property>
+				  <property name="label">_8</property>
 				  <property name="use_underline">True</property>
 				  <property name="active">True</property>
 				  <property name="group">indent_width_1</property>

Modified: trunk/src/interface.c
===================================================================
--- trunk/src/interface.c	2010-09-14 15:10:46 UTC (rev 5229)
+++ trunk/src/interface.c	2010-09-14 15:19:13 UTC (rev 5230)
@@ -987,49 +987,49 @@
   indent_width1_menu = gtk_menu_new ();
   gtk_menu_item_set_submenu (GTK_MENU_ITEM (indent_width1), indent_width1_menu);
 
-  indent_width_1 = gtk_radio_menu_item_new_with_mnemonic (indent_width_1_group, _("_1"));
+  indent_width_1 = gtk_radio_menu_item_new_with_mnemonic (indent_width_1_group, "_1");
   indent_width_1_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (indent_width_1));
   gtk_widget_show (indent_width_1);
   gtk_container_add (GTK_CONTAINER (indent_width1_menu), indent_width_1);
   gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (indent_width_1), TRUE);
 
-  indent_width_2 = gtk_radio_menu_item_new_with_mnemonic (indent_width_1_group, _("_2"));
+  indent_width_2 = gtk_radio_menu_item_new_with_mnemonic (indent_width_1_group, "_2");
   indent_width_1_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (indent_width_2));
   gtk_widget_show (indent_width_2);
   gtk_container_add (GTK_CONTAINER (indent_width1_menu), indent_width_2);
   gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (indent_width_2), TRUE);
 
-  indent_width_3 = gtk_radio_menu_item_new_with_mnemonic (indent_width_1_group, _("_3"));
+  indent_width_3 = gtk_radio_menu_item_new_with_mnemonic (indent_width_1_group, "_3");
   indent_width_1_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (indent_width_3));
   gtk_widget_show (indent_width_3);
   gtk_container_add (GTK_CONTAINER (indent_width1_menu), indent_width_3);
   gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (indent_width_3), TRUE);
 
-  indent_width_4 = gtk_radio_menu_item_new_with_mnemonic (indent_width_1_group, _("_4"));
+  indent_width_4 = gtk_radio_menu_item_new_with_mnemonic (indent_width_1_group, "_4");
   indent_width_1_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (indent_width_4));
   gtk_widget_show (indent_width_4);
   gtk_container_add (GTK_CONTAINER (indent_width1_menu), indent_width_4);
   gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (indent_width_4), TRUE);
 
-  indent_width_5 = gtk_radio_menu_item_new_with_mnemonic (indent_width_1_group, _("_5"));
+  indent_width_5 = gtk_radio_menu_item_new_with_mnemonic (indent_width_1_group, "_5");
   indent_width_1_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (indent_width_5));
   gtk_widget_show (indent_width_5);
   gtk_container_add (GTK_CONTAINER (indent_width1_menu), indent_width_5);
   gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (indent_width_5), TRUE);
 
-  indent_width_6 = gtk_radio_menu_item_new_with_mnemonic (indent_width_1_group, _("_6"));
+  indent_width_6 = gtk_radio_menu_item_new_with_mnemonic (indent_width_1_group, "_6");
   indent_width_1_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (indent_width_6));
   gtk_widget_show (indent_width_6);
   gtk_container_add (GTK_CONTAINER (indent_width1_menu), indent_width_6);
   gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (indent_width_6), TRUE);
 
-  indent_width_7 = gtk_radio_menu_item_new_with_mnemonic (indent_width_1_group, _("_7"));
+  indent_width_7 = gtk_radio_menu_item_new_with_mnemonic (indent_width_1_group, "_7");
   indent_width_1_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (indent_width_7));
   gtk_widget_show (indent_width_7);
   gtk_container_add (GTK_CONTAINER (indent_width1_menu), indent_width_7);
   gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (indent_width_7), TRUE);
 
-  indent_width_8 = gtk_radio_menu_item_new_with_mnemonic (indent_width_1_group, _("_8"));
+  indent_width_8 = gtk_radio_menu_item_new_with_mnemonic (indent_width_1_group, "_8");
   indent_width_1_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (indent_width_8));
   gtk_widget_show (indent_width_8);
   gtk_container_add (GTK_CONTAINER (indent_width1_menu), indent_width_8);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list