Skip to content

Commit

Permalink
Use titlebutton properties (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit authored Mar 21, 2024
1 parent 10fffb2 commit 6db8b31
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Plug.vala
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ public class MouseTouchpad.Plug : Switchboard.Plug {
stack.add_named (mouse_view, "mouse");
stack.add_named (touchpad_view, "touchpad");

var switcher = new Switchboard.SettingsSidebar (stack);
var switcher = new Switchboard.SettingsSidebar (stack) {
show_title_buttons = true
};

hpaned = new Gtk.Paned (Gtk.Orientation.HORIZONTAL) {
start_child = switcher,
Expand Down
2 changes: 2 additions & 0 deletions src/Views/Clicking.vala
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public class MouseTouchpad.ClickingView : Switchboard.SettingsPage {
}

construct {
show_end_title_buttons = true;

var primary_button_label = new Granite.HeaderLabel (_("Primary Button"));

var mouse_left = new Gtk.CheckButton () {
Expand Down
2 changes: 2 additions & 0 deletions src/Views/Gestures.vala
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public class MouseTouchpad.GesturesView : Switchboard.SettingsPage {
}

construct {
show_end_title_buttons = true;

var horizontal_swipe_header = new Granite.HeaderLabel (_("Swipe Horizontally"));

var three_swipe_horizontal_label = new Gtk.Label (_("Three fingers:")) {
Expand Down
2 changes: 2 additions & 0 deletions src/Views/Mouse.vala
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public class MouseTouchpad.MouseView : Switchboard.SettingsPage {
}

construct {
show_end_title_buttons = true;

var pointer_speed_adjustment = new Gtk.Adjustment (0, -1, 1, 0.1, 0, 0);

var pointer_speed_scale = new Gtk.Scale (HORIZONTAL, pointer_speed_adjustment) {
Expand Down
2 changes: 2 additions & 0 deletions src/Views/Pointing.vala
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public class MouseTouchpad.PointingView : Switchboard.SettingsPage {
}

construct {
show_end_title_buttons = true;

var keypad_pointer_switch = new Gtk.Switch () {
halign = END,
valign = CENTER
Expand Down
2 changes: 2 additions & 0 deletions src/Views/Touchpad.vala
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ public class MouseTouchpad.TouchpadView : Switchboard.SettingsPage {
}

construct {
show_end_title_buttons = true;

var pointer_speed_adjustment = new Gtk.Adjustment (0, -1, 1, 0.1, 0, 0);

var pointer_speed_scale = new Gtk.Scale (HORIZONTAL, pointer_speed_adjustment) {
Expand Down

0 comments on commit 6db8b31

Please sign in to comment.