[gimp/gtk3-port: 321/457] app: fix GimpPrefsBox' page titles to look like selected rows again
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 321/457] app: fix GimpPrefsBox' page titles to look like selected rows again
- Date: Sat, 19 May 2018 18:30:38 +0000 (UTC)
commit 2ac205f2ba825e0a85e2e9fa2f5c47b92ae8bac4
Author: Michael Natterer <mitch gimp org>
Date: Thu May 3 14:30:55 2018 +0200
app: fix GimpPrefsBox' page titles to look like selected rows again
app/widgets/gimpprefsbox.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimpprefsbox.c b/app/widgets/gimpprefsbox.c
index b940034..66d95aa 100644
--- a/app/widgets/gimpprefsbox.c
+++ b/app/widgets/gimpprefsbox.c
@@ -169,7 +169,9 @@ gimp_prefs_box_init (GimpPrefsBox *box)
gtk_widget_show (vbox);
ebox = gtk_event_box_new ();
- gtk_widget_set_state (ebox, GTK_STATE_SELECTED);
+ gtk_widget_set_state_flags (ebox, GTK_STATE_FLAG_SELECTED, TRUE);
+ gtk_style_context_add_class (gtk_widget_get_style_context (ebox),
+ GTK_STYLE_CLASS_VIEW);
gtk_box_pack_start (GTK_BOX (vbox), ebox, FALSE, TRUE, 0);
gtk_widget_show (ebox);
@@ -179,6 +181,7 @@ gimp_prefs_box_init (GimpPrefsBox *box)
gtk_widget_show (hbox);
private->label = gtk_label_new (NULL);
+ gtk_widget_set_state_flags (private->label, GTK_STATE_FLAG_SELECTED, TRUE);
gtk_label_set_xalign (GTK_LABEL (private->label), 0.0);
gimp_label_set_attributes (GTK_LABEL (private->label),
PANGO_ATTR_SCALE, PANGO_SCALE_LARGE,
@@ -188,6 +191,7 @@ gimp_prefs_box_init (GimpPrefsBox *box)
gtk_widget_show (private->label);
private->image = gtk_image_new ();
+ gtk_widget_set_state_flags (private->image, GTK_STATE_FLAG_SELECTED, TRUE);
gtk_box_pack_end (GTK_BOX (hbox), private->image, FALSE, FALSE, 0);
gtk_widget_show (private->image);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]