diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-06 22:00:44 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-06 22:00:44 +0000 |
commit | abaadab3c6a099e19ddc1758ef10663c69e31c1f (patch) | |
tree | e080e0e41aa73f78a33657c51a4346fd4ff42089 /chrome/browser/gtk/bookmark_editor_gtk.h | |
parent | 8e92efdf4d3b2a50b8efc1bd4aca9a3895b7d2b7 (diff) | |
download | chromium_src-abaadab3c6a099e19ddc1758ef10663c69e31c1f.zip chromium_src-abaadab3c6a099e19ddc1758ef10663c69e31c1f.tar.gz chromium_src-abaadab3c6a099e19ddc1758ef10663c69e31c1f.tar.bz2 |
GTK: Don't choke when there's no selection in the bookmark editor tree view.
1) disable "new folder" when no folder is selected
2) if a user clicks apply when no folder is selected, apply the title/url edits but leave it in its original location
Review URL: http://codereview.chromium.org/164016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22676 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/bookmark_editor_gtk.h')
-rw-r--r-- | chrome/browser/gtk/bookmark_editor_gtk.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/gtk/bookmark_editor_gtk.h b/chrome/browser/gtk/bookmark_editor_gtk.h index 3cf4c46..42db2a4 100644 --- a/chrome/browser/gtk/bookmark_editor_gtk.h +++ b/chrome/browser/gtk/bookmark_editor_gtk.h @@ -90,6 +90,9 @@ class BookmarkEditorGtk : public BookmarkEditor, // new group. void AddNewGroup(GtkTreeIter* parent, GtkTreeIter* child); + static void OnSelectionChanged(GtkTreeSelection* treeselection, + BookmarkEditorGtk* dialog); + static void OnResponse(GtkDialog* dialog, int response_id, BookmarkEditorGtk* window); @@ -110,6 +113,7 @@ class BookmarkEditorGtk : public BookmarkEditor, GtkWidget* name_entry_; GtkWidget* url_entry_; GtkWidget* tree_view_; + GtkWidget* new_folder_button_; // Helper object that manages the currently selected item in |tree_view_|. GtkTreeSelection* tree_selection_; |