aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-08-14 06:15:45 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-08-14 06:15:45 +0800
commit681cee1a1d0000f865f96624299afc917975bc45 (patch)
tree43b0293a4917aebdcead83e770aa3e747c0b04ca /shell
parent8fdc72b002b927cce36e0e20be7ff04c409abd50 (diff)
downloadgsoc2013-evolution-681cee1a1d0000f865f96624299afc917975bc45.tar.gz
gsoc2013-evolution-681cee1a1d0000f865f96624299afc917975bc45.tar.zst
gsoc2013-evolution-681cee1a1d0000f865f96624299afc917975bc45.zip
Removed. (class_init): Don't override that method anymore.
* e-gray-bar.c (impl_style_set): Removed. (class_init): Don't override that method anymore. (e_gray_bar_new): Call `endarken_style()' here instead. svn path=/trunk/; revision=11967
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog6
-rw-r--r--shell/e-gray-bar.c26
2 files changed, 13 insertions, 19 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index b92f8d93c0..7fba31983d 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,5 +1,11 @@
2001-08-13 Ettore Perazzoli <ettore@ximian.com>
+ * e-gray-bar.c (impl_style_set): Removed.
+ (class_init): Don't override that method anymore.
+ (e_gray_bar_new): Call `endarken_style()' here instead.
+
+2001-08-13 Ettore Perazzoli <ettore@ximian.com>
+
[Fix #7109, Evolution crashes when the splash screen dialog is
killed by clicking the "X" button.]
diff --git a/shell/e-gray-bar.c b/shell/e-gray-bar.c
index 1058bf5740..be8daa50c5 100644
--- a/shell/e-gray-bar.c
+++ b/shell/e-gray-bar.c
@@ -44,6 +44,7 @@ endarken_style (GtkWidget *widget)
GtkStyle *style;
GtkRcStyle *new_rc_style;
int i;
+ static int first_time = TRUE;
style = widget->style;
@@ -66,30 +67,16 @@ endarken_style (GtkWidget *widget)
new_rc_style->color_flags[i] = GTK_RC_BG | GTK_RC_FG | GTK_RC_BASE | GTK_RC_TEXT;
}
- gtk_widget_modify_style (widget, new_rc_style);
+ if (first_time) {
+ gtk_widget_modify_style (widget, new_rc_style);
+ first_time = FALSE;
+ }
gtk_rc_style_unref (new_rc_style);
}
static void
-impl_style_set (GtkWidget *widget,
- GtkStyle *previous_style)
-{
- static int in_style_set = 0;
-
- if (in_style_set > 0)
- return;
-
- in_style_set ++;
-
- endarken_style (widget);
-
- in_style_set --;
-}
-
-
-static void
class_init (GtkObjectClass *object_class)
{
GtkWidgetClass *widget_class;
@@ -97,7 +84,6 @@ class_init (GtkObjectClass *object_class)
parent_class = gtk_type_class (PARENT_TYPE);
widget_class = GTK_WIDGET_CLASS (object_class);
- widget_class->style_set = impl_style_set;
}
static void
@@ -113,6 +99,8 @@ e_gray_bar_new (void)
new = gtk_type_new (e_gray_bar_get_type ());
+ endarken_style (new);
+
return new;
}
or ..."linimon2006-01-281-0/+1 * Update to DAT 4684jeh2006-01-282-4/+4 * Oops. Forgot to modify the discovery date.remko2006-01-281-1/+2 * Add 4 FreeBSD advisories to the VuXML database.remko2006-01-271-0/+188 * Update to DAT 4683jeh2006-01-272-4/+4 * - Update to 3.0.0pav2006-01-2610-136/+14 * Update to 3.0.0mnag2006-01-263-6/+8 * New slave port to security/barnyard - adds patches for sguil6pav2006-01-2611-0/+4001 * - Modernize and prepare for slave portpav2006-01-264-27/+15 * BROKEN: Incomplete pkg-plistkris2006-01-261-0/+2 * Update from 1.2.4 to 1.2.9. Switch to using OPTIONS and add nss asmi2006-01-262-27/+48 * Update to DAT 4682jeh2006-01-262-4/+4 * - Update to 20060125.tdb2006-01-262-5/+5 * - Update to 1.1.0garga2006-01-252-4/+4 * Update to DAT 4681jeh2006-01-252-4/+4 * Update to 3.11.marcus2006-01-2512-265/+137 * Update to 1.5.6 and unbreak port.anray2006-01-253-11/+7 * We all know that you should always check input variables, but PHP does notgarga2006-01-254-0/+42 * - Unbreakpav2006-01-241-1/+3 * Change facility from daemon to security, because daemon.info goes tovd2006-01-242-1/+13 * SHA256ifyedwin2006-01-2415-12/+31 * SHA256ifyedwin2006-01-24267-0/+276 * Document local root exploit in SGE.brooks2006-01-241-0/+28 * - Drop maintainership. ENOTIME for ports, so let someone else take better carepav2006-01-241-1/+1 * Udate to DAT 4680jeh2006-01-242-4/+4 * Document "fetchmail -- crash when bouncing a message" DOS vulnerability.barner2006-01-231-0/+32 * BROKEN when WITHOUT_NLS: compile fails without gettextkris2006-01-231-0/+1 * BROKEN: Hard-codes libc_r linkagekris2006-01-231-0/+1 * Update to 0.6arved2006-01-222-4/+4 * Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-227-10/+10 * Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-22