diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-12-21 12:53:34 (EST) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-12-21 12:53:34 (EST) |
commit | a46f086521fc3dfda369452668bd8585ec484f1e (patch) | |
tree | ebcb19de635f3bec23b73a1447eee24f313e50e8 /src | |
parent | 42e62a57382ff6fa901a9cb1773cb6b58a7312d4 (diff) | |
download | marquee-a46f086521fc3dfda369452668bd8585ec484f1e.zip marquee-a46f086521fc3dfda369452668bd8585ec484f1e.tar.gz marquee-a46f086521fc3dfda369452668bd8585ec484f1e.tar.bz2 |
MqTabLabel: Fix title constness and allocation
Diffstat (limited to 'src')
-rw-r--r-- | src/tab-label.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tab-label.c b/src/tab-label.c index 82f5fa1..4ed9aa7 100644 --- a/src/tab-label.c +++ b/src/tab-label.c @@ -37,7 +37,7 @@ struct _MqTabLabel { GtkWidget *image; GtkWidget *label; guint position; - const gchar *title; + gchar *title; gboolean scrolling; gchar *scrolled_title; GtkWidget *popover; @@ -332,7 +332,7 @@ mq_tab_label_init(MqTabLabel *tab_label) GtkWidget *close_button; GtkWidget *box; - tab_label->title = _("New Tab"); + tab_label->title = g_strdup(_("New Tab")); /* Set up tab image. */ tab_label->image = gtk_image_new_from_icon_name("text-html", |