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-07-31 23:42:39 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-31 23:42:39 +0000
commit8c75152b9a588e4195edc4ea6b037b8e7b209d29 (patch)
tree89c6a7b9b34c1a345dca6a91f3f38da351f97939 /chrome/browser/gtk/gtk_chrome_link_button.h
parent3ed584e7b6e2a872441e6d31b7584311811dc71e (diff)
downloadchromium_src-8c75152b9a588e4195edc4ea6b037b8e7b209d29.zip
chromium_src-8c75152b9a588e4195edc4ea6b037b8e7b209d29.tar.gz
chromium_src-8c75152b9a588e4195edc4ea6b037b8e7b209d29.tar.bz2
GTK: Theme our link button.
BUG=17772 Review URL: http://codereview.chromium.org/159748 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22226 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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/gtk/gtk_chrome_link_button.h b/chrome/browser/gtk/gtk_chrome_link_button.h
index cac77e0..e8cf891 100644
--- a/chrome/browser/gtk/gtk_chrome_link_button.h
+++ b/chrome/browser/gtk/gtk_chrome_link_button.h
@@ -40,8 +40,12 @@ struct _GtkChromeLinkButton {
gchar* blue_markup;
gchar* red_markup;
gboolean is_blue;
+ gchar* native_markup;
+ gboolean using_native_theme;
GdkCursor* hand_cursor;
GdkEventButton* click_button_event;
+ gchar* text;
+ gboolean uses_markup;
};
struct _GtkChromeLinkButtonClass {
@@ -54,6 +58,11 @@ GtkWidget* gtk_chrome_link_button_new(const char* text);
// As above, but don't escape markup in the text.
GtkWidget* gtk_chrome_link_button_new_with_markup(const char* markup);
+// Set whether the link button draws natively (using "link-color"). The default
+// is TRUE.
+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.