[nautilus/gtk4-preparation-trunk: 100/120] general: Stop using GtkWindow API which is gone in GTK4
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gtk4-preparation-trunk: 100/120] general: Stop using GtkWindow API which is gone in GTK4
- Date: Wed, 29 Dec 2021 13:39:27 +0000 (UTC)
commit 0bec8f7b4ad4975fab34111a0ae352358dc1a054
Author: António Fernandes <antoniof gnome org>
Date: Wed Dec 15 20:56:16 2021 +0000
general: Stop using GtkWindow API which is gone in GTK4
They didn't work under wayland anyway.
src/nautilus-autorun-software.c | 9 ---------
src/nautilus-file-operations.c | 7 -------
src/nautilus-window.c | 2 --
3 files changed, 18 deletions(-)
---
diff --git a/src/nautilus-autorun-software.c b/src/nautilus-autorun-software.c
index edf0a35fb..0496be5b5 100644
--- a/src/nautilus-autorun-software.c
+++ b/src/nautilus-autorun-software.c
@@ -156,10 +156,6 @@ out:
GTK_BUTTONS_OK,
_("Oops! There was a problem running this software."));
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s", error_string);
- /* This is required because we don't show dialogs in the
- * window picker and if the window pops under another window
- * there is no way to get it back. */
- gtk_window_set_keep_above (GTK_WINDOW (dialog), TRUE);
g_signal_connect (dialog,
"response",
@@ -203,11 +199,6 @@ present_autorun_for_software_dialog (GMount *mount)
"%s",
_("If you don’t trust this location or aren’t sure, press
Cancel."));
- /* This is required because we don't show dialogs in the
- * window picker and if the window pops under another window
- * there is no way to get it back. */
- gtk_window_set_keep_above (GTK_WINDOW (dialog), TRUE);
-
/* TODO: in a star trek future add support for verifying
* software on media (e.g. if it has a certificate, check it
* etc.)
diff --git a/src/nautilus-file-operations.c b/src/nautilus-file-operations.c
index 92ccd69f9..25373e47b 100644
--- a/src/nautilus-file-operations.c
+++ b/src/nautilus-file-operations.c
@@ -1418,13 +1418,6 @@ do_run_simple_dialog (gpointer _data)
timestamp = nautilus_file_operations_dbus_data_get_timestamp (data->dbus_data);
- /* Assuming this is used for desktop implementations, we want the
- * dialog to be centered on the screen rather than the parent window,
- * which could extend to all monitors. This is the case for
- * gnome-flashback.
- */
- gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER);
-
if (nautilus_file_operations_dbus_data_get_parent_handle (data->dbus_data) != NULL)
{
g_signal_connect (dialog, "realize", G_CALLBACK (dialog_realize_cb), data->dbus_data);
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 4cbf73db6..46a7a7867 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -1939,8 +1939,6 @@ notebook_create_window_cb (GtkNotebook *notebook,
g_object_set_data (G_OBJECT (slot), "dnd-window-slot",
GINT_TO_POINTER (TRUE));
- gtk_window_set_position (GTK_WINDOW (new_window), GTK_WIN_POS_MOUSE);
-
return GTK_NOTEBOOK (new_window->notebook);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]