]> saetta.ns0.it Git - libgtkform/commitdiff
Added function GtkForm::get_widget_from_form_widget_name.
authorAndrea Zagli <azagli@libero.it>
Fri, 23 Jul 2010 10:14:48 +0000 (12:14 +0200)
committerAndrea Zagli <azagli@libero.it>
Fri, 23 Jul 2010 10:14:48 +0000 (12:14 +0200)
docs/reference/libgtkform-decl-list.txt
docs/reference/libgtkform-decl.txt
docs/reference/libgtkform-undocumented.txt
docs/reference/libgtkform-unused.txt
src/form.c
src/form.h

index ee81339e5ba2366f55c10b691585d2ef4175240c..ac8676bc874169ea1537e55e192ba4ad715706fb 100644 (file)
@@ -272,6 +272,7 @@ gtk_form_remove_field
 gtk_form_add_fields
 gtk_form_get_form_field_from_name
 gtk_form_get_form_widget_from_name
+gtk_form_get_widget_from_form_widget_name
 gtk_form_get_form_field_from_widget
 gtk_form_get_form_widget_from_widget
 gtk_form_get_widgets
index ef09188f4a664f83c8d662a21665746db58f8845..a3438a0a65b6e0985088817efdbfc26eccd511a6 100644 (file)
@@ -1144,6 +1144,11 @@ GtkForm *form, const gchar *field_name
 GtkForm *form, const gchar *widget_name 
 </FUNCTION>
 <FUNCTION>
+<NAME>gtk_form_get_widget_from_form_widget_name</NAME>
+<RETURNS>GtkWidget *</RETURNS>
+GtkForm *form, const gchar *widget_name 
+</FUNCTION>
+<FUNCTION>
 <NAME>gtk_form_get_form_field_from_widget</NAME>
 <RETURNS>GtkFormField *</RETURNS>
 GtkForm *form, GtkWidget *widget 
index dfd7e1e7c6e4d7ea9c0bbd0b8f1301fa108e9c4b..61c36d7875960605d9b62a0636c16f18f796a898 100644 (file)
@@ -1,7 +1,7 @@
 8% symbol docs coverage.
 25 symbols documented.
 2 symbols incomplete.
-303 not documented.
+304 not documented.
 
 
 GTK_FORM
@@ -208,6 +208,7 @@ gtk_form_get_sql
 gtk_form_get_table
 gtk_form_get_type
 gtk_form_get_values_as_hashtable
+gtk_form_get_widget_from_form_widget_name
 gtk_form_get_widget_from_name
 gtk_form_is_changed
 gtk_form_key_add_field
index c2d496cc75f0d404dc9d57d401f79e904a7d6e9f..65b2d4ed52c3b69f3c3d303750a02ed401ec8b08 100644 (file)
@@ -44,6 +44,7 @@ gtk_form_get_key
 gtk_form_get_objects_by_name
 gtk_form_get_table
 gtk_form_get_values_as_hashtable
+gtk_form_get_widget_from_form_widget_name
 gtk_form_get_widgets
 gtk_form_is_changed
 gtk_form_load_from_file
index 91886f4debe66442468f144a5227c35e4a098e59..855d799dcad1aa407176948381703dfae7bf58ae 100644 (file)
@@ -827,6 +827,31 @@ GtkFormWidget
        return widget_ret;
 }
 
+/**
+ * gtk_form_get_widget_from_form_widget_name:
+ * @form: a #GtkForm object.
+ * @widget_name: the #GtkFormWidget's name to return.
+ *
+ * Returns: a #GtkWidget.
+ */
+GtkWidget
+*gtk_form_get_widget_from_form_widget_name (GtkForm *form, const gchar *widget_name)
+{
+       GtkFormWidget *widget = NULL;
+       GtkWidget *widget_ret = NULL;
+
+       g_return_val_if_fail (IS_GTK_FORM (form), NULL);
+       g_return_val_if_fail (widget_name != NULL, NULL);
+
+       widget = gtk_form_get_form_widget_from_name (form, widget_name);
+       if (widget != NULL)
+               {
+                       widget_ret = gtk_form_widget_get_widget (widget);
+               }
+
+       return widget_ret;
+}
+
 /**
  * gtk_form_get_form_field_from_widget:
  * @form: a #GtkForm object.
index e84f98370ae8a0163ffeb5fccb3b0e9ef4f6fa38..24060e7e2b77868414884fef0d02c231f76a3766 100644 (file)
@@ -76,6 +76,7 @@ gboolean gtk_form_add_fields (GtkForm *form, ...);
 
 GtkFormField *gtk_form_get_form_field_from_name (GtkForm *form, const gchar *field_name);
 GtkFormWidget *gtk_form_get_form_widget_from_name (GtkForm *form, const gchar *widget_name);
+GtkWidget *gtk_form_get_widget_from_form_widget_name (GtkForm *form, const gchar *widget_name);
 
 GtkFormField *gtk_form_get_form_field_from_widget (GtkForm *form, GtkWidget *widget);
 GtkFormWidget *gtk_form_get_form_widget_from_widget (GtkForm *form, GtkWidget *widget);