[gnome-control-center] printers: Use correct type for window id
- From: Marek Kašík <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] printers: Use correct type for window id
- Date: Fri, 14 Nov 2014 13:32:41 +0000 (UTC)
commit 2d2f20fe53f1a84afefb21ab53ee5ad8811d8d95
Author: Marek Kasik <mkasik redhat com>
Date: Fri Nov 14 14:13:56 2014 +0100
printers: Use correct type for window id
Window id should be unsigned int and not int. Also the default
value should be 0 instead of the 631 (a copy paste error).
https://bugzilla.gnome.org/show_bug.cgi?id=740115
panels/printers/pp-new-printer.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/panels/printers/pp-new-printer.c b/panels/printers/pp-new-printer.c
index e001866..c21f934 100644
--- a/panels/printers/pp-new-printer.c
+++ b/panels/printers/pp-new-printer.c
@@ -161,7 +161,7 @@ pp_new_printer_get_property (GObject *object,
g_value_set_boolean (value, self->priv->is_network_device);
break;
case PROP_WINDOW_ID:
- g_value_set_int (value, self->priv->window_id);
+ g_value_set_uint (value, self->priv->window_id);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object,
@@ -228,7 +228,7 @@ pp_new_printer_set_property (GObject *object,
self->priv->is_network_device = g_value_get_boolean (value);
break;
case PROP_WINDOW_ID:
- self->priv->window_id = g_value_get_int (value);
+ self->priv->window_id = g_value_get_uint (value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object,
@@ -335,11 +335,11 @@ pp_new_printer_class_init (PpNewPrinterClass *klass)
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_WINDOW_ID,
- g_param_spec_int ("window-id",
- "WindowID",
- "Window ID of parent window",
- 0, G_MAXINT32, 631,
- G_PARAM_READWRITE));
+ g_param_spec_uint ("window-id",
+ "WindowID",
+ "Window ID of parent window",
+ 0, G_MAXUINT, 0,
+ G_PARAM_READWRITE));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]