diff options
-rw-r--r-- | perl-install/mygtk3.pm | 24 | ||||
-rw-r--r-- | perl-install/ugtk3.pm | 3 |
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) = @_; |