Skip to content

Commit 89cc26f

Browse files
authored
Replace show_all with present (#875)
1 parent 029f968 commit 89cc26f

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/Application.vala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ namespace Maya {
120120
calmodel.load_all_sources ();
121121

122122
init_gui ();
123-
window.show_all ();
123+
window.present ();
124124

125125
if (add_event) {
126126
Idle.add (() => {
@@ -136,14 +136,14 @@ namespace Maya {
136136
calmodel.load_all_sources ();
137137

138138
init_gui ();
139-
window.show_all ();
139+
window.present ();
140140
} else {
141141
get_windows ().data.present (); // present window if app is already running
142142
}
143143

144144
var dialog = new Maya.View.ImportDialog (files);
145145
dialog.transient_for = window;
146-
dialog.show_all ();
146+
dialog.present ();
147147
}
148148

149149
/**

src/MainWindow.vala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public class Maya.MainWindow : Hdy.ApplicationWindow {
5555
hpaned.pack2 (sidebar, false, false);
5656

5757
child = hpaned;
58+
show_all ();
5859

5960
var header_group = new Hdy.HeaderGroup ();
6061
header_group.add_header_bar (calview.header_bar);

src/Widgets/SourcePopover.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public class Calendar.Widgets.SourcePopover : Gtk.Popover {
101101

102102
if (files != null) {
103103
var dialog = new Maya.View.ImportDialog (files);
104-
dialog.show_all ();
104+
dialog.present ();
105105
}
106106
});
107107

0 commit comments

Comments
 (0)