Mercurial > pidgin.yaz
changeset 23200:3353ac89ccb1
A patch from Kevin Wu Won to add mnemonics to the docklet menu.
Refs #5916
committer: Richard Laager <rlaager@wiktel.com>
author | Kevin Wu Won <exclipy@gmail.com> |
---|---|
date | Mon, 26 May 2008 06:48:59 +0000 |
parents | c4b476c55b49 |
children | 326b1b389a88 |
files | COPYRIGHT pidgin/gtkdocklet.c |
diffstat | 2 files changed, 11 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/COPYRIGHT Mon May 26 06:47:32 2008 +0000 +++ b/COPYRIGHT Mon May 26 06:48:59 2008 +0000 @@ -449,6 +449,7 @@ Matt Wilson Dan Winship Scott Wolchok +Kevin Wu Won Pui Lam Wong Justin Wood Ximian
--- a/pidgin/gtkdocklet.c Mon May 26 06:47:32 2008 +0000 +++ b/pidgin/gtkdocklet.c Mon May 26 06:48:59 2008 +0000 @@ -530,7 +530,7 @@ PidginStatusBox *statusbox = NULL; submenu = gtk_menu_new(); - menuitem = gtk_menu_item_new_with_label(_("Change Status")); + menuitem = gtk_menu_item_new_with_mnemonic(_("_Change Status")); gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), submenu); if(pidgin_blist_get_default_gtk_blist() != NULL) { @@ -678,12 +678,12 @@ menu = gtk_menu_new(); - menuitem = gtk_check_menu_item_new_with_label(_("Show Buddy List")); + menuitem = gtk_check_menu_item_new_with_mnemonic(_("_Show Buddy List")); gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(menuitem), purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/blist/list_visible")); g_signal_connect(G_OBJECT(menuitem), "toggled", G_CALLBACK(docklet_toggle_blist), NULL); gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem); - menuitem = gtk_menu_item_new_with_label(_("Unread Messages")); + menuitem = gtk_menu_item_new_with_mnemonic(_("_Unread Messages")); if (pending) { GtkWidget *submenu = gtk_menu_new(); @@ -704,7 +704,7 @@ pidgin_separator(menu); - menuitem = pidgin_new_item_from_stock(menu, _("New Message..."), PIDGIN_STOCK_TOOLBAR_MESSAGE_NEW, G_CALLBACK(pidgin_dialogs_im), NULL, 0, 0, NULL); + menuitem = pidgin_new_item_from_stock(menu, _("_New Message..."), PIDGIN_STOCK_TOOLBAR_MESSAGE_NEW, G_CALLBACK(pidgin_dialogs_im), NULL, 0, 0, NULL); if (status == PURPLE_STATUS_OFFLINE) gtk_widget_set_sensitive(menuitem, FALSE); @@ -713,20 +713,20 @@ pidgin_separator(menu); - pidgin_new_item_from_stock(menu, _("Accounts"), NULL, G_CALLBACK(pidgin_accounts_window_show), NULL, 0, 0, NULL); - pidgin_new_item_from_stock(menu, _("Plugins"), PIDGIN_STOCK_TOOLBAR_PLUGINS, G_CALLBACK(pidgin_plugin_dialog_show), NULL, 0, 0, NULL); - pidgin_new_item_from_stock(menu, _("Preferences"), GTK_STOCK_PREFERENCES, G_CALLBACK(pidgin_prefs_show), NULL, 0, 0, NULL); + pidgin_new_item_from_stock(menu, _("_Accounts"), NULL, G_CALLBACK(pidgin_accounts_window_show), NULL, 0, 0, NULL); + pidgin_new_item_from_stock(menu, _("Plu_gins"), PIDGIN_STOCK_TOOLBAR_PLUGINS, G_CALLBACK(pidgin_plugin_dialog_show), NULL, 0, 0, NULL); + pidgin_new_item_from_stock(menu, _("_Preferences"), GTK_STOCK_PREFERENCES, G_CALLBACK(pidgin_prefs_show), NULL, 0, 0, NULL); pidgin_separator(menu); - menuitem = gtk_check_menu_item_new_with_label(_("Mute Sounds")); + menuitem = gtk_check_menu_item_new_with_mnemonic(_("_Mute Sounds")); gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(menuitem), purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/sound/mute")); if (!strcmp(purple_prefs_get_string(PIDGIN_PREFS_ROOT "/sound/method"), "none")) gtk_widget_set_sensitive(GTK_WIDGET(menuitem), FALSE); g_signal_connect(G_OBJECT(menuitem), "toggled", G_CALLBACK(docklet_toggle_mute), NULL); gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem); - menuitem = gtk_check_menu_item_new_with_label(_("Blink on New Message")); + menuitem = gtk_check_menu_item_new_with_mnemonic(_("_Blink on New Message")); gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(menuitem), purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/docklet/blink")); g_signal_connect(G_OBJECT(menuitem), "toggled", G_CALLBACK(docklet_toggle_blink), NULL); gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem); @@ -736,7 +736,7 @@ /* add plugin actions */ docklet_plugin_actions(menu); - pidgin_new_item_from_stock(menu, _("Quit"), GTK_STOCK_QUIT, G_CALLBACK(purple_core_quit), NULL, 0, 0, NULL); + pidgin_new_item_from_stock(menu, _("_Quit"), GTK_STOCK_QUIT, G_CALLBACK(purple_core_quit), NULL, 0, 0, NULL); #ifdef _WIN32 g_signal_connect(menu, "leave-notify-event", G_CALLBACK(docklet_menu_leave_enter), NULL);