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

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

Issue 155040: GTK: Give the aboot dialog a facelift.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 6 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/about_chrome_dialog.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 19874)
+++ chrome/browser/gtk/gtk_chrome_link_button.h (working copy)
@@ -37,8 +37,8 @@
struct _GtkChromeLinkButton {
GtkButton button;
GtkWidget* label;
- char* blue_markup;
- char* red_markup;
+ gchar* blue_markup;
+ gchar* red_markup;
gboolean is_blue;
GdkCursor* hand_cursor;
GdkEventButton* click_button_event;
@@ -48,8 +48,12 @@
GtkButtonClass parent_class;
};
+// Make a link button with display text |text|.
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);
+
// 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/about_chrome_dialog.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