[eog] Mark startup-flags property as GFlags which it actually is.
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Mark startup-flags property as GFlags which it actually is.
- Date: Sun, 18 Jul 2010 21:56:32 +0000 (UTC)
commit a3042084fab9da4ed2c5418716044368eda135ef
Author: Felix Riemann <friemann gnome org>
Date: Sun Jul 18 23:53:03 2010 +0200
Mark startup-flags property as GFlags which it actually is.
Instead of using some strange guchar magic.
src/eog-window.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index b93dc65..68dfedb 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -53,6 +53,8 @@
#include "eog-plugin-engine.h"
#include "eog-close-confirmation-dialog.h"
+#include "eog-enum-types.h"
+
#include "egg-toolbar-editor.h"
#include "egg-editable-toolbar.h"
#include "egg-toolbars-model.h"
@@ -4862,7 +4864,7 @@ eog_window_set_property (GObject *object,
g_value_get_boolean (value));
break;
case PROP_STARTUP_FLAGS:
- priv->flags = (gint8) g_value_get_uchar (value);
+ priv->flags = g_value_get_flags (value);
break;
default:
@@ -4892,7 +4894,7 @@ eog_window_get_property (GObject *object,
g_value_set_boolean (value, priv->gallery_resizable);
break;
case PROP_STARTUP_FLAGS:
- g_value_set_uchar (value, priv->flags);
+ g_value_set_flags (value, priv->flags);
break;
default:
@@ -4969,11 +4971,10 @@ eog_window_class_init (EogWindowClass *class)
*/
g_object_class_install_property (g_object_class,
PROP_STARTUP_FLAGS,
- g_param_spec_uchar ("startup-flags",
+ g_param_spec_flags ("startup-flags",
NULL,
NULL,
- 0,
- G_MAXUINT8,
+ EOG_TYPE_STARTUP_FLAGS,
0,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]