Skip to content
Open
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
2 changes: 1 addition & 1 deletion demo/Views/WelcomeView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public class WelcomeView : DemoPage {
});

alert_action.clicked.connect (() => {
alert_action.hide ();
alert_action.visible = false;
});
}
}
4 changes: 2 additions & 2 deletions lib/Widgets/TimePicker.vala
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public class Granite.TimePicker : Gtk.Entry {
}

if (Granite.DateTime.is_clock_format_12h ()) {
am_pm_box.show ();
am_pm_box.visible = true;

if (time.get_hour () > 12) {
hours_spinbutton.set_value (time.get_hour () - 12);
Expand All @@ -259,7 +259,7 @@ public class Granite.TimePicker : Gtk.Entry {
// Make sure that bounds are set correctly
hours_spinbutton.set_range (1, 12);
} else {
am_pm_box.hide ();
am_pm_box.visible = false;
hours_spinbutton.set_value (time.get_hour ());

hours_spinbutton.set_range (0, 23);
Expand Down