From 6b4c90490b71039b2ba8d2d2a5dc01f97df467d2 Mon Sep 17 00:00:00 2001 From: Jeremy Sowden Date: Tue, 21 May 2024 18:45:58 +0100 Subject: [PATCH] wmclockmon: replace deprecated `gtk_label_get` Signed-off-by: Jeremy Sowden --- wmclockmon/wmclockmon-cal/mainwindow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wmclockmon/wmclockmon-cal/mainwindow.c b/wmclockmon/wmclockmon-cal/mainwindow.c index 348d3b6..315e4cb 100644 --- a/wmclockmon/wmclockmon-cal/mainwindow.c +++ b/wmclockmon/wmclockmon-cal/mainwindow.c @@ -166,7 +166,7 @@ static void editor_flush(void) { static void editor_fill(int which) { - char *filename, *dstr; + const char *dstr; GtkWidget *label; GtkTextIter iter; @@ -175,7 +175,7 @@ static void editor_fill(int which) { case YEAR: label = label_y; break; case MONTH: label = label_m; break; } - gtk_label_get(GTK_LABEL(label), &dstr); + dstr = gtk_label_get_text(GTK_LABEL(label)); strcpy(daystr, dstr); to_button(which); editor_flush(); -- 2.11.4.GIT