Mercurial > pidgin.yaz
comparison pidgin/gtkblist.c @ 26675:b290c7b9fc73
propagate from branch 'im.pidgin.pidgin' (head 3c568b43fb4447b65a2b06e6767340edd7763c53)
to branch 'org.darkrain42.pidgin.disco' (head ead0d4fe7ad002d288919e966edd3a24ef98edfc)
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Thu, 09 Apr 2009 04:27:58 +0000 |
parents | f5f08111da52 f5e613e05332 |
children | 4851546210a1 |
comparison
equal
deleted
inserted
replaced
26601:00f13da82914 | 26675:b290c7b9fc73 |
---|---|
47 #include "gtkcellrendererexpander.h" | 47 #include "gtkcellrendererexpander.h" |
48 #include "gtkcertmgr.h" | 48 #include "gtkcertmgr.h" |
49 #include "gtkconv.h" | 49 #include "gtkconv.h" |
50 #include "gtkdebug.h" | 50 #include "gtkdebug.h" |
51 #include "gtkdialogs.h" | 51 #include "gtkdialogs.h" |
52 #include "gtkdisco.h" | |
52 #include "gtkft.h" | 53 #include "gtkft.h" |
53 #include "gtklog.h" | 54 #include "gtklog.h" |
54 #include "gtkmenutray.h" | 55 #include "gtkmenutray.h" |
55 #include "gtkpounce.h" | 56 #include "gtkpounce.h" |
56 #include "gtkplugin.h" | 57 #include "gtkplugin.h" |
3378 { N_("/Tools/Plu_gins"), "<CTL>U", pidgin_plugin_dialog_show, 2, "<StockItem>", PIDGIN_STOCK_TOOLBAR_PLUGINS }, | 3379 { N_("/Tools/Plu_gins"), "<CTL>U", pidgin_plugin_dialog_show, 2, "<StockItem>", PIDGIN_STOCK_TOOLBAR_PLUGINS }, |
3379 { N_("/Tools/Pr_eferences"), "<CTL>P", pidgin_prefs_show, 0, "<StockItem>", GTK_STOCK_PREFERENCES }, | 3380 { N_("/Tools/Pr_eferences"), "<CTL>P", pidgin_prefs_show, 0, "<StockItem>", GTK_STOCK_PREFERENCES }, |
3380 { N_("/Tools/Pr_ivacy"), NULL, pidgin_privacy_dialog_show, 0, "<Item>", NULL }, | 3381 { N_("/Tools/Pr_ivacy"), NULL, pidgin_privacy_dialog_show, 0, "<Item>", NULL }, |
3381 { "/Tools/sep2", NULL, NULL, 0, "<Separator>", NULL }, | 3382 { "/Tools/sep2", NULL, NULL, 0, "<Separator>", NULL }, |
3382 { N_("/Tools/_File Transfers"), "<CTL>T", pidgin_xfer_dialog_show, 0, "<StockItem>", PIDGIN_STOCK_TOOLBAR_TRANSFER }, | 3383 { N_("/Tools/_File Transfers"), "<CTL>T", pidgin_xfer_dialog_show, 0, "<StockItem>", PIDGIN_STOCK_TOOLBAR_TRANSFER }, |
3384 { N_("/Tools/Service _Discovery"), NULL, pidgin_disco_dialog_show, 0, "<Item>", NULL }, | |
3383 { N_("/Tools/R_oom List"), NULL, pidgin_roomlist_dialog_show, 0, "<Item>", NULL }, | 3385 { N_("/Tools/R_oom List"), NULL, pidgin_roomlist_dialog_show, 0, "<Item>", NULL }, |
3384 { N_("/Tools/System _Log"), NULL, gtk_blist_show_systemlog_cb, 3, "<Item>", NULL }, | 3386 { N_("/Tools/System _Log"), NULL, gtk_blist_show_systemlog_cb, 3, "<Item>", NULL }, |
3385 { "/Tools/sep3", NULL, NULL, 0, "<Separator>", NULL }, | 3387 { "/Tools/sep3", NULL, NULL, 0, "<Separator>", NULL }, |
3386 { N_("/Tools/Mute _Sounds"), NULL, pidgin_blist_mute_sounds_cb, 0, "<CheckItem>", NULL }, | 3388 { N_("/Tools/Mute _Sounds"), NULL, pidgin_blist_mute_sounds_cb, 0, "<CheckItem>", NULL }, |
3387 /* Help */ | 3389 /* Help */ |
4260 widget = gtk_item_factory_get_widget(gtkblist->ift, N_("/Tools/Privacy")); | 4262 widget = gtk_item_factory_get_widget(gtkblist->ift, N_("/Tools/Privacy")); |
4261 gtk_widget_set_sensitive(widget, sensitive); | 4263 gtk_widget_set_sensitive(widget, sensitive); |
4262 | 4264 |
4263 widget = gtk_item_factory_get_widget(gtkblist->ift, N_("/Tools/Room List")); | 4265 widget = gtk_item_factory_get_widget(gtkblist->ift, N_("/Tools/Room List")); |
4264 gtk_widget_set_sensitive(widget, pidgin_roomlist_is_showable()); | 4266 gtk_widget_set_sensitive(widget, pidgin_roomlist_is_showable()); |
4267 | |
4268 widget = gtk_item_factory_get_widget(gtkblist->ift, N_("/Tools/Service Discovery")); | |
4269 gtk_widget_set_sensitive(widget, pidgin_disco_is_showable()); | |
4265 } | 4270 } |
4266 | 4271 |
4267 static void | 4272 static void |
4268 sign_on_off_cb(PurpleConnection *gc, PurpleBuddyList *blist) | 4273 sign_on_off_cb(PurpleConnection *gc, PurpleBuddyList *blist) |
4269 { | 4274 { |