[gnome-builder/wip/gtk4-port: 260/343] libide/gui: fix reselecting selected row from overview




commit eb4acded656b5debd27c873f4210188f65beddaf
Author: Christian Hergert <chergert redhat com>
Date:   Thu Mar 31 12:45:32 2022 -0700

    libide/gui: fix reselecting selected row from overview
    
    If we go back to the overview, we want to keep the row selected so it
    matches the behavior of control-center. However currently that means we
    can't reselect the row properly. Clearing our "current page" pointer
    allows that to be reselected.

 src/libide/gui/ide-preferences-window.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/libide/gui/ide-preferences-window.c b/src/libide/gui/ide-preferences-window.c
index 73d654879..60a3a22b7 100644
--- a/src/libide/gui/ide-preferences-window.c
+++ b/src/libide/gui/ide-preferences-window.c
@@ -223,6 +223,8 @@ go_back_cb (IdePreferencesWindow *self,
 
   if (!(page = get_page (self, page->parent)))
     {
+      self->current_page = NULL;
+
       gtk_stack_set_visible_child_name (self->pages_stack, "default");
 
       gtk_widget_hide (GTK_WIDGET (self->back_button));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]