diff options
author | Adrien Plazas <kekun.plazas@laposte.net> | 2019-01-09 21:34:11 +0100 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2019-01-21 21:53:21 +0000 |
commit | b94496703e4287bd05fa7c477293e5e7221aad06 (patch) | |
tree | 613f91a4367eecdc5a9880b791f1fca7a159cc67 | |
parent | dbfc3e4c7ad514185f59c75a5496169a4455aa4c (diff) | |
download | gnome-control-center-b94496703e4287bd05fa7c477293e5e7221aad06.tar.gz |
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.
-rw-r--r-- | panels/applications/cc-applications-panel.c | 10 |
1 files 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); |