[glade3] * gladeui/Makefile.am, gladeui/glade-editor.c, gladeui/glade-property-class.[ch], gladeui/glade-pr



commit ca601f5b6d0dc2f6af71d1d99af984ab4d99669c
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Sun Jan 2 00:57:18 2011 +0900

    	* gladeui/Makefile.am, gladeui/glade-editor.c, gladeui/glade-property-class.[ch],
    	gladeui/glade-property.c, gladeui/glade-xml-utils.h, po/POTFILES.in:
    	Completely removed GladeParameter, a legacy unused mechanism to store parameters in
    	the glade catalog for later retrieval from the plugin.

 ChangeLog                      |    5 +
 gladeui/Makefile.am            |    2 -
 gladeui/glade-editor.c         |    1 -
 gladeui/glade-parameter.c      |  311 ----------------------------------------
 gladeui/glade-parameter.h      |   53 -------
 gladeui/glade-property-class.c |   21 ---
 gladeui/glade-property-class.h |    8 -
 gladeui/glade-property.c       |    1 -
 gladeui/glade-xml-utils.h      |    2 -
 po/POTFILES.in                 |    1 -
 10 files changed, 5 insertions(+), 400 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 035c6e6..4059616 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,6 +19,11 @@
 	* gladeui/glade-project.[ch], gladeui/glade-widget.c, gladeui/glade-command.c:
 	  Removing legacy 'old_project' argument from glade_project_add_object().
 
+	* gladeui/Makefile.am, gladeui/glade-editor.c, gladeui/glade-property-class.[ch],
+	gladeui/glade-property.c, gladeui/glade-xml-utils.h, po/POTFILES.in:
+	Completely removed GladeParameter, a legacy unused mechanism to store parameters in
+	the glade catalog for later retrieval from the plugin.
+
 2010-12-31  Tristan Van Berkom <tristanvb openismus com>
 
 	* gladeui/glade-project.c: Further fixing project dispose cycle, still leaking a little
diff --git a/gladeui/Makefile.am b/gladeui/Makefile.am
index f0f920a..48b8a31 100644
--- a/gladeui/Makefile.am
+++ b/gladeui/Makefile.am
@@ -51,7 +51,6 @@ libgladeui_2_la_SOURCES = \
 	glade-widget-adaptor.c \
 	glade-debug.c \
 	glade-project.c \
-	glade-parameter.c \
 	glade-placeholder.c \
 	glade-inspector.c \
 	glade-xml-utils.c \
@@ -114,7 +113,6 @@ libgladeuiinclude_HEADERS = \
 	glade-debug.h \
 	glade-project.h \
 	glade-inspector.h \
-	glade-parameter.h \
 	glade-placeholder.h \
 	glade-editor.h \
 	glade-editor-property.h \
diff --git a/gladeui/glade-editor.c b/gladeui/glade-editor.c
index 880ebde..60a2b02 100644
--- a/gladeui/glade-editor.c
+++ b/gladeui/glade-editor.c
@@ -43,7 +43,6 @@
 #include "glade-widget-adaptor.h"
 #include "glade-editor.h"
 #include "glade-signal-editor.h"
-#include "glade-parameter.h"
 #include "glade-property.h"
 #include "glade-property-class.h"
 #include "glade-command.h"
diff --git a/gladeui/glade-property-class.c b/gladeui/glade-property-class.c
index a3f951b..756c2c4 100644
--- a/gladeui/glade-property-class.c
+++ b/gladeui/glade-property-class.c
@@ -42,7 +42,6 @@
 
 #include "glade.h"
 #include "glade-widget.h"
-#include "glade-parameter.h"
 #include "glade-property.h"
 #include "glade-property-class.h"
 #include "glade-editor-property.h"
@@ -76,7 +75,6 @@ glade_property_class_new (gpointer handle)
   property_class->tooltip = NULL;
   property_class->def = NULL;
   property_class->orig_def = NULL;
-  property_class->parameters = NULL;
   property_class->query = FALSE;
   property_class->optional = FALSE;
   property_class->optional_default = FALSE;
@@ -144,17 +142,6 @@ glade_property_class_clone (GladePropertyClass * property_class)
       g_value_copy (property_class->orig_def, clone->orig_def);
     }
 
-  if (clone->parameters)
-    {
-      GList *parameter;
-
-      clone->parameters = g_list_copy (clone->parameters);
-
-      for (parameter = clone->parameters;
-           parameter != NULL; parameter = parameter->next)
-        parameter->data =
-            glade_parameter_clone ((GladeParameter *) parameter->data);
-    }
   return clone;
 }
 
@@ -187,9 +174,6 @@ glade_property_class_free (GladePropertyClass * property_class)
         g_value_unset (property_class->def);
       g_free (property_class->def);
     }
-  g_list_foreach (property_class->parameters, (GFunc) glade_parameter_free,
-                  NULL);
-  g_list_free (property_class->parameters);
   g_free (property_class);
 }
 
@@ -1572,11 +1556,6 @@ glade_property_class_update_from_node (GladeXmlNode * node,
   glade_xml_get_value_int (node, GLADE_TAG_VISIBLE_LINES,
                            &klass->visible_lines);
 
-  /* Get the Parameters */
-  if ((child = glade_xml_search_child (node, GLADE_TAG_PARAMETERS)) != NULL)
-    klass->parameters =
-        glade_parameter_list_new_from_node (klass->parameters, child);
-
   klass->construct_only =
       glade_xml_get_property_boolean (node, GLADE_TAG_CONSTRUCT_ONLY,
                                       klass->construct_only);
diff --git a/gladeui/glade-property-class.h b/gladeui/glade-property-class.h
index 01faf16..4029cbb 100644
--- a/gladeui/glade-property-class.h
+++ b/gladeui/glade-property-class.h
@@ -102,14 +102,6 @@ struct _GladePropertyClass
 			   * correctly); all property classes have and orig_def.
 			   */
 
-	GList *parameters; /* list of GladeParameter objects. This list
-			    * provides with an extra set of key-value
-			    * pairs to specify aspects of this property.
-			    *
-			    * This is unused by glade and only maintained
-			    * to be of possible use in plugin code.
-			    */
-
 	gint  visible_lines; /* When this pspec calls for a text editor, how many
 			      * lines should be visible in the editor.
 			      */
diff --git a/gladeui/glade-property.c b/gladeui/glade-property.c
index ecfa456..ceca641 100644
--- a/gladeui/glade-property.c
+++ b/gladeui/glade-property.c
@@ -48,7 +48,6 @@
 #include "glade-widget.h"
 #include "glade-property.h"
 #include "glade-property-class.h"
-#include "glade-parameter.h"
 #include "glade-project.h"
 #include "glade-widget-adaptor.h"
 #include "glade-debug.h"
diff --git a/gladeui/glade-xml-utils.h b/gladeui/glade-xml-utils.h
index 6823dfd..ef23d8c 100644
--- a/gladeui/glade-xml-utils.h
+++ b/gladeui/glade-xml-utils.h
@@ -127,8 +127,6 @@ typedef enum {
 #define GLADE_TAG_MIN_VALUE                       "min"
 #define GLADE_TAG_VALUE_TYPE                      "value-type"
 #define GLADE_TAG_TOOLTIP                         "tooltip"
-#define GLADE_TAG_PARAMETERS                      "parameters"
-#define GLADE_TAG_PARAMETER                       "parameter"
 #define GLADE_TAG_SET_FUNCTION                    "set-property-function"
 #define GLADE_TAG_GET_FUNCTION                    "get-property-function"
 #define GLADE_TAG_VERIFY_FUNCTION                 "verify-function"
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 6465e0f..15334ae 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -25,7 +25,6 @@ gladeui/glade-editor-table.c
 gladeui/glade-editor.c
 gladeui/glade-fixed.c
 gladeui/glade-palette.c
-gladeui/glade-parameter.c
 gladeui/glade-placeholder.c
 gladeui/glade-popup.c
 gladeui/glade-project.c



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]