From 6445ee2089907d53a98848c36d108d2f6439f7f5 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Mon, 13 Aug 2001 23:32:38 +0000 Subject: Chain to the parent class. * e-gray-bar.c (impl_style_set): Chain to the parent class. svn path=/trunk/; revision=11977 --- shell/ChangeLog | 5 ++++- shell/e-gray-bar.c | 14 ++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index 39131cc795..f2ce50ec8c 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,10 +1,13 @@ +2001-08-13 Ettore Perazzoli + + * e-gray-bar.c (impl_style_set): Chain to the parent class. + 2001-08-13 Anna Marie Dirks * importer/intelligent.c : Changed the "Evolution has found the following data sources" text in the import dialog to "Evolution can import data from the following files" in an attempt to increase user-friendliness. - 2001-08-13 Ettore Perazzoli diff --git a/shell/e-gray-bar.c b/shell/e-gray-bar.c index 1058bf5740..f25fa67109 100644 --- a/shell/e-gray-bar.c +++ b/shell/e-gray-bar.c @@ -50,12 +50,12 @@ endarken_style (GtkWidget *widget) new_rc_style = gtk_rc_style_new (); for (i = 0; i < 5; i++) { - new_rc_style->bg[i].red = style->bg[i].red * .8; - new_rc_style->bg[i].green = style->bg[i].green * .8; - new_rc_style->bg[i].blue = style->bg[i].blue * .8; - new_rc_style->base[i].red = style->base[i].red * .8; - new_rc_style->base[i].green = style->base[i].green * .8; - new_rc_style->base[i].blue = style->base[i].blue * .8; + new_rc_style->bg[i].red = 0x8000; + new_rc_style->bg[i].green = 0x8000; + new_rc_style->bg[i].blue = 0x8000; + new_rc_style->base[i].red = 0x8000; + new_rc_style->base[i].green = 0x8000; + new_rc_style->base[i].blue = 0x8000; new_rc_style->fg[i].red = 0xffff; new_rc_style->fg[i].green = 0xffff; new_rc_style->fg[i].blue = 0xffff; @@ -86,6 +86,8 @@ impl_style_set (GtkWidget *widget, endarken_style (widget); in_style_set --; + + (* GTK_WIDGET_CLASS (parent_class)->style_set) (widget, previous_style); } -- cgit