From c451714f638ec81589602405c45776285f93e9d8 Mon Sep 17 00:00:00 2001 From: "erg@google.com" Date: Fri, 21 Aug 2009 21:51:57 +0000 Subject: GTK Themes: Download items should be drawn with GTK, not nineboxes. Review URL: http://codereview.chromium.org/174253 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24023 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/download_item_gtk.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'chrome/browser/gtk/download_item_gtk.h') diff --git a/chrome/browser/gtk/download_item_gtk.h b/chrome/browser/gtk/download_item_gtk.h index 32c928f..46fec89 100644 --- a/chrome/browser/gtk/download_item_gtk.h +++ b/chrome/browser/gtk/download_item_gtk.h @@ -83,7 +83,11 @@ class DownloadItemGtk : public DownloadItem::Observer, static void InitNineBoxes(); - // Used for the download item's body and menu button. + // Draws everything in GTK rendering mode. + static gboolean OnHboxExpose(GtkWidget* widget, GdkEventExpose* e, + DownloadItemGtk* download_item); + + // Used for the download item's body and menu button in chrome theme mode. static gboolean OnExpose(GtkWidget* widget, GdkEventExpose* e, DownloadItemGtk* download_item); @@ -146,6 +150,10 @@ class DownloadItemGtk : public DownloadItem::Observer, // The widget that creates a dropdown menu when pressed. GtkWidget* menu_button_; + // A gtk arrow pointing downward displayed in |menu_button_|. Only displayed + // in GTK mode. + GtkWidget* arrow_; + // Whether the menu is currently showing for |menu_button_|. Affects how we // draw the button. bool menu_showing_; -- cgit v1.1