[gtk+/wip/unfocused-fixes: 5/17] separator: Stop setting state flags on the style context for drawing
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/unfocused-fixes: 5/17] separator: Stop setting state flags on the style context for drawing
- Date: Thu, 5 Jan 2012 17:37:41 +0000 (UTC)
commit 65002e209bba284810cec3ad8bde0f1755c5c011
Author: Rui Matos <tiagomatos gmail com>
Date: Wed Dec 21 15:30:28 2011 +0000
separator: Stop setting state flags on the style context for drawing
gtk/gtkseparator.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkseparator.c b/gtk/gtkseparator.c
index f8c0202..0ae2224 100644
--- a/gtk/gtkseparator.c
+++ b/gtk/gtkseparator.c
@@ -243,9 +243,6 @@ gtk_separator_draw (GtkWidget *widget,
gtk_style_context_get_padding (context, state, &padding);
- gtk_style_context_save (context);
- gtk_style_context_set_state (context, state);
-
if (private->orientation == GTK_ORIENTATION_HORIZONTAL)
{
if (wide_separators)
@@ -269,8 +266,6 @@ gtk_separator_draw (GtkWidget *widget,
(width - padding.left) / 2, height - 1);
}
- gtk_style_context_restore (context);
-
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]