[gnome-control-center] printers: Set longer timeout for installation of printer driver
- From: Marek Kašík <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] printers: Set longer timeout for installation of printer driver
- Date: Tue, 15 Mar 2011 11:04:51 +0000 (UTC)
commit c7179b6901c9a0f06ab017b1500b7d6ffe41b405
Author: Marek Kasik <mkasik redhat com>
Date: Tue Mar 15 12:03:58 2011 +0100
printers: Set longer timeout for installation of printer driver
Don't timeout when installing printer drivers.
panels/printers/pp-new-printer-dialog.c | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/panels/printers/pp-new-printer-dialog.c b/panels/printers/pp-new-printer-dialog.c
index dd99ee6..cede966 100644
--- a/panels/printers/pp-new-printer-dialog.c
+++ b/panels/printers/pp-new-printer-dialog.c
@@ -920,17 +920,19 @@ new_printer_add_button_cb (GtkButton *button,
device_ids[0] = pp->devices[device_id].device_id;
device_ids[1] = NULL;
- dbus_g_proxy_call (proxy, "InstallPrinterDrivers", &error,
-
+ dbus_g_proxy_call_with_timeout (proxy,
+ "InstallPrinterDrivers",
+ 3600000,
+ &error,
#ifdef GDK_WINDOWING_X11
- G_TYPE_UINT, GDK_WINDOW_XID (gtk_widget_get_window (GTK_WIDGET (pp->dialog))),
+ G_TYPE_UINT, GDK_WINDOW_XID (gtk_widget_get_window (GTK_WIDGET (pp->dialog))),
#else
- G_TYPE_UINT, 0,
+ G_TYPE_UINT, 0,
#endif
- G_TYPE_STRV, device_ids,
- G_TYPE_STRING, "hide-finished",
- G_TYPE_INVALID,
- G_TYPE_INVALID);
+ G_TYPE_STRV, device_ids,
+ G_TYPE_STRING, "hide-finished",
+ G_TYPE_INVALID,
+ G_TYPE_INVALID);
g_object_unref (proxy);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]