diff options
author | zhuyaliang <[email protected]> | 2023-05-22 16:08:33 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2023-05-23 18:42:37 +0200 |
commit | 757b4728baab9f96808e05ab3d7fc5341b57f11a (patch) | |
tree | c73b8e86a91d18d111e232efa321c96b3981a720 /mate-screenshot/src | |
parent | 6e250f4179dfdd1120857e4ac7fc1fb10da91348 (diff) | |
download | mate-utils-757b4728baab9f96808e05ab3d7fc5341b57f11a.tar.bz2 mate-utils-757b4728baab9f96808e05ab3d7fc5341b57f11a.tar.xz |
Remove init_stock_icons code and replace gtk_drag_set_icon_stock with gtk_drag_set_icon_name
Diffstat (limited to 'mate-screenshot/src')
-rw-r--r-- | mate-screenshot/src/mate-screenshot.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/mate-screenshot/src/mate-screenshot.c b/mate-screenshot/src/mate-screenshot.c index f5047715..9786c994 100644 --- a/mate-screenshot/src/mate-screenshot.c +++ b/mate-screenshot/src/mate-screenshot.c @@ -1217,35 +1217,6 @@ save_options (void) BORDER_EFFECT_KEY, border_effect); } -static void -register_screenshooter_icon (GtkIconFactory * factory) -{ - GtkIconSource *source; - GtkIconSet *icon_set; - - source = gtk_icon_source_new (); - gtk_icon_source_set_icon_name (source, SCREENSHOOTER_ICON); - - icon_set = gtk_icon_set_new (); - gtk_icon_set_add_source (icon_set, source); - - gtk_icon_factory_add (factory, SCREENSHOOTER_ICON, icon_set); - gtk_icon_set_unref (icon_set); - gtk_icon_source_free (source); -} - -static void -screenshooter_init_stock_icons (void) -{ - GtkIconFactory *factory; - - factory = gtk_icon_factory_new (); - gtk_icon_factory_add_default (factory); - - register_screenshooter_icon (factory); - g_object_unref (factory); -} - void loop_dialog_screenshot (void) { @@ -1365,7 +1336,6 @@ main (int argc, char *argv[]) } gtk_window_set_default_icon_name (SCREENSHOOTER_ICON); - screenshooter_init_stock_icons (); settings = g_settings_new (MATE_SCREENSHOT_SCHEMA); load_options (); |