From a783e05a04f08329f51d52cb61ac80cf9d7e0e15 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 8 Nov 2016 01:38:41 +0100 Subject: kill unused & broken pixmap_from_pixbuf() spot by perl_checker --- perl-install/mygtk3.pm | 9 --------- 1 file changed, 9 deletions(-) (limited to 'perl-install') 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; -- cgit v1.2.1