diff options
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_) |