[glade] * gladeui/glade-editable.[ch]: Added glade_editable_loaded_widget().



commit ee44fe8eb9887dc339def52b2fba732a0caa5260
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Mon Mar 7 16:00:58 2011 +0900

    	* gladeui/glade-editable.[ch]: Added glade_editable_loaded_widget().

 ChangeLog                |    4 ++++
 gladeui/glade-editable.c |    5 +++++
 gladeui/glade-editable.h |   15 ++++++++-------
 3 files changed, 17 insertions(+), 7 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9ff32ff..eac2832 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-03-07  Tristan Van Berkom <tristanvb openismus com>
+
+	* gladeui/glade-editable.[ch]: Added glade_editable_loaded_widget().
+
 2011-03-06  Christopher Aillon <caillon redhat com>
 
 	* data/icons/hicolor/*/apps/glade-3.{png,svg,xcf}:
diff --git a/gladeui/glade-editable.c b/gladeui/glade-editable.c
index 24a6319..7bcaa17 100644
--- a/gladeui/glade-editable.c
+++ b/gladeui/glade-editable.c
@@ -169,6 +169,11 @@ glade_editable_set_show_name (GladeEditable * editable, gboolean show_name)
     iface->set_show_name (editable, show_name);
 }
 
+GladeWidget *
+glade_editable_loaded_widget (GladeEditable  *editable)
+{
+  return g_object_get_qdata (G_OBJECT (editable), glade_editable_widget_quark);
+}
 
 void
 glade_editable_block (GladeEditable *editable)
diff --git a/gladeui/glade-editable.h b/gladeui/glade-editable.h
index ab5bfcf..db80d44 100644
--- a/gladeui/glade-editable.h
+++ b/gladeui/glade-editable.h
@@ -37,15 +37,16 @@ struct _GladeEditableIface
 				   gboolean        show_name);
 };
 
-GType     glade_editable_get_type       (void) G_GNUC_CONST;
+GType        glade_editable_get_type       (void) G_GNUC_CONST;
 
-void      glade_editable_load           (GladeEditable *editable,
-					 GladeWidget   *widget);
-void      glade_editable_set_show_name  (GladeEditable  *editable,
-					 gboolean        show_name);
+void         glade_editable_load           (GladeEditable *editable,
+					    GladeWidget   *widget);
+void         glade_editable_set_show_name  (GladeEditable  *editable,
+					    gboolean        show_name);
+GladeWidget *glade_editable_loaded_widget  (GladeEditable  *editable);
 
-void      glade_editable_block          (GladeEditable *editable);
-void      glade_editable_unblock        (GladeEditable *editable);
+void         glade_editable_block          (GladeEditable *editable);
+void         glade_editable_unblock        (GladeEditable *editable);
 
 
 G_END_DECLS



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