[gnome-control-center] applications: Fix selecting an app using the command line



commit a9d7b085df0d35813573fcfd4e2458bf9159d9a4
Author: Philip Withnall <pwithnall endlessos org>
Date:   Tue Aug 17 13:31:15 2021 +0100

    applications: Fix selecting an app using the command line
    
    If I run `gnome-control-center applications org.freedesktop.Bustle`
    while g-c-c is already running and a different app is shown, Bustle will
    be selected in the list box, but the details panel won’t be updated to
    show it.
    
    Fix that by emitting the `activate` signal on the row, as is done
    everywhere else in `cc-applications-panel.c` when selecting a row.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 panels/applications/cc-applications-panel.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/panels/applications/cc-applications-panel.c b/panels/applications/cc-applications-panel.c
index 6b9a1c05b..ab6ac68a2 100644
--- a/panels/applications/cc-applications-panel.c
+++ b/panels/applications/cc-applications-panel.c
@@ -1813,6 +1813,7 @@ select_app (CcApplicationsPanel *self,
       if (g_str_has_prefix (g_app_info_get_id (info), app_id))
         {
           gtk_list_box_select_row (self->sidebar_listbox, GTK_LIST_BOX_ROW (row));
+          g_signal_emit_by_name (row, "activate");
           break;
         }
     }


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