[gtk+/gtk-style-context: 100/540] GtkWidget: Do not reset GtkStyleContext per get_style_context().
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 100/540] GtkWidget: Do not reset GtkStyleContext per get_style_context().
- Date: Fri, 3 Dec 2010 02:44:29 +0000 (UTC)
commit 0e7b2bc565e85c8c07a38a1d6ecc7003b31c5f3f
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Jun 18 17:25:53 2010 +0200
GtkWidget: Do not reset GtkStyleContext per get_style_context().
gtk/gtkwidget.c | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index ed3a8fd..3235f5c 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -13271,18 +13271,19 @@ gtk_widget_get_style_context (GtkWidget *widget)
g_object_unref (css_file);
}
- gtk_style_context_add_provider (context, css_provider,
+ gtk_style_context_add_provider (context,
+ GTK_STYLE_PROVIDER (css_provider),
GTK_STYLE_PROVIDER_PRIORITY_USER);
- }
- if (widget->parent ||
- gtk_widget_is_toplevel (widget))
- {
- GtkWidgetPath *path;
+ if (widget->parent ||
+ gtk_widget_is_toplevel (widget))
+ {
+ GtkWidgetPath *path;
- path = gtk_widget_get_path (widget);
- gtk_style_context_set_path (context, path);
- gtk_widget_path_free (path);
+ path = gtk_widget_get_path (widget);
+ gtk_style_context_set_path (context, path);
+ gtk_widget_path_free (path);
+ }
}
return context;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]