Add menu accelerators to the custom date menu items.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1942 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2007-10-13 09:35:34 +00:00
parent 1d9c244ad1
commit 16147c48fe
3 changed files with 9 additions and 7 deletions

View File

@ -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>

View File

@ -1453,7 +1453,7 @@ on_insert_date_activate (GtkMenuItem *menuitem,
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
{

View File

@ -437,12 +437,12 @@ static void insert_date_items(GtkMenu *me, GtkMenu *mp, gchar *label)
{
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 @@ void ui_create_insert_date_menu_items()
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 @@ void ui_create_insert_date_menu_items()
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 @@ void ui_create_insert_date_menu_items()
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"));
}