[gtk+/places-sidebar] Create the places sidebar instead of the old custom treeview
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/places-sidebar] Create the places sidebar instead of the old custom treeview
- Date: Thu, 6 Sep 2012 01:14:40 +0000 (UTC)
commit 4fe3cd8f1e7ac69d92e5ecf1668ef5b670802fc6
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Sep 5 19:48:16 2012 -0500
Create the places sidebar instead of the old custom treeview
Signed-off-by: Federico Mena Quintero <federico gnome org>
gtk/gtkfilechooserdefault.c | 4 +++-
gtk/gtkfilechooserprivate.h | 2 ++
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index a29bbfa..b355c68 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -51,6 +51,7 @@
#include "gtkmountoperation.h"
#include "gtkpaned.h"
#include "gtkpathbar.h"
+#include "gtkplacessidebar.h"
#include "gtkprivate.h"
#include "gtkradiobutton.h"
#include "gtkrecentfilter.h"
@@ -3741,7 +3742,8 @@ static GtkWidget *
shortcuts_pane_create (GtkFileChooserDefault *impl,
GtkSizeGroup *size_group)
{
- return gtk_label_new ("yay");
+ impl->places_sidebar = gtk_places_sidebar_new ();
+ return impl->places_sidebar;
}
static gboolean
diff --git a/gtk/gtkfilechooserprivate.h b/gtk/gtkfilechooserprivate.h
index d4adbb7..7be9a56 100644
--- a/gtk/gtkfilechooserprivate.h
+++ b/gtk/gtkfilechooserprivate.h
@@ -198,6 +198,8 @@ struct _GtkFileChooserDefault
GtkFileSystemModel *browse_files_model;
char *browse_files_last_selected_name;
+ GtkWidget *places_sidebar;
+
/* OPERATION_MODE_SEARCH */
GtkWidget *search_hbox;
GtkWidget *search_entry;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]