From ea5fbfdd3c05a970b54b9b618eeab5df9f12e5eb Mon Sep 17 00:00:00 2001 From: Melih Darcan <57872471+MelihDarcanxyz@users.noreply.github.com> Date: Sun, 28 Aug 2022 22:41:10 +0300 Subject: [PATCH] Made the greeter more customizable Added ```input-field``` and ```command-selector``` classes to reference in CSS. --- gtkgreet/window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtkgreet/window.c b/gtkgreet/window.c index 0fac5a3..dcde118 100644 --- a/gtkgreet/window.c +++ b/gtkgreet/window.c @@ -90,6 +90,7 @@ void window_setup_question(struct Window *ctx, enum QuestionType type, char* que gtk_container_add(GTK_CONTAINER(question_box), label); ctx->input_field = gtk_entry_new(); + gtk_widget_set_name(ctx->input_field, "input-field"); if (type == QuestionTypeSecret) { gtk_entry_set_input_purpose((GtkEntry*)ctx->input_field, GTK_INPUT_PURPOSE_PASSWORD); gtk_entry_set_visibility((GtkEntry*)ctx->input_field, FALSE); @@ -113,6 +114,7 @@ void window_setup_question(struct Window *ctx, enum QuestionType type, char* que if (type == QuestionTypeInitial) { ctx->command_selector = gtk_combo_box_text_new_with_entry(); + gtk_widget_set_name(ctx->command_selector, "command-selector"); gtk_widget_set_size_request(ctx->command_selector, 384, -1); config_update_command_selector(ctx->command_selector); gtk_widget_set_halign(ctx->command_selector, GTK_ALIGN_END); -- 2.38.5