From 9e12533317846a4c030afeefb905fa113d990b8c Mon Sep 17 00:00:00 2001 From: Scoopta Date: Sun, 1 Sep 2019 20:07:15 -0700 Subject: [PATCH] The image and label widgets now have names --- src/wofi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wofi.c b/src/wofi.c index 641ba8f..7ccb4d7 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -107,6 +107,7 @@ static GtkWidget* create_label(char* text, char* action) { buf = tmp; } GtkWidget* img = gtk_image_new_from_pixbuf(buf); + gtk_widget_set_name(img, "img"); gtk_container_add(GTK_CONTAINER(box), img); } else if(strcmp(mode, "text") == 0) { if(filter == NULL) { @@ -117,6 +118,7 @@ static GtkWidget* create_label(char* text, char* action) { filter = tmp_filter; } GtkWidget* label = gtk_label_new(tmp); + gtk_widget_set_name(label, "text"); gtk_label_set_use_markup(GTK_LABEL(label), allow_markup); gtk_label_set_xalign(GTK_LABEL(label), 0); gtk_container_add(GTK_CONTAINER(box), label);