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

gEDA-cvs: gaf.git: branch: master updated (1.7.0-20110116-93-gb410e0b)



The branch, master has been updated
       via  b410e0b5965e4d0fd95b032676e3f3b658ee2792 (commit)
      from  053960f4f5c2c05ca0676fd74b6c5feea3b1b5d6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 gschem/src/x_multiattrib.c |   51 +++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 50 insertions(+), 1 deletions(-)


=================
 Commit Messages
=================

commit b410e0b5965e4d0fd95b032676e3f3b658ee2792
Author: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>
Commit: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>

    gschem: add property "editing-canceled" in CellTextView
    
    Since GTK 2.20 the GtkCellEditable interface requires boolean property
    "editing-canceled". This patch silences warnings from GTK.

:100644 100644 a52b2a5... 4ca7125... M	gschem/src/x_multiattrib.c

=========
 Changes
=========

commit b410e0b5965e4d0fd95b032676e3f3b658ee2792
Author: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>
Commit: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>

    gschem: add property "editing-canceled" in CellTextView
    
    Since GTK 2.20 the GtkCellEditable interface requires boolean property
    "editing-canceled". This patch silences warnings from GTK.

diff --git a/gschem/src/x_multiattrib.c b/gschem/src/x_multiattrib.c
index a52b2a5..4ca7125 100644
--- a/gschem/src/x_multiattrib.c
+++ b/gschem/src/x_multiattrib.c
@@ -287,6 +287,43 @@ static void celltextview_class_init (CellTextViewClass *klass);
 static void celltextview_init       (CellTextView *self);
 static void celltextview_cell_editable_init (GtkCellEditableIface *iface);
 
+enum {
+    PROP_EDIT_CANCELED = 1
+};
+
+static void celltextview_set_property (GObject *object,
+                                       guint property_id,
+                                       const GValue *value,
+                                       GParamSpec *pspec)
+{
+  CellTextView *celltextview = (CellTextView*) object;
+
+  switch (property_id) {
+      case PROP_EDIT_CANCELED:
+        celltextview->editing_canceled = g_value_get_boolean (value);
+        break;
+      default:
+        G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+  }
+}
+
+static void celltextview_get_property (GObject *object,
+                                       guint property_id,
+                                       GValue *value,
+                                       GParamSpec *pspec)
+{
+  CellTextView *celltextview = (CellTextView*) object;
+
+  switch (property_id) {
+      case PROP_EDIT_CANCELED:
+        g_value_set_boolean (value, celltextview->editing_canceled);
+        break;
+      default:
+        G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+  }
+}
+
+
 /*! \todo Finish function documentation
  *  \brief
  *  \par Function Description
@@ -377,7 +414,19 @@ GType celltextview_get_type()
  */
 static void celltextview_class_init(CellTextViewClass *klass)
 {
-/*   GObjectClass *gobject_class = G_OBJECT_CLASS (klass); */
+  GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
+
+  gobject_class->get_property = celltextview_get_property;
+  gobject_class->set_property = celltextview_set_property;
+
+  g_object_class_install_property (
+    gobject_class,
+    PROP_EDIT_CANCELED,
+    g_param_spec_boolean ("editing-canceled",
+                          "",
+                          "",
+                          FALSE,
+                          G_PARAM_READWRITE));
 }
 
 /*! \todo Finish function documentation



_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs