Mercurial > pidgin.yaz
comparison pidgin/gtkmedia.c @ 32827:4a34689eeb33 default tip
merged from im.pidgin.pidgin
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 19 Nov 2011 14:42:54 +0900 |
parents | e323c2f84872 |
children |
comparison
equal
deleted
inserted
replaced
32692:0f94ec89f0bc | 32827:4a34689eeb33 |
---|---|
288 GError *error; | 288 GError *error; |
289 GtkAccelGroup *accel_group; | 289 GtkAccelGroup *accel_group; |
290 GtkWidget *menu; | 290 GtkWidget *menu; |
291 | 291 |
292 action_group = gtk_action_group_new("MediaActions"); | 292 action_group = gtk_action_group_new("MediaActions"); |
293 #ifdef ENABLE_NLS | |
294 gtk_action_group_set_translation_domain(action_group, | |
295 PACKAGE); | |
296 #endif | |
293 gtk_action_group_add_actions(action_group, | 297 gtk_action_group_add_actions(action_group, |
294 menu_entries, | 298 menu_entries, |
295 G_N_ELEMENTS(menu_entries), | 299 G_N_ELEMENTS(menu_entries), |
296 GTK_WINDOW(window)); | 300 GTK_WINDOW(window)); |
297 #ifdef ENABLE_NLS | |
298 gtk_action_group_set_translation_domain(action_group, | |
299 PACKAGE); | |
300 #endif | |
301 | 301 |
302 window->priv->ui = gtk_ui_manager_new(); | 302 window->priv->ui = gtk_ui_manager_new(); |
303 gtk_ui_manager_insert_action_group(window->priv->ui, action_group, 0); | 303 gtk_ui_manager_insert_action_group(window->priv->ui, action_group, 0); |
304 | 304 |
305 accel_group = gtk_ui_manager_get_accel_group(window->priv->ui); | 305 accel_group = gtk_ui_manager_get_accel_group(window->priv->ui); |
787 FALSE, TRUE, 0); | 787 FALSE, TRUE, 0); |
788 gtk_widget_show(send_widget); | 788 gtk_widget_show(send_widget); |
789 | 789 |
790 /* Hold button */ | 790 /* Hold button */ |
791 gtkmedia->priv->hold = | 791 gtkmedia->priv->hold = |
792 gtk_toggle_button_new_with_mnemonic("_Hold"); | 792 gtk_toggle_button_new_with_mnemonic(_("_Hold")); |
793 gtk_box_pack_end(GTK_BOX(button_widget), gtkmedia->priv->hold, | 793 gtk_box_pack_end(GTK_BOX(button_widget), gtkmedia->priv->hold, |
794 FALSE, FALSE, 0); | 794 FALSE, FALSE, 0); |
795 gtk_widget_show(gtkmedia->priv->hold); | 795 gtk_widget_show(gtkmedia->priv->hold); |
796 g_signal_connect(gtkmedia->priv->hold, "toggled", | 796 g_signal_connect(gtkmedia->priv->hold, "toggled", |
797 G_CALLBACK(pidgin_media_hold_toggled), | 797 G_CALLBACK(pidgin_media_hold_toggled), |
876 PURPLE_MEDIA_RECV_AUDIO, sid), FALSE, FALSE, 0); | 876 PURPLE_MEDIA_RECV_AUDIO, sid), FALSE, FALSE, 0); |
877 } | 877 } |
878 | 878 |
879 if (type & PURPLE_MEDIA_SEND_AUDIO) { | 879 if (type & PURPLE_MEDIA_SEND_AUDIO) { |
880 gtkmedia->priv->mute = | 880 gtkmedia->priv->mute = |
881 gtk_toggle_button_new_with_mnemonic("_Mute"); | 881 gtk_toggle_button_new_with_mnemonic(_("_Mute")); |
882 gtk_box_pack_end(GTK_BOX(button_widget), gtkmedia->priv->mute, | 882 gtk_box_pack_end(GTK_BOX(button_widget), gtkmedia->priv->mute, |
883 FALSE, FALSE, 0); | 883 FALSE, FALSE, 0); |
884 gtk_widget_show(gtkmedia->priv->mute); | 884 gtk_widget_show(gtkmedia->priv->mute); |
885 g_signal_connect(gtkmedia->priv->mute, "toggled", | 885 g_signal_connect(gtkmedia->priv->mute, "toggled", |
886 G_CALLBACK(pidgin_media_mute_toggled), | 886 G_CALLBACK(pidgin_media_mute_toggled), |
967 if (local == TRUE) | 967 if (local == TRUE) |
968 purple_request_close_with_handle(gtkmedia); | 968 purple_request_close_with_handle(gtkmedia); |
969 pidgin_media_set_state(gtkmedia, PIDGIN_MEDIA_ACCEPTED); | 969 pidgin_media_set_state(gtkmedia, PIDGIN_MEDIA_ACCEPTED); |
970 pidgin_media_emit_message(gtkmedia, _("Call in progress.")); | 970 pidgin_media_emit_message(gtkmedia, _("Call in progress.")); |
971 gtk_statusbar_push(GTK_STATUSBAR(gtkmedia->priv->statusbar), | 971 gtk_statusbar_push(GTK_STATUSBAR(gtkmedia->priv->statusbar), |
972 0, _("Call in progress.")); | 972 0, _("Call in progress")); |
973 gtk_widget_show(GTK_WIDGET(gtkmedia)); | 973 gtk_widget_show(GTK_WIDGET(gtkmedia)); |
974 } | 974 } |
975 } | 975 } |
976 | 976 |
977 static void | 977 static void |