pidgin/plugins/screencap.c

changeset 39499
cbf89a92d224
parent 39262
53c6b966ac05
child 39502
818d74083471
equal deleted inserted replaced
39498:51e0448a7ae8 39499:cbf89a92d224
30 #include "gtk3compat.h" 30 #include "gtk3compat.h"
31 #include "gtkconv.h" 31 #include "gtkconv.h"
32 #include "gtkplugin.h" 32 #include "gtkplugin.h"
33 #include "gtkutils.h" 33 #include "gtkutils.h"
34 #include "gtkwebviewtoolbar.h" 34 #include "gtkwebviewtoolbar.h"
35 #include "pidginstock.h" 35 #include "pidginicon.h"
36 36
37 #define SCRNCAP_SHOOTING_TIMEOUT 500 37 #define SCRNCAP_SHOOTING_TIMEOUT 500
38 #define SCRNCAP_DEFAULT_COLOR "#FFFF00000000" 38 #define SCRNCAP_DEFAULT_COLOR "#FFFF00000000"
39 39
40 enum 40 enum
716 "insert-screenshot-action"); 716 "insert-screenshot-action");
717 if (action != NULL) 717 if (action != NULL)
718 return; 718 return;
719 719
720 action = gtk_action_new("InsertScreenshot", _("Insert Screens_hot..."), 720 action = gtk_action_new("InsertScreenshot", _("Insert Screens_hot..."),
721 NULL, PIDGIN_STOCK_TOOLBAR_INSERT_SCREENSHOT); 721 NULL, PIDGIN_ICON_CAMERA_PHOTO);
722 gtk_action_set_is_important(action, TRUE); 722 gtk_action_set_is_important(action, TRUE);
723 g_object_set_data_full(G_OBJECT(menu->menubar), 723 g_object_set_data_full(G_OBJECT(menu->menubar),
724 "insert-screenshot-action", action, g_object_unref); 724 "insert-screenshot-action", action, g_object_unref);
725 g_signal_connect(G_OBJECT(action), "activate", 725 g_signal_connect(G_OBJECT(action), "activate",
726 G_CALLBACK(scrncap_convwin_menu_cb), win); 726 G_CALLBACK(scrncap_convwin_menu_cb), win);
805 g_return_if_fail(wide_view != NULL); 805 g_return_if_fail(wide_view != NULL);
806 lean_view = GTK_TOOLBAR(pidgin_webviewtoolbar_get_lean_view(toolbar)); 806 lean_view = GTK_TOOLBAR(pidgin_webviewtoolbar_get_lean_view(toolbar));
807 g_return_if_fail(lean_view != NULL); 807 g_return_if_fail(lean_view != NULL);
808 808
809 action = gtk_action_new("InsertScreenshot", _("_Screenshot"), 809 action = gtk_action_new("InsertScreenshot", _("_Screenshot"),
810 _("Insert screenshot"), PIDGIN_STOCK_TOOLBAR_INSERT_SCREENSHOT); 810 _("Insert screenshot"), PIDGIN_ICON_CAMERA_PHOTO);
811 gtk_action_set_is_important(action, TRUE); 811 gtk_action_set_is_important(action, TRUE);
812 g_signal_connect(G_OBJECT(action), "activate", 812 g_signal_connect(G_OBJECT(action), "activate",
813 G_CALLBACK(scrncap_do_screenshot), webview); 813 G_CALLBACK(scrncap_do_screenshot), webview);
814 814
815 scrncap_btn_wide = GTK_TOOL_ITEM(gtk_action_create_tool_item(action)); 815 scrncap_btn_wide = GTK_TOOL_ITEM(gtk_action_create_tool_item(action));

mercurial