From bafdea787f8acac6906f05721b287aba04f13573 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Fri, 7 Feb 2020 21:06:30 -0800 Subject: [PATCH] Fixed content_halign not working correctly with multi-action entries --- src/wofi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wofi.c b/src/wofi.c index a4cd513..79d4b74 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -293,7 +293,6 @@ char* wofi_parse_image_escapes(const char* text) { static GtkWidget* create_label(char* mode, char* text, char* search_text, char* action) { GtkWidget* box = wofi_property_box_new(GTK_ORIENTATION_HORIZONTAL, 0); - gtk_widget_set_halign(box, content_halign); gtk_widget_set_name(box, "unselected"); GtkStyleContext* style = gtk_widget_get_style_context(box); gtk_style_context_add_class(style, "entry"); @@ -402,6 +401,7 @@ static gboolean _insert_widget(gpointer data) { } else { parent = create_label(node->mode, node->text[0], node->search_text, node->actions[0]); } + gtk_widget_set_halign(parent, content_halign); GtkWidget* child = gtk_flow_box_child_new(); gtk_widget_set_name(child, "entry");