diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-05 20:36:31 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-05 20:36:31 +0000 |
commit | 6f35e04b4903927e1df4915e6dc0201f66a0f73b (patch) | |
tree | 5084dadf701400d442bed4e7cfdfc84c5f257a66 /chrome/browser/gtk/download_item_gtk.cc | |
parent | 7f30de155d3bd8c0a5afe7a2b588590201627125 (diff) | |
download | chromium_src-6f35e04b4903927e1df4915e6dc0201f66a0f73b.zip chromium_src-6f35e04b4903927e1df4915e6dc0201f66a0f73b.tar.gz chromium_src-6f35e04b4903927e1df4915e6dc0201f66a0f73b.tar.bz2 |
Several little style cleanups in GTK download shelf code.
Review URL: http://codereview.chromium.org/40174
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11029 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/download_item_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/download_item_gtk.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/chrome/browser/gtk/download_item_gtk.cc b/chrome/browser/gtk/download_item_gtk.cc index c2e72d5..7e6c4f6 100644 --- a/chrome/browser/gtk/download_item_gtk.cc +++ b/chrome/browser/gtk/download_item_gtk.cc @@ -18,7 +18,7 @@ namespace { // bitmap that we use to draw it, i.e. 16, but can be more. const int kMenuButtonWidth = 16; -} +} // namespace NineBox* DownloadItemGtk::body_nine_box_normal_ = NULL; NineBox* DownloadItemGtk::body_nine_box_prelight_ = NULL; @@ -39,8 +39,10 @@ DownloadItemGtk::DownloadItemGtk(BaseDownloadItemModel* download_model, g_signal_connect(G_OBJECT(body_), "expose-event", G_CALLBACK(OnExpose), this); GTK_WIDGET_UNSET_FLAGS(body_, GTK_CAN_FOCUS); - GtkWidget* label = gtk_label_new(download_model->download()->GetFileName() - .value().c_str()); + // TODO(estade): gtk_label_new() expects UTF8, but FilePath may have a + // different encoding on linux. + GtkWidget* label = gtk_label_new( + download_model->download()->GetFileName().value().c_str()); gtk_container_add(GTK_CONTAINER(body_), label); menu_button_ = gtk_button_new(); @@ -57,6 +59,9 @@ DownloadItemGtk::DownloadItemGtk(BaseDownloadItemModel* download_model, gtk_widget_show_all(hbox_); } +DownloadItemGtk::~DownloadItemGtk() { +} + // static void DownloadItemGtk::InitNineBoxes() { if (body_nine_box_normal_) |