aboutsummaryrefslogtreecommitdiffstats
path: root/info-gtk.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-15 22:25:52 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-15 22:32:08 -0700
commit4e1b66414e9c03e4a53f0fb09c1659cdfebc1c89 (patch)
tree5cf713aae23b2cb15bed4a30eb97e7b2e81e1a76 /info-gtk.c
parent63c0c7921baf81833632a06b74ca1b964215b826 (diff)
downloadsubsurface-4e1b66414e9c03e4a53f0fb09c1659cdfebc1c89.tar.gz
Add missing widget title for manual dive entry / edit
Buffer was used uninitialized instead. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'info-gtk.c')
-rw-r--r--info-gtk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/info-gtk.c b/info-gtk.c
index 87f4b96bc..61ed1c3b6 100644
--- a/info-gtk.c
+++ b/info-gtk.c
@@ -536,7 +536,9 @@ static void dive_info_widget(GtkWidget *obox, struct dive *dive, struct dive_inf
label = gtk_label_new(buffer);
gtk_box_pack_start(GTK_BOX(obox), label, FALSE, TRUE, 0);
} else {
- GtkWidget *basedata = gtk_button_new_with_label(buffer);
+ GtkWidget *basedata;
+ snprintf(buffer, sizeof(buffer), "%s", _("Edit dive"));
+ basedata = gtk_button_new_with_label(buffer);
set_dive_button_label(basedata, dive);
g_signal_connect(G_OBJECT(basedata), "button-press-event", G_CALLBACK(base_data_cb), dive);
gtk_box_pack_start(GTK_BOX(obox), basedata, FALSE, TRUE, 0);