Mercurial > pidgin
comparison finch/gntsound.c @ 23404:3c1f1bed5be2
merge of '57be04f07f9fdc005b620053ae4f09dd1e27ebb3'
and '582755b8228024381c2a9e110de35f0aaedd5dc1'
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Wed, 02 Jul 2008 00:06:25 +0000 |
parents | 7228a48eda76 |
children | f7c5bb2f6623 |
comparison
equal
deleted
inserted
replaced
22773:c9bc2d0215ed | 23404:3c1f1bed5be2 |
---|---|
101 {PURPLE_SOUND_CHAT_JOIN, N_("Person enters chat"), "join_chat", "login.wav", NULL}, | 101 {PURPLE_SOUND_CHAT_JOIN, N_("Person enters chat"), "join_chat", "login.wav", NULL}, |
102 {PURPLE_SOUND_CHAT_LEAVE, N_("Person leaves chat"), "left_chat", "logout.wav", NULL}, | 102 {PURPLE_SOUND_CHAT_LEAVE, N_("Person leaves chat"), "left_chat", "logout.wav", NULL}, |
103 {PURPLE_SOUND_CHAT_YOU_SAY, N_("You talk in chat"), "send_chat_msg", "send.wav", NULL}, | 103 {PURPLE_SOUND_CHAT_YOU_SAY, N_("You talk in chat"), "send_chat_msg", "send.wav", NULL}, |
104 {PURPLE_SOUND_CHAT_SAY, N_("Others talk in chat"), "chat_msg_recv", "receive.wav", NULL}, | 104 {PURPLE_SOUND_CHAT_SAY, N_("Others talk in chat"), "chat_msg_recv", "receive.wav", NULL}, |
105 {PURPLE_SOUND_POUNCE_DEFAULT, NULL, "pounce_default", "alert.wav", NULL}, | 105 {PURPLE_SOUND_POUNCE_DEFAULT, NULL, "pounce_default", "alert.wav", NULL}, |
106 {PURPLE_SOUND_CHAT_NICK, N_("Someone says your screen name in chat"), "nick_said", "alert.wav", NULL} | 106 {PURPLE_SOUND_CHAT_NICK, N_("Someone says your username in chat"), "nick_said", "alert.wav", NULL} |
107 }; | 107 }; |
108 | 108 |
109 const char * | 109 const char * |
110 finch_sound_get_active_profile() | 110 finch_sound_get_active_profile() |
111 { | 111 { |
1026 gnt_tree_set_column_titles(GNT_TREE(tree), _("Event"), _("File")); | 1026 gnt_tree_set_column_titles(GNT_TREE(tree), _("Event"), _("File")); |
1027 gnt_tree_set_show_title(GNT_TREE(tree), TRUE); | 1027 gnt_tree_set_show_title(GNT_TREE(tree), TRUE); |
1028 | 1028 |
1029 for (i = 0; i < PURPLE_NUM_SOUNDS; i++) { | 1029 for (i = 0; i < PURPLE_NUM_SOUNDS; i++) { |
1030 FinchSoundEvent * event = &sounds[i]; | 1030 FinchSoundEvent * event = &sounds[i]; |
1031 | 1031 |
1032 if (event->label == NULL) { | 1032 if (event->label == NULL) { |
1033 continue; | 1033 continue; |
1034 } | 1034 } |
1035 | 1035 |
1036 gnt_tree_add_choice(GNT_TREE(tree), GINT_TO_POINTER(i), | 1036 gnt_tree_add_choice(GNT_TREE(tree), GINT_TO_POINTER(i), |
1037 gnt_tree_create_row(GNT_TREE(tree), "", ""), | 1037 gnt_tree_create_row(GNT_TREE(tree), event->label, event->def), |
1038 NULL, NULL); | 1038 NULL, NULL); |
1039 } | 1039 } |
1040 | 1040 |
1041 gnt_tree_adjust_columns(GNT_TREE(tree)); | 1041 gnt_tree_adjust_columns(GNT_TREE(tree)); |
1042 gnt_box_add_widget(GNT_BOX(win), tree); | 1042 gnt_box_add_widget(GNT_BOX(win), tree); |