[gnome-control-center] printers: Make driver installation dialog modal
- From: Marek Kašík <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] printers: Make driver installation dialog modal
- Date: Fri, 14 Nov 2014 13:32:36 +0000 (UTC)
commit 873c22e9d410d86dccce147938d4a85920337515
Author: Marek Kasik <mkasik redhat com>
Date: Fri Nov 14 14:07:15 2014 +0100
printers: Make driver installation dialog modal
Pass XID of correct window to InstallPrinterDrivers and
InstallPackageNames methods.
https://bugzilla.gnome.org/show_bug.cgi?id=740115
panels/printers/pp-new-printer-dialog.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/printers/pp-new-printer-dialog.c b/panels/printers/pp-new-printer-dialog.c
index 01731a8..a9fe41d 100644
--- a/panels/printers/pp-new-printer-dialog.c
+++ b/panels/printers/pp-new-printer-dialog.c
@@ -2040,7 +2040,7 @@ ppd_selection_cb (GtkDialog *_dialog,
priv->new_device->device_make_and_model,
priv->new_device->network_device);
- window_id = GDK_WINDOW_XID (gtk_widget_get_window (GTK_WIDGET (priv->dialog)));
+ window_id = (guint) GDK_WINDOW_XID (gtk_widget_get_window (GTK_WIDGET (gtk_window_get_transient_for
(GTK_WINDOW (priv->dialog)))));
new_printer = pp_new_printer_new ();
g_object_set (new_printer,
@@ -2140,7 +2140,7 @@ new_printer_dialog_response_cb (GtkDialog *_dialog,
device->device_make_and_model,
device->network_device);
- window_id = GDK_WINDOW_XID (gtk_widget_get_window (GTK_WIDGET (_dialog)));
+ window_id = (guint) GDK_WINDOW_XID (gtk_widget_get_window (GTK_WIDGET
(gtk_window_get_transient_for (GTK_WINDOW (_dialog)))));
new_printer = pp_new_printer_new ();
g_object_set (new_printer,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]