pidgin/gtkblist.c

changeset 20697
f842f22cd12f
parent 20685
039aef89faf6
child 20698
678fb016af38
equal deleted inserted replaced
20696:fed6b4e72b8f 20697:f842f22cd12f
678 for (bnode = node->child; bnode != NULL; bnode = bnode->next) { 678 for (bnode = node->child; bnode != NULL; bnode = bnode->next) {
679 purple_blist_node_set_bool(bnode, "show_offline", setting); 679 purple_blist_node_set_bool(bnode, "show_offline", setting);
680 } 680 }
681 } 681 }
682 pidgin_blist_update(purple_get_blist(), node); 682 pidgin_blist_update(purple_get_blist(), node);
683 }
684
685 static void gtk_blist_show_systemlog_cb()
686 {
687 pidgin_syslog_show();
683 } 688 }
684 689
685 static void gtk_blist_show_onlinehelp_cb() 690 static void gtk_blist_show_onlinehelp_cb()
686 { 691 {
687 purple_notify_uri(NULL, PURPLE_WEBSITE "documentation"); 692 purple_notify_uri(NULL, PURPLE_WEBSITE "documentation");
3050 { 3055 {
3051 purple_prefs_set_bool(PIDGIN_PREFS_ROOT "/debug/enabled", 3056 purple_prefs_set_bool(PIDGIN_PREFS_ROOT "/debug/enabled",
3052 !purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/debug/enabled")); 3057 !purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/debug/enabled"));
3053 } 3058 }
3054 3059
3055 static void
3056 pidgin_blist_show_with_parent(gpointer data1, void (*callback)(GtkWindow *parent), gpointer data3)
3057 {
3058 callback(GTK_WINDOW(gtkblist->window));
3059 }
3060
3061 /*************************************************** 3060 /***************************************************
3062 * Crap * 3061 * Crap *
3063 ***************************************************/ 3062 ***************************************************/
3064 static GtkItemFactoryEntry blist_menu[] = 3063 static GtkItemFactoryEntry blist_menu[] =
3065 { 3064 {
3090 3089
3091 /* Tools */ 3090 /* Tools */
3092 { N_("/_Tools"), NULL, NULL, 0, "<Branch>", NULL }, 3091 { N_("/_Tools"), NULL, NULL, 0, "<Branch>", NULL },
3093 { N_("/Tools/Buddy _Pounces"), NULL, pidgin_pounces_manager_show, 0, "<Item>", NULL }, 3092 { N_("/Tools/Buddy _Pounces"), NULL, pidgin_pounces_manager_show, 0, "<Item>", NULL },
3094 { N_("/Tools/_Certificates"), NULL, pidgin_certmgr_show, 0, "<Item>", NULL }, 3093 { N_("/Tools/_Certificates"), NULL, pidgin_certmgr_show, 0, "<Item>", NULL },
3095 { N_("/Tools/Plu_gins"), "<CTL>U", pidgin_blist_show_with_parent, (int)pidgin_plugin_dialog_show, "<StockItem>", PIDGIN_STOCK_TOOLBAR_PLUGINS }, 3094 { N_("/Tools/Plu_gins"), "<CTL>U", pidgin_plugin_dialog_show, 0, "<StockItem>", PIDGIN_STOCK_TOOLBAR_PLUGINS },
3096 { N_("/Tools/Pr_eferences"), "<CTL>P", pidgin_prefs_show, 0, "<StockItem>", GTK_STOCK_PREFERENCES }, 3095 { N_("/Tools/Pr_eferences"), "<CTL>P", pidgin_prefs_show, 0, "<StockItem>", GTK_STOCK_PREFERENCES },
3097 { N_("/Tools/Pr_ivacy"), NULL, pidgin_privacy_dialog_show, 0, "<Item>", NULL }, 3096 { N_("/Tools/Pr_ivacy"), NULL, pidgin_privacy_dialog_show, 0, "<Item>", NULL },
3098 { "/Tools/sep2", NULL, NULL, 0, "<Separator>", NULL }, 3097 { "/Tools/sep2", NULL, NULL, 0, "<Separator>", NULL },
3099 { N_("/Tools/_File Transfers"), "<CTL>T", pidgin_xfer_dialog_show, 0, "<Item>", NULL }, 3098 { N_("/Tools/_File Transfers"), "<CTL>T", pidgin_xfer_dialog_show, 0, "<Item>", NULL },
3100 { N_("/Tools/R_oom List"), NULL, pidgin_roomlist_dialog_show, 0, "<Item>", NULL }, 3099 { N_("/Tools/R_oom List"), NULL, pidgin_roomlist_dialog_show, 0, "<Item>", NULL },
3101 { N_("/Tools/System _Log"), NULL, pidgin_blist_show_with_parent, (int)pidgin_syslog_show, "<Item>", NULL }, 3100 { N_("/Tools/System _Log"), NULL, gtk_blist_show_systemlog_cb, 0, "<Item>", NULL },
3102 { "/Tools/sep3", NULL, NULL, 0, "<Separator>", NULL }, 3101 { "/Tools/sep3", NULL, NULL, 0, "<Separator>", NULL },
3103 { N_("/Tools/Mute _Sounds"), "<CTL>S", pidgin_blist_mute_sounds_cb, 0, "<CheckItem>", NULL }, 3102 { N_("/Tools/Mute _Sounds"), "<CTL>S", pidgin_blist_mute_sounds_cb, 0, "<CheckItem>", NULL },
3104 /* Help */ 3103 /* Help */
3105 { N_("/_Help"), NULL, NULL, 0, "<Branch>", NULL }, 3104 { N_("/_Help"), NULL, NULL, 0, "<Branch>", NULL },
3106 { N_("/Help/Online _Help"), "F1", gtk_blist_show_onlinehelp_cb, 0, "<StockItem>", GTK_STOCK_HELP }, 3105 { N_("/Help/Online _Help"), "F1", gtk_blist_show_onlinehelp_cb, 0, "<StockItem>", GTK_STOCK_HELP },
3107 { N_("/Help/_Debug Window"), NULL, toggle_debug, 0, "<Item>", NULL }, 3106 { N_("/Help/_Debug Window"), NULL, toggle_debug, 0, "<Item>", NULL },
3108 #if GTK_CHECK_VERSION(2,6,0) 3107 #if GTK_CHECK_VERSION(2,6,0)
3109 { N_("/Help/_About"), NULL, pidgin_blist_show_with_parent, (int)pidgin_dialogs_about, "<StockItem>", GTK_STOCK_ABOUT }, 3108 { N_("/Help/_About"), NULL, pidgin_dialogs_about, 0, "<StockItem>", GTK_STOCK_ABOUT },
3110 #else 3109 #else
3111 { N_("/Help/_About"), NULL, pidgin_dialogs_about, 0, "<Item>", NULL }, 3110 { N_("/Help/_About"), NULL, pidgin_dialogs_about, 0, "<Item>", NULL },
3112 #endif 3111 #endif
3113 }; 3112 };
3114 3113

mercurial