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

Side by Side Diff: chrome/browser/ui/gtk/gtk_chrome_link_button.cc

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/gtk/gtk_chrome_button.cc ('k') | chrome/browser/ui/gtk/gtk_theme_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" 5 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include "chrome/browser/ui/gtk/gtk_util.h" 9 #include "chrome/browser/ui/gtk/gtk_util.h"
10 #include "gfx/gtk_util.h" 10 #include "ui/gfx/gtk_util.h"
11 11
12 static const gchar* kLinkMarkup = "<u><span color=\"%s\">%s</span></u>"; 12 static const gchar* kLinkMarkup = "<u><span color=\"%s\">%s</span></u>";
13 13
14 namespace { 14 namespace {
15 15
16 // Set the GTK style on our custom link button. We don't want any border around 16 // Set the GTK style on our custom link button. We don't want any border around
17 // the link text. 17 // the link text.
18 void SetLinkButtonStyle() { 18 void SetLinkButtonStyle() {
19 static bool style_was_set = false; 19 static bool style_was_set = false;
20 20
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 strncpy(button->normal_color, "blue", 9); 250 strncpy(button->normal_color, "blue", 9);
251 } 251 }
252 252
253 gtk_chrome_link_button_set_text(button); 253 gtk_chrome_link_button_set_text(button);
254 254
255 if (GTK_WIDGET_VISIBLE(button)) 255 if (GTK_WIDGET_VISIBLE(button))
256 gtk_widget_queue_draw(GTK_WIDGET(button)); 256 gtk_widget_queue_draw(GTK_WIDGET(button));
257 } 257 }
258 258
259 G_END_DECLS 259 G_END_DECLS
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/gtk_chrome_button.cc ('k') | chrome/browser/ui/gtk/gtk_theme_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698