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-26 19:53:35 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-26 19:53:35 +0000
commitbe6201369c7e36d720fc21a2d75bdac6c4350369 (patch)
treeada90adce73c4320d2ac8c221472ce7f84c38f43 /chrome/browser/gtk/bookmark_manager_gtk.h
parentc99a16ab889a22fcf24479a9284daa22a10eabc6 (diff)
downloadchromium_src-be6201369c7e36d720fc21a2d75bdac6c4350369.zip
chromium_src-be6201369c7e36d720fc21a2d75bdac6c4350369.tar.gz
chromium_src-be6201369c7e36d720fc21a2d75bdac6c4350369.tar.bz2
GTK bookmark manager: workaround for multi row dragging.
http://crbug.com/15240 TEST=click around in the bookmark manager a lot, everything works as you'd expect. In particular, if you hold ctrl and select a few rows, then release control, then click on those rows and try to drag them, they will drag. Review URL: http://codereview.chromium.org/147188 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19402 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/bookmark_manager_gtk.h')
-rw-r--r--chrome/browser/gtk/bookmark_manager_gtk.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/chrome/browser/gtk/bookmark_manager_gtk.h b/chrome/browser/gtk/bookmark_manager_gtk.h
index 77b3455..1ef9041 100644
--- a/chrome/browser/gtk/bookmark_manager_gtk.h
+++ b/chrome/browser/gtk/bookmark_manager_gtk.h
@@ -188,7 +188,10 @@ class BookmarkManagerGtk : public BookmarkModelObserver,
static gboolean OnRightTreeViewButtonPress(GtkWidget* tree_view,
GdkEventButton* event, BookmarkManagerGtk* bookmark_manager);
- static gboolean OnTreeViewButtonRelease(GtkTreeView* tree_view,
+ static gboolean OnRightTreeViewMotion(GtkWidget* tree_view,
+ GdkEventMotion* event, BookmarkManagerGtk* bookmark_manager);
+
+ static gboolean OnTreeViewButtonRelease(GtkWidget* tree_view,
GdkEventButton* button, BookmarkManagerGtk* bookmark_manager);
// Tools menu item callbacks.
@@ -228,6 +231,11 @@ class BookmarkManagerGtk : public BookmarkModelObserver,
ScopedRunnableMethodFactory<BookmarkManagerGtk> search_factory_;
scoped_refptr<SelectFileDialog> select_file_dialog_;
+
+ // These two variables used for the workaround for http://crbug.com/15240.
+ // The last mouse down we got. Only valid while |delaying_mousedown| is true.
+ GdkEventButton mousedown_event_;
+ bool delaying_mousedown_;
};
#endif // CHROME_BROWSER_GTK_BOOKMARK_MANAGER_GTK_H_