[gtk+/wip/cssvalue: 26/141] widget: Merge function into only caller
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/cssvalue: 26/141] widget: Merge function into only caller
- Date: Sat, 7 Apr 2012 17:48:20 +0000 (UTC)
commit 7ed327540422d0a9bcfc59a7d057fe9c40851cc3
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]