summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/bookmark_manager_gtk.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-03 20:20:21 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-03 20:20:21 +0000
commit7822e018e5ebabeeb3e8ff46aa67a52b1b1c1cf8 (patch)
tree7cad8b6a7c7601cea294dd90a7f6a7d63a84fee7 /chrome/browser/gtk/bookmark_manager_gtk.h
parent7e54bba4f0e3bb17d205b551ab6799020fc9c110 (diff)
downloadchromium_src-7822e018e5ebabeeb3e8ff46aa67a52b1b1c1cf8.zip
chromium_src-7822e018e5ebabeeb3e8ff46aa67a52b1b1c1cf8.tar.gz
chromium_src-7822e018e5ebabeeb3e8ff46aa67a52b1b1c1cf8.tar.bz2
Linux: more bookmark manager stuff.
Display stuff in the right pane. Also fix a bug I introduced in the last patch. Review URL: http://codereview.chromium.org/118178 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17527 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/bookmark_manager_gtk.h')
-rw-r--r--chrome/browser/gtk/bookmark_manager_gtk.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/chrome/browser/gtk/bookmark_manager_gtk.h b/chrome/browser/gtk/bookmark_manager_gtk.h
index 6bbf0fd..4d8c289 100644
--- a/chrome/browser/gtk/bookmark_manager_gtk.h
+++ b/chrome/browser/gtk/bookmark_manager_gtk.h
@@ -58,18 +58,31 @@ class BookmarkManagerGtk : public BookmarkModelObserver {
GtkWidget* MakeRightPane();
// Pack the data from the bookmark model into the stores. This does not
- // create the stores, which is done in Make{Left,Right}Pane(). These should
- // only be called once (when the bookmark model is loaded).
+ // create the stores, which is done in Make{Left,Right}Pane().
+ // This one should only be called once (when the bookmark model is loaded).
void BuildLeftStore();
+ // This one clears the old right pane and refills it with the contents of
+ // whatever folder is selected on the left.
void BuildRightStore();
+ GtkTreeSelection* left_selection() {
+ return gtk_tree_view_get_selection(GTK_TREE_VIEW(left_tree_view_));
+ }
+
+ static void OnLeftSelectionChanged(GtkTreeSelection* selection,
+ BookmarkManagerGtk* bookmark_manager);
+
GtkWidget* window_;
Profile* profile_;
BookmarkModel* model_;
+ GtkWidget* left_tree_view_;
+ GtkWidget* right_tree_view_;
enum {
+ RIGHT_PANE_PIXBUF,
RIGHT_PANE_TITLE,
RIGHT_PANE_URL,
+ RIGHT_PANE_ID,
RIGHT_PANE_NUM
};
GtkTreeStore* left_store_;