summaryrefslogtreecommitdiffstats
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
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...
-rw-r--r--perl-install/mygtk3.pm24
-rw-r--r--perl-install/ugtk3.pm3
2 files changed, 1 insertions, 26 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);
diff --git a/perl-install/ugtk3.pm b/perl-install/ugtk3.pm
index e23e70201..402611082 100644
--- a/perl-install/ugtk3.pm
+++ b/perl-install/ugtk3.pm
@@ -17,7 +17,7 @@ use locale;
gtktext_insert ) ],
helpers => [ qw(add2notebook add_icon_path escape_text_for_TextView_markup_format gtkcolor gtkcreate_img
- gtkcreate_pixbuf gtkfontinfo gtkset_background gtktreeview_children set_back_pixmap
+ gtkcreate_pixbuf gtkfontinfo gtktreeview_children set_back_pixmap
get_default_step_items set_default_step_items
string_size string_width) ],
@@ -195,7 +195,6 @@ sub gtkradio {
sub gtkroot() { mygtk3::root_window() }
sub gtkcolor { &mygtk3::rgb2color }
-sub gtkset_background { &mygtk3::set_root_window_background }
sub gtkset_text {
my ($w, $s) = @_;