[gtk+/gtk-style-context: 100/276] 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/276] GtkWidget: Do not reset GtkStyleContext per get_style_context().
- Date: Sat, 23 Oct 2010 19:03:30 +0000 (UTC)
commit a7724751cb28432c09d9edf4a6f371e210da7b76
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 727d59e..2fa7e82 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -13352,18 +13352,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]