summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/download_shelf_gtk.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-06 23:33:08 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-06 23:33:08 +0000
commit3dda0dcf7d4856d598a2a0e7553e71dbd59134eb (patch)
treea9f2f93ce239ff603b05f900e34fa6a2a460227b /chrome/browser/gtk/download_shelf_gtk.cc
parentae0f44dd31b81be0d9e0ef5d4478e0ef5ca2805d (diff)
downloadchromium_src-3dda0dcf7d4856d598a2a0e7553e71dbd59134eb.zip
chromium_src-3dda0dcf7d4856d598a2a0e7553e71dbd59134eb.tar.gz
chromium_src-3dda0dcf7d4856d598a2a0e7553e71dbd59134eb.tar.bz2
Basic infobars on linux.
All infobars consist of nothing but a non-functioning close button. Review URL: http://codereview.chromium.org/62070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13206 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/download_shelf_gtk.cc')
-rw-r--r--chrome/browser/gtk/download_shelf_gtk.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/chrome/browser/gtk/download_shelf_gtk.cc b/chrome/browser/gtk/download_shelf_gtk.cc
index 18ab1bc..1d2cb2b 100644
--- a/chrome/browser/gtk/download_shelf_gtk.cc
+++ b/chrome/browser/gtk/download_shelf_gtk.cc
@@ -130,15 +130,10 @@ DownloadShelfGtk::DownloadShelfGtk(TabContents* tab_contents)
gtk_box_pack_start(GTK_BOX(shelf_), padding_bg, FALSE, FALSE, 0);
// Create and pack the close button.
- close_button_.reset(new CustomDrawButton(IDR_CLOSE_BAR,
- IDR_CLOSE_BAR_P, IDR_CLOSE_BAR_H, 0));
+ GtkWidget* centering_vbox_;
+ close_button_.reset(CustomDrawButton::AddBarCloseButton(hbox_));
g_signal_connect(G_OBJECT(close_button_->widget()), "clicked",
G_CALLBACK(OnButtonClick), this);
- GTK_WIDGET_UNSET_FLAGS(close_button_->widget(), GTK_CAN_FOCUS);
- GtkWidget* centering_vbox = gtk_vbox_new(FALSE, 0);
- gtk_box_pack_start(GTK_BOX(centering_vbox),
- close_button_->widget(), TRUE, FALSE, 0);
- gtk_box_pack_end(GTK_BOX(hbox_), centering_vbox, FALSE, FALSE, 0);
// Create and pack the "Show all downloads..." link.
// TODO(estade): there are some pixels above and below the link that