After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 732628 - gtk colored buttons
gtk colored buttons
Status: RESOLVED NOTABUG
Product: gnome-perl
Classification: Bindings
Component: Gtk2
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk2-perl-bugs
gtk2-perl-bugs
Depends on:
Blocks:
 
 
Reported: 2014-07-02 14:38 UTC by Adam Benjamin
Modified: 2014-08-10 10:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Adam Benjamin 2014-07-02 14:38:06 UTC
perl-gtk2 applications that set the background color for buttons aren't producing colored output.

Note: this bug was originally filed under perl-Gtk2-1.247-1.fc18.x86_64, but is also relevant with perl-Gtk2-1.247-1.fc19.x86_64.


How reproducible:

Create a trivial perl-gtk application with a coloured button.


Steps to Reproduce:
1. see below for code example to run

Actual results:

Button is created, but no colour.

Expected results:

Coloured button.  (Red.)

Additional info:

Note: this worked as expected in Fedora 17.  (perl-Gtk2-1.241-2.fc17.i686)

Sample colored button code:


#!/bin/perl

use Gtk2 qw/-init/;

my $window = Gtk2::Window->new;
$window->set_title("Window!");

my $button = Gtk2::Button->new("Coloured _button");
# does not affect text
$button->modify_bg(normal => Gtk2::Gdk::Color->new(0xffff, 0, 0));

$window->add($button);
$window->show_all;

Gtk2->main;
Comment 1 Torsten Schoenfeld 2014-08-10 10:49:04 UTC
This looks like it is theme-related.  On my machine, for example, the button is not colored with the default Adwaita theme, but it is with the HighContrast theme.

In any case, it's not a bug in the Perl bindings.