pidgin/pidginactiongroup.c

changeset 40378
9713b0ef6504
parent 40373
5d2a493339f2
child 40379
c50c509dd028
equal deleted inserted replaced
40377:be51a9f44cea 40378:9713b0ef6504
25 #include <purple.h> 25 #include <purple.h>
26 26
27 #include "internal.h" 27 #include "internal.h"
28 28
29 #include "pidgin/gtkaccount.h" 29 #include "pidgin/gtkaccount.h"
30 #include "pidgin/gtkblist.h"
30 #include "pidgin/gtkdialogs.h" 31 #include "pidgin/gtkdialogs.h"
31 #include "pidgin/gtkpounce.h" 32 #include "pidgin/gtkpounce.h"
32 #include "pidgin/gtkprefs.h" 33 #include "pidgin/gtkprefs.h"
33 #include "pidgin/gtkprivacy.h" 34 #include "pidgin/gtkprivacy.h"
34 #include "pidgin/gtkroomlist.h" 35 #include "pidgin/gtkroomlist.h"
50 * 51 *
51 * This list keeps track of which actions should only be enabled while online. 52 * This list keeps track of which actions should only be enabled while online.
52 */ 53 */
53 static const gchar *pidgin_action_group_online_actions[] = { 54 static const gchar *pidgin_action_group_online_actions[] = {
54 PIDGIN_ACTION_NEW_MESSAGE, 55 PIDGIN_ACTION_NEW_MESSAGE,
55 // PIDGIN_ACTION_JOIN_CHAT, 56 PIDGIN_ACTION_JOIN_CHAT,
56 PIDGIN_ACTION_GET_USER_INFO, 57 PIDGIN_ACTION_GET_USER_INFO,
57 PIDGIN_ACTION_ADD_BUDDY, 58 PIDGIN_ACTION_ADD_BUDDY,
58 PIDGIN_ACTION_ADD_CHAT, 59 PIDGIN_ACTION_ADD_CHAT,
59 PIDGIN_ACTION_ADD_GROUP, 60 PIDGIN_ACTION_ADD_GROUP,
60 PIDGIN_ACTION_PRIVACY, 61 PIDGIN_ACTION_PRIVACY,
398 { 399 {
399 pidgin_dialogs_info(); 400 pidgin_dialogs_info();
400 } 401 }
401 402
402 static void 403 static void
404 pidgin_action_group_join_chat(GSimpleAction *simple, GVariant *parameter,
405 gpointer data)
406 {
407 pidgin_blist_joinchat_show();
408 }
409
410 static void
403 pidgin_action_group_manage_accounts(GSimpleAction *simple, GVariant *parameter, 411 pidgin_action_group_manage_accounts(GSimpleAction *simple, GVariant *parameter,
404 gpointer data) 412 gpointer data)
405 { 413 {
406 pidgin_accounts_window_show(); 414 pidgin_accounts_window_show();
407 } 415 }
556 .name = PIDGIN_ACTION_FILE_TRANSFERS, 564 .name = PIDGIN_ACTION_FILE_TRANSFERS,
557 .activate = pidgin_action_group_file_transfers, 565 .activate = pidgin_action_group_file_transfers,
558 }, { 566 }, {
559 .name = PIDGIN_ACTION_GET_USER_INFO, 567 .name = PIDGIN_ACTION_GET_USER_INFO,
560 .activate = pidgin_action_group_get_user_info, 568 .activate = pidgin_action_group_get_user_info,
569 }, {
570 .name = PIDGIN_ACTION_JOIN_CHAT,
571 .activate = pidgin_action_group_join_chat,
561 }, { 572 }, {
562 .name = PIDGIN_ACTION_MANAGE_ACCOUNTS, 573 .name = PIDGIN_ACTION_MANAGE_ACCOUNTS,
563 .activate = pidgin_action_group_manage_accounts, 574 .activate = pidgin_action_group_manage_accounts,
564 }, { 575 }, {
565 .name = PIDGIN_ACTION_MUTE_SOUNDS, 576 .name = PIDGIN_ACTION_MUTE_SOUNDS,

mercurial