summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-11-08 01:38:41 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-11-08 01:38:43 +0100
commita783e05a04f08329f51d52cb61ac80cf9d7e0e15 (patch)
tree0f8a52d2153f49dab9989344aa8e6de6ab72f312 /perl-install
parent38018e6cac6b15ef01bcd625c1a7365e286a5cfe (diff)
downloaddrakx-a783e05a04f08329f51d52cb61ac80cf9d7e0e15.tar
drakx-a783e05a04f08329f51d52cb61ac80cf9d7e0e15.tar.gz
drakx-a783e05a04f08329f51d52cb61ac80cf9d7e0e15.tar.bz2
drakx-a783e05a04f08329f51d52cb61ac80cf9d7e0e15.tar.xz
drakx-a783e05a04f08329f51d52cb61ac80cf9d7e0e15.zip
kill unused & broken pixmap_from_pixbuf()
spot by perl_checker
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/mygtk3.pm9
1 files changed, 0 insertions, 9 deletions
diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm
index 176610882..00d16c067 100644
--- a/perl-install/mygtk3.pm
+++ b/perl-install/mygtk3.pm
@@ -1639,15 +1639,6 @@ sub _pixbuf_render_alpha {
$new_pixbuf;
}
-sub pixmap_from_pixbuf {
- my ($widget, $pixbuf) = @_;
- my $window = $widget->get_window or internal_error("you can't use this function if the widget is not realised");
- my ($width, $height) = ($pixbuf->get_width, $pixbuf->get_height);
- my $pixmap = Gtk3::Gdk::Pixmap->new($window, $width, $height, $window->get_depth);
- $pixbuf->render_to_drawable($pixmap, $widget->get_style->fg_gc('normal'), 0, 0, 0, 0, $width, $height, 'max', 0, 0);
- $pixmap;
-}
-
sub import_style_ressources() {
if (!$::isInstall) {
my $pl = Gtk3::CssProvider->new;