SF.net SVN: geany: [1942] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Sat Oct 13 09:35:34 UTC 2007


Revision: 1942
          http://geany.svn.sourceforge.net/geany/?rev=1942&view=rev
Author:   eht16
Date:     2007-10-13 02:35:34 -0700 (Sat, 13 Oct 2007)

Log Message:
-----------
Add menu accelerators to the custom date menu items.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/callbacks.c
    trunk/src/ui_utils.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-10-13 09:28:26 UTC (rev 1941)
+++ trunk/ChangeLog	2007-10-13 09:35:34 UTC (rev 1942)
@@ -4,6 +4,8 @@
    src/prefs.c, src/prefs.h, src/treeviews.c, src/treeviews.h:
    Add menu accelerators to the symbol and open files list popup menus.
    Add option to display full path name in the open files list.
+ * src/callbacks.c, src/ui_utils.c:
+   Add menu accelerators to the custom date menu items.
 
 
 2007-10-10  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>

Modified: trunk/src/callbacks.c
===================================================================
--- trunk/src/callbacks.c	2007-10-13 09:28:26 UTC (rev 1941)
+++ trunk/src/callbacks.c	2007-10-13 09:35:34 UTC (rev 1942)
@@ -1453,7 +1453,7 @@
 		format = "%m.%d.%Y %H:%M:%S";
 	else if (utils_str_equal(_("yyyy/mm/dd hh:mm:ss"), (gchar*) user_data))
 		format = "%Y/%m/%d %H:%M:%S";
-	else if (utils_str_equal(_("Use Custom Date Format"), (gchar*) user_data))
+	else if (utils_str_equal(_("_Use Custom Date Format"), (gchar*) user_data))
 		format = ui_prefs.custom_date_format;
 	else
 	{

Modified: trunk/src/ui_utils.c
===================================================================
--- trunk/src/ui_utils.c	2007-10-13 09:28:26 UTC (rev 1941)
+++ trunk/src/ui_utils.c	2007-10-13 09:35:34 UTC (rev 1942)
@@ -437,12 +437,12 @@
 {
 	GtkWidget *item;
 
-	item = gtk_menu_item_new_with_label(label);
+	item = gtk_menu_item_new_with_mnemonic(label);
 	gtk_container_add(GTK_CONTAINER(me), item);
 	gtk_widget_show(item);
 	g_signal_connect((gpointer) item, "activate", G_CALLBACK(on_menu_insert_date_activate), label);
 
-	item = gtk_menu_item_new_with_label(label);
+	item = gtk_menu_item_new_with_mnemonic(label);
 	gtk_container_add(GTK_CONTAINER(mp), item);
 	gtk_widget_show(item);
 	g_signal_connect((gpointer) item, "activate", G_CALLBACK(on_insert_date_activate), label);
@@ -478,8 +478,8 @@
 	gtk_container_add(GTK_CONTAINER(menu_popup), item);
 	gtk_widget_show(item);
 
-	str = _("Use Custom Date Format");
-	item = gtk_menu_item_new_with_label(str);
+	str = _("_Use Custom Date Format");
+	item = gtk_menu_item_new_with_mnemonic(str);
 	gtk_container_add(GTK_CONTAINER(menu_edit), item);
 	gtk_widget_show(item);
 	g_signal_connect((gpointer) item, "activate", G_CALLBACK(on_menu_insert_date_activate),
@@ -487,7 +487,7 @@
 	g_object_set_data_full(G_OBJECT(app->window), "insert_date_custom1", gtk_widget_ref(item),
 													(GDestroyNotify)gtk_widget_unref);
 
-	item = gtk_menu_item_new_with_label(str);
+	item = gtk_menu_item_new_with_mnemonic(str);
 	gtk_container_add(GTK_CONTAINER(menu_popup), item);
 	gtk_widget_show(item);
 	g_signal_connect((gpointer) item, "activate", G_CALLBACK(on_insert_date_activate),
@@ -495,7 +495,7 @@
 	g_object_set_data_full(G_OBJECT(app->popup_menu), "insert_date_custom2", gtk_widget_ref(item),
 													(GDestroyNotify)gtk_widget_unref);
 
-	insert_date_items(menu_edit, menu_popup, _("Set Custom Date Format"));
+	insert_date_items(menu_edit, menu_popup, _("_Set Custom Date Format"));
 }
 
 


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