[gtk+/wip/unfocused-fixes] trayicon-x11: 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] trayicon-x11: Stop setting state flags on the style context for drawing
- Date: Thu, 22 Dec 2011 03:05:05 +0000 (UTC)
commit 2763bd6fe4cfca995e920565035d809cee1310f0
Author: Rui Matos <tiagomatos gmail com>
Date: Thu Dec 22 00:37:10 2011 +0000
trayicon-x11: Stop setting state flags on the style context for drawing
gtk/gtktrayicon-x11.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtktrayicon-x11.c b/gtk/gtktrayicon-x11.c
index b20027a..f57da1e 100644
--- a/gtk/gtktrayicon-x11.c
+++ b/gtk/gtktrayicon-x11.c
@@ -390,20 +390,13 @@ gtk_tray_icon_draw (GtkWidget *widget,
if (focus_child && gtk_widget_has_visible_focus (focus_child))
{
GtkStyleContext *context;
- GtkStateFlags state;
border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
context = gtk_widget_get_style_context (widget);
- state = gtk_widget_get_state_flags (widget);
-
- gtk_style_context_save (context);
- gtk_style_context_set_state (context, state);
gtk_render_focus (context, cr, border_width, border_width,
gtk_widget_get_allocated_width (widget) - 2 * border_width,
gtk_widget_get_allocated_height (widget) - 2 * border_width);
-
- gtk_style_context_restore (context);
}
return retval;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]