[network-manager-applet] applet: drop a X11-ism
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] applet: drop a X11-ism
- Date: Fri, 4 Oct 2019 07:59:32 +0000 (UTC)
commit 9abf5e806ac897d41556ae71063c2cad2fee14ea
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Fri Sep 20 16:01:42 2019 +0200
applet: drop a X11-ism
The time stamp from the X server is not better than GDK_CURRENT_TIME
anyway.
https://gitlab.gnome.org/GNOME/network-manager-applet/issues/64
https://gitlab.gnome.org/GNOME/network-manager-applet/merge_requests/64
src/applet-device-wifi.c | 5 +----
src/applet-dialogs.c | 6 ++----
2 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/src/applet-device-wifi.c b/src/applet-device-wifi.c
index a643707d..0f1043c0 100644
--- a/src/applet-device-wifi.c
+++ b/src/applet-device-wifi.c
@@ -178,12 +178,9 @@ out:
static void
show_ignore_focus_stealing_prevention (GtkWidget *widget)
{
- GdkWindow *window;
-
gtk_widget_realize (widget);
gtk_widget_show (widget);
- window = gtk_widget_get_window (widget);
- gtk_window_present_with_time (GTK_WINDOW (widget), gdk_x11_get_server_time (window));
+ gtk_window_present (GTK_WINDOW (widget));
}
gboolean
diff --git a/src/applet-dialogs.c b/src/applet-dialogs.c
index 488029c7..75597ae0 100644
--- a/src/applet-dialogs.c
+++ b/src/applet-dialogs.c
@@ -1096,8 +1096,7 @@ applet_info_dialog_show (NMApplet *applet)
g_signal_connect_swapped (dialog, "response", G_CALLBACK (gtk_widget_hide), dialog);
gtk_widget_realize (dialog);
gtk_window_set_position (GTK_WINDOW(dialog), GTK_WIN_POS_CENTER_ALWAYS);
- gtk_window_present_with_time (GTK_WINDOW (dialog),
- gdk_x11_get_server_time (gtk_widget_get_window (dialog)));
+ gtk_window_present (GTK_WINDOW (dialog));
}
void
@@ -1152,8 +1151,7 @@ applet_missing_ui_warning_dialog_show (void)
gtk_window_set_title (GTK_WINDOW (dialog), _("Missing resources"));
gtk_widget_realize (dialog);
gtk_widget_show (dialog);
- gtk_window_present_with_time (GTK_WINDOW (dialog),
- gdk_x11_get_server_time (gtk_widget_get_window (dialog)));
+ gtk_window_present (GTK_WINDOW (dialog));
g_signal_connect_swapped (dialog, "response",
G_CALLBACK (gtk_widget_destroy),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]