[nautilus-actions] Remove BaseWindow unused properties
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Remove BaseWindow unused properties
- Date: Mon, 24 Jan 2011 19:39:40 +0000 (UTC)
commit f6a704753f4fcec1f9bc2f57924da9e5c3790a2f
Author: Pierre Wieser <pwieser trychlos org>
Date: Fri Jan 21 23:17:28 2011 +0100
Remove BaseWindow unused properties
+ base-window-toplevel-widget
+ base-window-is-initialized
+ base-window-save-window-position
ChangeLog | 3 ++
src/nact/base-window.c | 50 ------------------------------------------------
src/nact/base-window.h | 5 ----
3 files changed, 3 insertions(+), 55 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 41c4eec..8c673b8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2011-01-21 Pierre Wieser <pwieser trychlos org>
+ * src/nact/base-window.c:
+ * src/nact/base-window.h: Remove unused properties.
+
* src/nact/base-window-class.h: Removed file.
* src/nact/base-window.h:
diff --git a/src/nact/base-window.c b/src/nact/base-window.c
index 38f2ad6..3b8d8a0 100644
--- a/src/nact/base-window.c
+++ b/src/nact/base-window.c
@@ -89,10 +89,6 @@ enum {
BASE_PROP_HAS_OWN_BUILDER_ID,
BASE_PROP_TOPLEVEL_NAME_ID,
- BASE_WINDOW_PROP_TOPLEVEL_WIDGET_ID,
- BASE_WINDOW_PROP_INITIALIZED_ID,
- BASE_WINDOW_PROP_SAVE_WINDOW_POSITION_ID,
-
BASE_PROP_N_PROPERTIES
};
@@ -200,7 +196,6 @@ class_init( BaseWindowClass *klass )
{
static const gchar *thisfn = "base_window_class_init";
GObjectClass *object_class;
- GParamSpec *spec;
g_debug( "%s: klass=%p", thisfn, ( void * ) klass );
@@ -250,27 +245,6 @@ class_init( BaseWindowClass *klass )
"",
G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE ));
- spec = g_param_spec_boolean(
- BASE_WINDOW_PROP_SAVE_WINDOW_POSITION,
- "Save window size and position on dispose",
- "Whether the size and position of the window must be saved as a GConf preference", FALSE,
- G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE );
- g_object_class_install_property( object_class, BASE_WINDOW_PROP_SAVE_WINDOW_POSITION_ID, spec );
-
- spec = g_param_spec_pointer(
- BASE_WINDOW_PROP_TOPLEVEL_WIDGET,
- "Main GtkWindow pointer",
- "A pointer to the main GtkWindow toplevel managed by this BaseWindow instance",
- G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE );
- g_object_class_install_property( object_class, BASE_WINDOW_PROP_TOPLEVEL_WIDGET_ID, spec );
-
- spec = g_param_spec_boolean(
- BASE_WINDOW_PROP_INITIALIZED,
- "Has base_window_init be run",
- "Has base_window_init be run", FALSE,
- G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE );
- g_object_class_install_property( object_class, BASE_WINDOW_PROP_INITIALIZED_ID, spec );
-
klass->private = g_new0( BaseWindowClassPrivate, 1 );
klass->initial_load_toplevel = window_do_initial_load_toplevel;
@@ -420,18 +394,6 @@ instance_get_property( GObject *object, guint property_id, GValue *value, GParam
g_value_set_string( value, self->private->toplevel_name );
break;
- case BASE_WINDOW_PROP_TOPLEVEL_WIDGET_ID:
- g_value_set_pointer( value, self->private->gtk_toplevel );
- break;
-
- case BASE_WINDOW_PROP_INITIALIZED_ID:
- g_value_set_boolean( value, self->private->initialized );
- break;
-
- case BASE_WINDOW_PROP_SAVE_WINDOW_POSITION_ID:
- g_value_set_boolean( value, self->private->save_window_position );
- break;
-
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID( object, property_id, spec );
break;
@@ -472,18 +434,6 @@ instance_set_property( GObject *object, guint property_id, const GValue *value,
self->private->toplevel_name = g_value_dup_string( value );
break;
- case BASE_WINDOW_PROP_TOPLEVEL_WIDGET_ID:
- self->private->gtk_toplevel = g_value_get_pointer( value );
- break;
-
- case BASE_WINDOW_PROP_INITIALIZED_ID:
- self->private->initialized = g_value_get_boolean( value );
- break;
-
- case BASE_WINDOW_PROP_SAVE_WINDOW_POSITION_ID:
- self->private->save_window_position = g_value_get_boolean( value );
- break;
-
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID( object, property_id, spec );
break;
diff --git a/src/nact/base-window.h b/src/nact/base-window.h
index a31a2fc..df9318e 100644
--- a/src/nact/base-window.h
+++ b/src/nact/base-window.h
@@ -209,11 +209,6 @@ typedef struct {
#define BASE_PROP_HAS_OWN_BUILDER "base-window-has-own-builder"
#define BASE_PROP_TOPLEVEL_NAME "base-window-toplevel-name"
-#define BASE_WINDOW_PROP_TOPLEVEL_WIDGET "base-window-toplevel-widget"
-#define BASE_WINDOW_PROP_INITIALIZED "base-window-is-initialized"
-#define BASE_WINDOW_PROP_SAVE_WINDOW_POSITION "base-window-save-window-position"
-#define BASE_WINDOW_PROP_XML_UI_FILENAME "base-window-xml-ui-filename"
-
/* signals defined in this class
*
* All signals of this class have the same behavior:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]