[gtk+] popover: Don't create transient CSS nodes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] popover: Don't create transient CSS nodes
- Date: Fri, 6 Nov 2015 16:51:09 +0000 (UTC)
commit 0bfc7db1fad1b8512f96ddea3ebe34fbb425f4be
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Nov 6 09:26:25 2015 -0500
popover: Don't create transient CSS nodes
There is no need to save the style context here.
gtk/gtkpopover.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index 7050e68..cce113f 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -1063,7 +1063,6 @@ gtk_popover_draw (GtkWidget *widget,
GtkStateFlags state;
context = gtk_widget_get_style_context (widget);
- gtk_style_context_save (context);
state = gtk_widget_get_state_flags (widget);
gtk_widget_get_allocation (widget, &allocation);
@@ -1145,8 +1144,6 @@ G_GNUC_END_IGNORE_DEPRECATIONS
if (child)
gtk_container_propagate_draw (GTK_CONTAINER (widget), child, cr);
- gtk_style_context_restore (context);
-
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]