--- a/test1.glade Thu Oct 16 12:27:55 2008 +0200
+++ b/test1.glade Thu Oct 16 12:38:29 2008 +0200
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
-<!--Generated with glade3 3.4.5 on Thu Oct 16 12:26:53 2008 -->
+<!--Generated with glade3 3.4.5 on Thu Oct 16 12:33:35 2008 -->
<glade-interface>
<widget class="GtkDialog" id="nemmain">
<property name="visible">True</property>
@@ -178,25 +178,56 @@
<property name="visible">True</property>
<property name="label_xalign">0</property>
<child>
- <widget class="GtkVBox" id="vbox3">
+ <widget class="GtkEventBox" id="eventbox1">
<property name="visible">True</property>
<child>
- <widget class="GtkHBox" id="hbox2">
+ <widget class="GtkVBox" id="vbox3">
<property name="visible">True</property>
<child>
- <widget class="GtkImage" id="image2">
+ <widget class="GtkHBox" id="hbox2">
<property name="visible">True</property>
- <property name="stock">gtk-dialog-info</property>
- <property name="icon_size">6</property>
+ <child>
+ <widget class="GtkImage" id="image2">
+ <property name="visible">True</property>
+ <property name="stock">gtk-dialog-info</property>
+ <property name="icon_size">6</property>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkLabel" id="main_text1">
+ <property name="visible">True</property>
+ <property name="has_tooltip">True</property>
+ <property name="tooltip_markup">Az üdvozlő szöveg</property>
+ <property name="label" translatable="yes">Enter your name and
+bear the consequences.</property>
+ </widget>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
</widget>
</child>
<child>
- <widget class="GtkLabel" id="main_text1">
+ <widget class="GtkHBox" id="hbox3">
<property name="visible">True</property>
- <property name="has_tooltip">True</property>
- <property name="tooltip_markup">Az üdvozlő szöveg</property>
- <property name="label" translatable="yes">Enter your name and
-bear the consequences.</property>
+ <child>
+ <widget class="GtkLabel" id="label3">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Thy name:</property>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkEntry" id="entry">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="has_tooltip">True</property>
+ <property name="tooltip_markup">Yourname here</property>
+ <signal name="key_release_event" handler="on_entry_key_release_event"/>
+ </widget>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
</widget>
<packing>
<property name="position">1</property>
@@ -204,32 +235,6 @@
</child>
</widget>
</child>
- <child>
- <widget class="GtkHBox" id="hbox3">
- <property name="visible">True</property>
- <child>
- <widget class="GtkLabel" id="label3">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Thy name:</property>
- </widget>
- </child>
- <child>
- <widget class="GtkEntry" id="entry">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="has_tooltip">True</property>
- <property name="tooltip_markup">Yourname here</property>
- <signal name="key_release_event" handler="on_entry_key_release_event"/>
- </widget>
- <packing>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="position">1</property>
- </packing>
- </child>
</widget>
</child>
<child>
--- a/test1.pl Thu Oct 16 12:27:55 2008 +0200
+++ b/test1.pl Thu Oct 16 12:38:29 2008 +0200
@@ -14,6 +14,7 @@
my $glade;
my $label;
my $field;
+my $eventbox;
my $window_about;
# load UI
@@ -25,6 +26,7 @@
$label = $glade->get_widget('main_text1');
$field = $glade->get_widget('entry');
+$eventbox = $glade->get_widget('eventbox1');
$window_about = $glade->get_widget('aboutdialog1');
print "firing up\n";
@@ -40,13 +42,18 @@
print "Color is: ", $color->to_string(), "\n";
print "Alpha is: ", $alpha, "\n";
- # Gtk2::StateType?!
+ # Gtk2::StateType?! (man gtk2::widget)
# FATAL: invalid enum GtkStateType value what, expecting: normal / GTK_STATE_NORMAL,
# active / GTK_STATE_ACTIVE, prelight / GTK_STATE_PRELIGHT, selected / GTK_STATE_SELECTED,
# insensitive / GTK_STATE_INSENSITIVE
- $label->modify_bg( 'prelight', $color);
- $label->modify_fg( 'active', $color);
- $label->modify_text( 'normal', $color);
+ #$label->modify_bg( 'prelight', $color);
+ #$label->modify_fg( 'active', $color);
+ #$label->modify_text( 'normal', $color);
+
+ $eventbox->modify_bg( 'normal', $color);
+ #$glade->get_widget('frame1')->modify_bg( 'normal', $color);
+
+ $window_about->modify_bg( 'prelight', $color);
}