[gnome-maps/wip/cdavis/post-port-cleanups: 27/29] general: Use present() instead of show_all()
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/cdavis/post-port-cleanups: 27/29] general: Use present() instead of show_all()
- Date: Sun, 21 Aug 2022 23:37:13 +0000 (UTC)
commit fa34277156e5a131d3d4e7f7759e202a8c3e6868
Author: Christopher Davis <christopherdavis gnome org>
Date: Sun Aug 21 16:31:04 2022 -0400
general: Use present() instead of show_all()
show_all() is gone in GTK4
src/exportViewDialog.js | 2 +-
src/mainWindow.js | 2 +-
src/mapView.js | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/exportViewDialog.js b/src/exportViewDialog.js
index 02143893..bd30c560 100644
--- a/src/exportViewDialog.js
+++ b/src/exportViewDialog.js
@@ -183,7 +183,7 @@ export class ExportViewDialog extends Gtk.Dialog {
});
dialog.connect('response', () => dialog.destroy());
- dialog.show_all();
+ dialog.present();
}
}
}
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 019c6d09..fb93a8b5 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -418,7 +418,7 @@ export class MainWindow extends Gtk.ApplicationWindow {
modal: true });
dialog.connect('response', () => dialog.destroy());
- dialog.show_all();
+ dialog.present();
break;
default:
diff --git a/src/mapView.js b/src/mapView.js
index e077a5dd..37fde131 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -533,7 +533,7 @@ export class MapView extends Gtk.Overlay {
}
dialog.destroy();
});
- dialog.show_all();
+ dialog.present();
} else {
this._loadShapeLayers(files);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]