Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use titlebutton properties #232

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading