[glade/multiple-toplevels] * plugins/gtk+/glade-attributes.c: Relicensing to LGPL.



commit 305790892a4d4cc17a6ed44493a3db12a9f19a65
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Mon Jan 24 20:18:15 2011 +0900

    	* plugins/gtk+/glade-attributes.c: Relicensing to LGPL.

 ChangeLog                       |    2 +
 plugins/gtk+/glade-attributes.c |  101 +++++++++++++++++++--------------------
 plugins/gtk+/glade-attributes.h |    8 ++--
 3 files changed, 56 insertions(+), 55 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1201d91..0dbf38b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -28,6 +28,8 @@
 
 	* 41 files: Fixed typo in LGPL License file headers.
 
+	* plugins/gtk+/glade-attributes.c: Relicensing to LGPL.
+
 2011-01-22  Tristan Van Berkom <tristanvb openismus com>
 
 	* gladeui/glade-command.[ch]: Removed glade_command_set_naming_policy().
diff --git a/plugins/gtk+/glade-attributes.c b/plugins/gtk+/glade-attributes.c
index 34eab5f..8444a0b 100644
--- a/plugins/gtk+/glade-attributes.c
+++ b/plugins/gtk+/glade-attributes.c
@@ -6,20 +6,19 @@
  * Author(s):
  *      Tristan Van Berkom <tvb gnome org>
  *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
  *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
- * USA.
+ * You should have received a copy of the GNU Lesser General Public 
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 #include <config.h>
@@ -103,45 +102,45 @@ GLADE_MAKE_EPROP (GladeEPropAttrs, glade_eprop_attrs)
 #define GLADE_IS_EPROP_ATTRS(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GLADE_TYPE_EPROP_ATTRS))
 #define GLADE_IS_EPROP_ATTRS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GLADE_TYPE_EPROP_ATTRS))
 #define GLADE_EPROP_ATTRS_GET_CLASS(o)    (G_TYPE_INSTANCE_GET_CLASS ((o), GLADE_EPROP_ATTRS, GladeEPropAttrsClass))
-     enum
-     {
-
-       /* Main Data */
-       COLUMN_NAME,             /* The title string for PangoAttrType */
-       COLUMN_NAME_WEIGHT,      /* For bold names */
-       COLUMN_TYPE,             /* The PangoAttrType */
-       COLUMN_EDIT_TYPE,        /* The AttrEditType (below) */
-       COLUMN_VALUE,            /* The value */
-       COLUMN_START,            /* attribute start value */
-       COLUMN_END,              /* attribute end value */
-
-       /* Editor renderer related */
-       COLUMN_TOGGLE_ACTIVE,    /* whether the toggle renderer is being used */
-       COLUMN_TOGGLE_DOWN,      /* whether the toggle should be displayed in "downstate" */
-
-       COLUMN_BUTTON_ACTIVE,    /* whether the GladeCellRendererButton is to be used (to launch dialogs) */
-       COLUMN_TEXT,             /* text attribute value for all text derived renderers */
-       COLUMN_TEXT_STYLE,       /* whether to make italic */
-       COLUMN_TEXT_FG,          /* forground colour of the text */
-
-       COLUMN_COMBO_ACTIVE,     /* whether the combobox renderer is being used */
-       COLUMN_COMBO_MODEL,      /* the model for the dropdown list */
-
-       COLUMN_SPIN_ACTIVE,      /* whether the spin renderer is being used */
-       COLUMN_SPIN_DIGITS,      /* How many decimal points to show (used to edit float values) */
-
-       NUM_COLUMNS
-     };
-
-
-     typedef enum
-     {
-       EDIT_TOGGLE = 0,
-       EDIT_COMBO,
-       EDIT_SPIN,
-       EDIT_COLOR,
-       EDIT_INVALID
-     } AttrEditType;
+enum
+{
+
+  /* Main Data */
+  COLUMN_NAME,             /* The title string for PangoAttrType */
+  COLUMN_NAME_WEIGHT,      /* For bold names */
+  COLUMN_TYPE,             /* The PangoAttrType */
+  COLUMN_EDIT_TYPE,        /* The AttrEditType (below) */
+  COLUMN_VALUE,            /* The value */
+  COLUMN_START,            /* attribute start value */
+  COLUMN_END,              /* attribute end value */
+
+  /* Editor renderer related */
+  COLUMN_TOGGLE_ACTIVE,    /* whether the toggle renderer is being used */
+  COLUMN_TOGGLE_DOWN,      /* whether the toggle should be displayed in "downstate" */
+
+  COLUMN_BUTTON_ACTIVE,    /* whether the GladeCellRendererButton is to be used (to launch dialogs) */
+  COLUMN_TEXT,             /* text attribute value for all text derived renderers */
+  COLUMN_TEXT_STYLE,       /* whether to make italic */
+  COLUMN_TEXT_FG,          /* forground colour of the text */
+  
+  COLUMN_COMBO_ACTIVE,     /* whether the combobox renderer is being used */
+  COLUMN_COMBO_MODEL,      /* the model for the dropdown list */
+  
+  COLUMN_SPIN_ACTIVE,      /* whether the spin renderer is being used */
+  COLUMN_SPIN_DIGITS,      /* How many decimal points to show (used to edit float values) */
+
+  NUM_COLUMNS
+};
+
+
+typedef enum
+{
+  EDIT_TOGGLE = 0,
+  EDIT_COMBO,
+  EDIT_SPIN,
+  EDIT_COLOR,
+  EDIT_INVALID
+} AttrEditType;
 
 #define ACTIVATE_COLUMN_FROM_TYPE(type)                 \
 	((type) == EDIT_TOGGLE ? COLUMN_TOGGLE_ACTIVE : \
diff --git a/plugins/gtk+/glade-attributes.h b/plugins/gtk+/glade-attributes.h
index 93aae06..c48ce1c 100644
--- a/plugins/gtk+/glade-attributes.h
+++ b/plugins/gtk+/glade-attributes.h
@@ -14,12 +14,12 @@ G_BEGIN_DECLS
 typedef struct _GladeAttribute             GladeAttribute;
 
 struct _GladeAttribute {
-	PangoAttrType   type;   /* The type of pango attribute */
+  PangoAttrType   type;   /* The type of pango attribute */
 
-	GValue          value;  /* The coresponding value */
+  GValue          value;  /* The coresponding value */
 
-	guint           start;  /* The text offsets where the attributes should apply to */
-	guint           end;
+  guint           start;  /* The text offsets where the attributes should apply to */
+  guint           end;
 };
 
 



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