[gtk+/wip/cssvalue: 25/165] widget: Merge function into only caller
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/cssvalue: 25/165] widget: Merge function into only caller
- Date: Fri, 13 Apr 2012 23:04:54 +0000 (UTC)
commit cf1973d524f560a0f9dbfe9552e5859cd595f9ca
Author: Benjamin Otte <otte redhat com>
Date: Tue Mar 20 14:38:44 2012 +0100
widget: Merge function into only caller
gtk/gtkwidget.c | 20 +++++++-------------
1 files changed, 7 insertions(+), 13 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 339901d..c1352f3 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -7982,18 +7982,6 @@ gtk_widget_is_sensitive (GtkWidget *widget)
return !(widget->priv->state_flags & GTK_STATE_FLAG_INSENSITIVE);
}
-static void
-_gtk_widget_update_path (GtkWidget *widget)
-{
- if (widget->priv->path)
- {
- gtk_widget_path_free (widget->priv->path);
- widget->priv->path = NULL;
- }
-
- gtk_widget_get_path (widget);
-}
-
/**
* gtk_widget_set_parent:
* @widget: a #GtkWidget
@@ -8522,7 +8510,13 @@ _gtk_widget_propagate_screen_changed (GtkWidget *widget,
static void
reset_style_recurse (GtkWidget *widget, gpointer data)
{
- _gtk_widget_update_path (widget);
+ if (widget->priv->path)
+ {
+ gtk_widget_path_free (widget->priv->path);
+ widget->priv->path = NULL;
+ }
+
+ gtk_widget_get_path (widget);
if (GTK_IS_CONTAINER (widget))
gtk_container_forall (GTK_CONTAINER (widget),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]