From 6902e4292254fac7e7088e82c7acc67819a34705 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 17 Dec 2004 16:03:04 +0000 Subject: don't parse the theme rc file to set the root window background color during install, instead use the gc of a fake window named "background" --- perl-install/mygtk2.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'perl-install/mygtk2.pm') diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm index 68f95e714..5f9e3d2eb 100644 --- a/perl-install/mygtk2.pm +++ b/perl-install/mygtk2.pm @@ -675,10 +675,15 @@ sub set_root_window_background { my $gc = Gtk2::Gdk::GC->new($root); my $color = rgb2color($r, $g, $b); $gc->set_rgb_fg_color($color); - $root->set_background($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); } 1; - -- cgit v1.2.1