From d789164929baffe0c9ef86bc9c35632bb73b2700 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 31 Dec 2022 02:33:52 +0200 Subject: [PATCH 29/29] gtk4: Fix options adjusted in combo boxes See osdn #46386 Signed-off-by: Marko Lindqvist --- client/gui-gtk-4.0/optiondlg.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/gui-gtk-4.0/optiondlg.c b/client/gui-gtk-4.0/optiondlg.c index c8bf90fd77..b0c12fb522 100644 --- a/client/gui-gtk-4.0/optiondlg.c +++ b/client/gui-gtk-4.0/optiondlg.c @@ -934,9 +934,8 @@ static void option_dialog_option_apply(struct option *poption) case OT_STRING: if (NULL != option_str_values(poption)) { - (void) option_str_set(poption, gtk_entry_buffer_get_text( - gtk_entry_get_buffer( - GTK_ENTRY(widget_get_child(w))))); + (void) option_str_set(poption, + gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(w))); } else { (void) option_str_set(poption, gtk_entry_buffer_get_text( gtk_entry_get_buffer(GTK_ENTRY(w)))); -- 2.39.0