[gnome-control-center] applications: Update the panel on activation, not selection



commit b94496703e4287bd05fa7c477293e5e7221aad06
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Wed Jan 9 21:34:11 2019 +0100

    applications: Update the panel on activation, not selection
    
    This allows to activate the already selected panel with a single click
    rather than a double click, which will be needed to simply focus the
    panel when the window will use a leaflet.

 panels/applications/cc-applications-panel.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/panels/applications/cc-applications-panel.c b/panels/applications/cc-applications-panel.c
index d177902f0..bd31d720f 100644
--- a/panels/applications/cc-applications-panel.c
+++ b/panels/applications/cc-applications-panel.c
@@ -1421,9 +1421,9 @@ apps_changed (GAppInfoMonitor     *monitor,
 }
 
 static void
-row_selected_cb (GtkListBox          *list,
-                 GtkListBoxRow       *row,
-                 CcApplicationsPanel *self)
+row_activated_cb (GtkListBox          *list,
+                  GtkListBoxRow       *row,
+                  CcApplicationsPanel *self)
 {
   update_panel (self, row);
 }
@@ -1653,8 +1653,8 @@ cc_applications_panel_init (CcApplicationsPanel *self)
                                              provider,
                                              GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
 
-  g_signal_connect (self->sidebar_listbox, "row-selected",
-                    G_CALLBACK (row_selected_cb), self);
+  g_signal_connect (self->sidebar_listbox, "row-activated",
+                    G_CALLBACK (row_activated_cb), self);
 
   g_signal_connect (self->header_button, "clicked", G_CALLBACK (open_software_cb), self);
 


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