[gtk+] [path-bar] Only reset the children's styles if the children actually changed
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] [path-bar] Only reset the children's styles if the children actually changed
- Date: Tue, 29 Nov 2011 20:16:37 +0000 (UTC)
commit 6ce48345ce50f95d684d60a46b449ce79c199281
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Nov 28 11:49:35 2011 -0600
[path-bar] Only reset the children's styles if the children actually changed
Signed-off-by: Federico Mena Quintero <federico gnome org>
gtk/gtkpathbar.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index 5d5ef2d..35dc8bf 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -1755,6 +1755,8 @@ gtk_path_bar_set_file_finish (struct SetFileInfo *info,
GtkWidget *button = BUTTON_DATA (l->data)->button;
gtk_container_add (GTK_CONTAINER (info->path_bar), button);
}
+
+ child_ordering_changed (info->path_bar);
}
else
{
@@ -1776,8 +1778,6 @@ gtk_path_bar_set_file_finish (struct SetFileInfo *info,
if (info->parent_file)
g_object_unref (info->parent_file);
- child_ordering_changed (info->path_bar);
-
g_free (info);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]