summaryrefslogtreecommitdiffstats
path: root/perl-install/my_gtk.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/my_gtk.pm')
-rw-r--r--perl-install/my_gtk.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm
index bd822f67b..c43c8f899 100644
--- a/perl-install/my_gtk.pm
+++ b/perl-install/my_gtk.pm
@@ -143,9 +143,9 @@ sub gtkcolor($$$) {
my ($r, $g, $b) = @_;
my $color = bless {}, 'Gtk::Gdk::Color';
- $color->red ($r << 8);
- $color->green($g << 8);
- $color->blue ($b << 8);
+ $color->red ($r);
+ $color->green($g);
+ $color->blue ($b);
gtkroot()->get_colormap->color_alloc($color);
}
@@ -289,7 +289,7 @@ sub _create_window($$) {
my $f = new Gtk::Frame(undef);
$w->set_name("Title");
- if ($::isStandalone || $o->{no_border}) {
+ if ($::isStandalone || $o->{no_border} || 1) {
gtkadd($w, $f);
} else {
my $t = new Gtk::Table(0, 0, 0);