[gnome-software/1497-os-updates-going-back-scrolls-the-list-to-the-top] gs-update-dialog: Going back scrolls the list to the top



commit 91221a063faa414b11dcf050b99d53cb8520519b
Author: Milan Crha <mcrha redhat com>
Date:   Tue Oct 26 10:38:07 2021 +0200

    gs-update-dialog: Going back scrolls the list to the top
    
    The focus unset causes the list of the OS Updates to scroll to the top,
    which is an unneeded side effect of it.
    
    Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1497

 src/gs-update-dialog.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/src/gs-update-dialog.c b/src/gs-update-dialog.c
index 7c7680456..1513e2de4 100644
--- a/src/gs-update-dialog.c
+++ b/src/gs-update-dialog.c
@@ -158,7 +158,6 @@ unset_focus (GtkWidget *widget)
        focus = gtk_window_get_focus (GTK_WINDOW (widget));
        if (GTK_IS_LABEL (focus))
                gtk_label_select_region (GTK_LABEL (focus), 0, 0);
-       gtk_window_set_focus (GTK_WINDOW (widget), NULL);
 }
 
 static void


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