Commit 56f24560 authored by Sebastian Krzyszkowiak's avatar Sebastian Krzyszkowiak Committed by Guido Gunther

settings: Add a long-press shortcut to g-c-c display panel on "Docked" icon

parent 5c61f608
Pipeline #64137 passed with stages
in 35 minutes and 51 seconds
......@@ -172,6 +172,13 @@ docked_setting_clicked_cb (PhoshSettings *self)
phosh_docked_manager_set_enabled (manager, !enabled);
}
static void
docked_setting_long_pressed_cb (PhoshSettings *self)
{
phosh_quick_setting_open_settings_panel ("display");
g_signal_emit (self, signals[SETTING_DONE], 0);
}
static void
update_output_vol_bar (PhoshSettings *self)
......@@ -465,6 +472,7 @@ phosh_settings_class_init (PhoshSettingsClass *klass)
gtk_widget_class_bind_template_callback (widget_class, battery_setting_clicked_cb);
gtk_widget_class_bind_template_callback (widget_class, bt_setting_clicked_cb);
gtk_widget_class_bind_template_callback (widget_class, docked_setting_clicked_cb);
gtk_widget_class_bind_template_callback (widget_class, docked_setting_long_pressed_cb);
gtk_widget_class_bind_template_callback (widget_class, feedback_setting_clicked_cb);
gtk_widget_class_bind_template_callback (widget_class, feedback_setting_long_pressed_cb);
gtk_widget_class_bind_template_callback (widget_class, on_media_player_raised);
......
......@@ -140,6 +140,7 @@
<property name="sensitive" bind-source="dockedinfo" bind-property="present" bind-flags="sync-create"/>
<property name="can_focus">False</property>
<signal name="clicked" handler="docked_setting_clicked_cb" object="PhoshSettings" swapped="yes"/>
<signal name="long-pressed" handler="docked_setting_long_pressed_cb" object="PhoshSettings" swapped="yes"/>
<child>
<object class="PhoshDockedInfo" id="dockedinfo">
<property name="visible">True</property>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment