summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk3.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-11-08 03:53:04 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-11-08 11:22:15 +0100
commit03d8dac403c3d793d16b832adc22b814c02eff04 (patch)
tree1d191fd8868e41e8bf8928b51cf1cd97e51e7602 /perl-install/mygtk3.pm
parenta783e05a04f08329f51d52cb61ac80cf9d7e0e15 (diff)
downloaddrakx-03d8dac403c3d793d16b832adc22b814c02eff04.tar
drakx-03d8dac403c3d793d16b832adc22b814c02eff04.tar.gz
drakx-03d8dac403c3d793d16b832adc22b814c02eff04.tar.bz2
drakx-03d8dac403c3d793d16b832adc22b814c02eff04.tar.xz
drakx-03d8dac403c3d793d16b832adc22b814c02eff04.zip
kill code broken since switching to gtk+3
XFdrake has been fixed anyway...
Diffstat (limited to 'perl-install/mygtk3.pm')
-rw-r--r--perl-install/mygtk3.pm24
1 files changed, 0 insertions, 24 deletions
diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm
index 00d16c067..94b8577f6 100644
--- a/perl-install/mygtk3.pm
+++ b/perl-install/mygtk3.pm
@@ -1600,30 +1600,6 @@ sub root_window_size() {
@$root;
}
-sub rgb2color {
- my ($r, $g, $b) = @_;
- my $color = Gtk3::Gdk::Color->new($r, $g, $b);
- root_window()->get_colormap->rgb_find_color($color);
- $color;
-}
-
-sub set_root_window_background {
- my ($r, $g, $b) = @_;
- my $root = root_window();
- my $gc = Gtk3::Gdk::GC->new($root);
- my $color = rgb2color($r, $g, $b);
- $gc->set_rgb_fg_color($color);
- set_root_window_background_with_gc($gc);
-}
-
-sub set_root_window_background_with_gc {
- my ($gc) = @_;
- my $root = root_window();
- my ($w, $h) = $root->get_size;
- $root->set_background($gc->get_values->{foreground});
- $root->draw_rectangle($gc, 1, 0, 0, $w, $h);
-}
-
sub _new_alpha_pixbuf {
my ($pixbuf) = @_;
my ($height, $width) = ($pixbuf->get_height, $pixbuf->get_width);