From e1df953dd93764486f76fa8aadf73ddcd63c62a6 Mon Sep 17 00:00:00 2001 From: daleclack Date: Sun, 12 May 2024 09:12:36 +0800 Subject: [PATCH] Update default config --- Gtk4_Reset/src/ui/MyPrefs.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Gtk4_Reset/src/ui/MyPrefs.cpp b/Gtk4_Reset/src/ui/MyPrefs.cpp index 8c7e2c0..0a70570 100644 --- a/Gtk4_Reset/src/ui/MyPrefs.cpp +++ b/Gtk4_Reset/src/ui/MyPrefs.cpp @@ -292,7 +292,6 @@ static void pics_view_init(MyPrefs *self) // Create selection model for view self->image_select = gtk_single_selection_new(G_LIST_MODEL(self->images_list)); - gtk_single_selection_set_selected(self->image_select, 0); // Create column view self->images_view = gtk_column_view_new(GTK_SELECTION_MODEL(self->image_select)); @@ -318,6 +317,9 @@ static void pics_view_init(MyPrefs *self) self->factory_pics_string); gtk_column_view_append_column(GTK_COLUMN_VIEW(self->images_view), self->pics_string_column); + + // Default selection + gtk_single_selection_set_selected(self->image_select, 3); } static void update_resource_image(MyPrefs *prefs, const char *resource_id)