Skip to content

Commit fde869b

Browse files
authored
Replace deprecated hide with visible (#968)
1 parent 82f1c41 commit fde869b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

demo/Views/WelcomeView.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public class WelcomeView : DemoPage {
116116
});
117117

118118
alert_action.clicked.connect (() => {
119-
alert_action.hide ();
119+
alert_action.visible = false;
120120
});
121121
}
122122
}

lib/Widgets/TimePicker.vala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public class Granite.TimePicker : Gtk.Entry {
246246
}
247247

248248
if (Granite.DateTime.is_clock_format_12h ()) {
249-
am_pm_box.show ();
249+
am_pm_box.visible = true;
250250

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

265265
hours_spinbutton.set_range (0, 23);

0 commit comments

Comments
 (0)