summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/bookmark_utils_gtk.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-08 02:18:31 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-08 02:18:31 +0000
commit94d88ad381bbb235cde17c9a7c5849331945d9c9 (patch)
tree34f7025f687dc63618bf32659fe0c19b45c33f0f /chrome/browser/gtk/bookmark_utils_gtk.h
parentf73eb0b562eb18036042c27a71fdff9fe6a33a13 (diff)
downloadchromium_src-94d88ad381bbb235cde17c9a7c5849331945d9c9.zip
chromium_src-94d88ad381bbb235cde17c9a7c5849331945d9c9.tar.gz
chromium_src-94d88ad381bbb235cde17c9a7c5849331945d9c9.tar.bz2
GTK: Use stock icons for bookmark folder and default favicon.
In the main window, in the default theme, we still use the chrome icons. There are still several more places that need updating: the tab strip, the task manager, etc. I will deal with that later. BUG=13320 Review URL: http://codereview.chromium.org/165194 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22855 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/bookmark_utils_gtk.h')
-rw-r--r--chrome/browser/gtk/bookmark_utils_gtk.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/gtk/bookmark_utils_gtk.h b/chrome/browser/gtk/bookmark_utils_gtk.h
index 865a79e..3bab09d 100644
--- a/chrome/browser/gtk/bookmark_utils_gtk.h
+++ b/chrome/browser/gtk/bookmark_utils_gtk.h
@@ -23,12 +23,14 @@ extern const int kBarButtonPadding;
// These functions do not add a ref to the returned pixbuf, and it should not be
// unreffed.
-GdkPixbuf* GetFolderIcon();
-GdkPixbuf* GetDefaultFavicon();
+// If |native| is true, get the GTK_STOCK version of the icon.
+GdkPixbuf* GetFolderIcon(bool native);
+GdkPixbuf* GetDefaultFavicon(bool native);
// Get the image that is used to represent the node. This function adds a ref
// to the returned pixbuf, so it requires a matching call to g_object_unref().
-GdkPixbuf* GetPixbufForNode(const BookmarkNode* node, BookmarkModel* model);
+GdkPixbuf* GetPixbufForNode(const BookmarkNode* node, BookmarkModel* model,
+ bool native);
// Returns a GtkWindow with a visual hierarchy for passing to
// gtk_drag_set_icon_widget().
@@ -47,8 +49,7 @@ std::string BuildTooltipFor(const BookmarkNode* node);
// Returns the "bookmark-node" property of |widget| casted to the correct type.
const BookmarkNode* BookmarkNodeForWidget(GtkWidget* widget);
-// This function is a temporary hack to fix fonts on dark system themes.
-// TODO(estade): remove this function.
+// Set the colors on |label| as per the theme.
void SetButtonTextColors(GtkWidget* label, GtkThemeProvider* provider);
// Drag and drop. --------------------------------------------------------------