[gtk+/gtk-3-10] Populate GtkPlacesSidebar at initialization
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-10] Populate GtkPlacesSidebar at initialization
- Date: Thu, 10 Oct 2013 18:53:09 +0000 (UTC)
commit 90dfe56a0def209cfebe842d2ba3cfc378a98d7d
Author: John Lindgren <john lindgren aol com>
Date: Sun Oct 6 17:58:00 2013 +0000
Populate GtkPlacesSidebar at initialization
Previously, the "Places" sidebar was populated by the update_places()
call from within gtk_places_sidebar_style_set(). After
742a2f11a95a1e9ce56fe1a628743c7e8add8a57, update_places() is never called
and the sidebar is never populated unless gtk_places_sidebar_add_shortcut()
happens to be called. This commit fixes this by calling update_places()
at the end of gtk_places_sidebar_init().
https://bugzilla.gnome.org/show_bug.cgi?id=709522
gtk/gtkplacessidebar.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index d38d38d..e0b5e39 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -3839,6 +3839,9 @@ gtk_places_sidebar_init (GtkPlacesSidebar *sidebar)
sidebar->drop_state = DROP_STATE_NORMAL;
sidebar->new_bookmark_index = -1;
+
+ /* populate the sidebar */
+ update_places (sidebar);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]