summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/gtk_chrome_link_button.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-11 00:00:56 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-11 00:00:56 +0000
commitc5c0e096269948fa0d323ce2016d6dfdbf04543d (patch)
tree5844d879a46b2fadb1a1e1dbfa40c3aafd9f46be /chrome/browser/gtk/gtk_chrome_link_button.h
parent3269829189afca38b26b968f693bcc7e611f37c6 (diff)
downloadchromium_src-c5c0e096269948fa0d323ce2016d6dfdbf04543d.zip
chromium_src-c5c0e096269948fa0d323ce2016d6dfdbf04543d.tar.gz
chromium_src-c5c0e096269948fa0d323ce2016d6dfdbf04543d.tar.bz2
GTK: button clicking cleanup.
I found a much better way to implement middle-click-to-navigate: use gtk_get_current_event() to get the button release event that triggered the "clicked" signal. This simplifies greatly a lot of places that I had previously added complication. Also this adds middle click to navigate on the go button. Also this makes middle click on a bookmark bar button depress the button. Review URL: http://codereview.chromium.org/165261 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22976 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/gtk_chrome_link_button.h')
-rw-r--r--chrome/browser/gtk/gtk_chrome_link_button.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/chrome/browser/gtk/gtk_chrome_link_button.h b/chrome/browser/gtk/gtk_chrome_link_button.h
index e8cf891..adc6771 100644
--- a/chrome/browser/gtk/gtk_chrome_link_button.h
+++ b/chrome/browser/gtk/gtk_chrome_link_button.h
@@ -43,7 +43,6 @@ struct _GtkChromeLinkButton {
gchar* native_markup;
gboolean using_native_theme;
GdkCursor* hand_cursor;
- GdkEventButton* click_button_event;
gchar* text;
gboolean uses_markup;
};
@@ -63,12 +62,6 @@ GtkWidget* gtk_chrome_link_button_new_with_markup(const char* markup);
void gtk_chrome_link_button_set_use_gtk_theme(GtkChromeLinkButton* button,
gboolean use_gtk);
-// Call this from within a "clicked" handler to get the release event that
-// triggered the click. It will return NULL if the click was triggered by a
-// keyboard event.
-const GdkEventButton* gtk_chrome_link_button_get_event_for_click(
- GtkChromeLinkButton* button);
-
GType gtk_chrome_link_button_get_type();
G_END_DECLS