[openpgp-applet] 13/42: Gtk3: change icon handling

Clement Hermann nodens at nodens.org
Wed Oct 26 16:47:51 UTC 2016


This is an automated email from the git hooks/post-receive script.

nodens-guest pushed a commit to branch master
in repository openpgp-applet.

commit e2e951057f0e739598dabe96b2be46e1afe77ce6
Author: Clément Hermann (nodens) <nodens at nodens.org>
Date:   Fri Aug 21 17:43:02 2015 +0200

    Gtk3: change icon handling
---
 bin/openpgp-applet | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/bin/openpgp-applet b/bin/openpgp-applet
index b87e5a5..7d1649e 100755
--- a/bin/openpgp-applet
+++ b/bin/openpgp-applet
@@ -995,7 +995,7 @@ sub make_icon_source {
     $source->set_state_wildcarded(1);
     if (defined $size) {
         $source->set_size_wildcarded(0);
-        $source->set_size($size);
+        $source->set_size(Gtk3::IconSize::from_name($size));
     } else {
         $source->set_size_wildcarded(1);
     }
@@ -1010,12 +1010,12 @@ sub init_icons_stock {
     my @stock_ids = map { "OpenPGP_Applet-$_" } qw{ message none signed text };
 
     foreach my $stock_id (@stock_ids) {
-        my $iconset = Gtk3::IconSet::new();
-        $iconset->add_source(make_icon_source($stock_id, "22x22",    "png", 'button'));
-        $iconset->add_source(make_icon_source($stock_id, "22x22",    "png", 'menu'));
-        $iconset->add_source(make_icon_source($stock_id, "22x22",    "png", 'large-toolbar'));
-        $iconset->add_source(make_icon_source($stock_id, "22x22",    "png", 'small-toolbar'));
-        $iconset->add_source(make_icon_source($stock_id, "48x48",    "png", 'dialog'));
+        my $iconset = Gtk3::IconSet->new();
+        $iconset->add_source(make_icon_source($stock_id, "22x22",    "png", 'gtk-button'));
+        $iconset->add_source(make_icon_source($stock_id, "22x22",    "png", 'gtk-menu'));
+        $iconset->add_source(make_icon_source($stock_id, "22x22",    "png", 'gtk-large-toolbar'));
+        $iconset->add_source(make_icon_source($stock_id, "22x22",    "png", 'gtk-small-toolbar'));
+        $iconset->add_source(make_icon_source($stock_id, "48x48",    "png", 'gtk-dialog'));
         $iconset->add_source(make_icon_source($stock_id, "scalable", "svg"));
         $factory->add($stock_id, $iconset);
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/openpgp-applet.git



More information about the Pkg-perl-cvs-commits mailing list