applications: Do signal handlers in swapped form

This commit is contained in:
Robert Ancell 2023-05-26 11:37:23 +12:00 committed by Felipe Borges
parent 901f395e9e
commit 642833509b
2 changed files with 8 additions and 12 deletions

View file

@ -1204,8 +1204,7 @@ update_handler_dialog (CcApplicationsPanel *self,
/* --- usage section --- */
static void
on_builtin_row_activated_cb (GtkListBoxRow *row,
CcApplicationsPanel *self)
on_builtin_row_activated_cb (CcApplicationsPanel *self)
{
CcShell *shell = cc_panel_get_shell (CC_PANEL (self));
@ -1215,8 +1214,7 @@ on_builtin_row_activated_cb (GtkListBoxRow *row,
}
static void
on_handler_row_activated_cb (GtkListBoxRow *row,
CcApplicationsPanel *self)
on_handler_row_activated_cb (CcApplicationsPanel *self)
{
CcShell *shell = cc_panel_get_shell (CC_PANEL (self));
@ -1226,8 +1224,7 @@ on_handler_row_activated_cb (GtkListBoxRow *row,
}
static void
on_storage_row_activated_cb (GtkListBoxRow *row,
CcApplicationsPanel *self)
on_storage_row_activated_cb (CcApplicationsPanel *self)
{
CcShell *shell = cc_panel_get_shell (CC_PANEL (self));
@ -1579,8 +1576,7 @@ select_app (CcApplicationsPanel *self,
}
static void
on_launch_button_clicked_cb (GtkButton *button,
CcApplicationsPanel *self)
on_launch_button_clicked_cb (CcApplicationsPanel *self)
{
g_autoptr(GdkAppLaunchContext) context = NULL;
g_autoptr(GError) error = NULL;

View file

@ -82,7 +82,7 @@
<child>
<object class="GtkButton" id="launch_button">
<property name="label" translatable="yes">Open</property>
<signal name="clicked" handler="on_launch_button_clicked_cb" object="CcApplicationsPanel" swapped="no" />
<signal name="clicked" handler="on_launch_button_clicked_cb" object="CcApplicationsPanel" swapped="yes" />
<style>
<class name="pill" />
<class name="suggested-action" />
@ -223,7 +223,7 @@
<property name="subtitle" translatable="yes">System access that is required by the app</property>
<property name="has-expander">True</property>
<property name="is-link">True</property>
<signal name="activated" handler="on_builtin_row_activated_cb" object="CcApplicationsPanel" swapped="no" />
<signal name="activated" handler="on_builtin_row_activated_cb" object="CcApplicationsPanel" swapped="yes" />
</object>
</child>
<child>
@ -231,7 +231,7 @@
<property name="title" translatable="yes">File &amp;amp; Link Associations</property>
<property name="has-expander">True</property>
<property name="is-link">True</property>
<signal name="activated" handler="on_handler_row_activated_cb" object="CcApplicationsPanel" swapped="no" />
<signal name="activated" handler="on_handler_row_activated_cb" object="CcApplicationsPanel" swapped="yes" />
</object>
</child>
<child>
@ -239,7 +239,7 @@
<property name="title" translatable="yes">Storage</property>
<property name="has-expander">1</property>
<property name="is-link">1</property>
<signal name="activated" handler="on_storage_row_activated_cb" object="CcApplicationsPanel" swapped="no" />
<signal name="activated" handler="on_storage_row_activated_cb" object="CcApplicationsPanel" swapped="yes" />
</object>
</child>
</object>