Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2029)

Unified Diff: chrome/browser/gtk/gtk_chrome_link_button.h

Issue 159748: GTK: Theme our link button. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comment Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/gtk/download_shelf_gtk.cc ('k') | chrome/browser/gtk/gtk_chrome_link_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/gtk_chrome_link_button.h
===================================================================
--- chrome/browser/gtk/gtk_chrome_link_button.h (revision 22168)
+++ chrome/browser/gtk/gtk_chrome_link_button.h (working copy)
@@ -40,8 +40,12 @@
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 @@
// 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.
« no previous file with comments | « chrome/browser/gtk/download_shelf_gtk.cc ('k') | chrome/browser/gtk/gtk_chrome_link_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698