[beast: 1/4] BEAST: fix passing std::string through varargs
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 1/4] BEAST: fix passing std::string through varargs
- Date: Fri, 28 Oct 2016 00:03:20 +0000 (UTC)
commit 5ee74053154ce2b6c291d730fc571b5cb1144092
Author: Tim Janik <timj gnu org>
Date: Wed Oct 19 01:14:14 2016 +0200
BEAST: fix passing std::string through varargs
Signed-off-by: Tim Janik <timj gnu org>
beast-gtk/bstmenus.cc | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/beast-gtk/bstmenus.cc b/beast-gtk/bstmenus.cc
index a26bda0..67f189e 100644
--- a/beast-gtk/bstmenus.cc
+++ b/beast-gtk/bstmenus.cc
@@ -136,7 +136,7 @@ bst_choice_menu_add_choice_and_free (GtkWidget *menu,
gxk_stock_image (choice->icon_stock_id.c_str(), GXK_ICON_SIZE_MENU));
any = gtk_widget_new (GTK_TYPE_ACCEL_LABEL,
"visible", TRUE,
- "label", choice->name,
+ "label", choice->name.c_str(),
"parent", item,
"accel_widget", item,
"xalign", 0.0,
@@ -230,7 +230,7 @@ bst_choice_dialog_createv (BstChoice *first_choice,
any = gtk_widget_new (GTK_TYPE_LABEL,
"visible", TRUE,
"justify", GTK_JUSTIFY_CENTER,
- "label", choice->name,
+ "label", choice->name.c_str(),
"wrap", FALSE,
NULL);
gtk_box_pack_start (GTK_BOX (vbox), any, TRUE, TRUE, 0);
@@ -269,7 +269,7 @@ bst_choice_dialog_createv (BstChoice *first_choice,
{
GtkWidget *any;
case BST_CHOICE_TYPE_TITLE:
- gtk_widget_set (dialog, "title", choice->name, NULL);
+ gtk_widget_set (dialog, "title", choice->name.c_str(), NULL);
break;
case BST_CHOICE_TYPE_ITEM:
any = gxk_dialog_action_multi (GXK_DIALOG (dialog), choice->name.c_str(),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]