]> saetta.ns0.it Git - libgtkform/commitdiff
Added function GtkForm::get_widget_from_form_field_name.
authorAndrea Zagli <azagli@libero.it>
Wed, 28 Jul 2010 07:24:28 +0000 (09:24 +0200)
committerAndrea Zagli <azagli@libero.it>
Wed, 28 Jul 2010 07:24:28 +0000 (09:24 +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 8f94da569509cb2b7b368baf7f9184bf8bef6332..c70119db12fd86c52d8b77ef39a89c4771552e4a 100644 (file)
@@ -296,6 +296,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_field_name
 gtk_form_get_widget_from_form_widget_name
 gtk_form_get_form_field_from_widget
 gtk_form_get_form_widget_from_widget
index 91ca611c33c603164e7fbf906f0884629484b416..772b30c75e89d6e54537a8475a7623ce43594f9a 100644 (file)
@@ -1249,6 +1249,11 @@ GtkForm *form, const gchar *field_name
 GtkForm *form, const gchar *widget_name 
 </FUNCTION>
 <FUNCTION>
+<NAME>gtk_form_get_widget_from_form_field_name</NAME>
+<RETURNS>GtkWidget *</RETURNS>
+GtkForm *form, const gchar *field_name 
+</FUNCTION>
+<FUNCTION>
 <NAME>gtk_form_get_widget_from_form_widget_name</NAME>
 <RETURNS>GtkWidget *</RETURNS>
 GtkForm *form, const gchar *widget_name 
index f3d9712f9b9b6f8a46a2ca613ab6989caac4a21f..a57870d3ff0a8e2868268c06025dd45e69e8f30a 100644 (file)
@@ -1,7 +1,7 @@
 8% symbol docs coverage.
 28 symbols documented.
 2 symbols incomplete.
-314 not documented.
+315 not documented.
 
 
 GTK_FORM
@@ -210,6 +210,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_field_name
 gtk_form_get_widget_from_form_widget_name
 gtk_form_get_widget_from_name
 gtk_form_group_add_field
index 54d74f89e38e3f2a462575ae37cc8499b06a9040..0497419c8f5f57c29ae70a507e798e4a42d910ab 100644 (file)
@@ -56,6 +56,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_field_name
 gtk_form_get_widget_from_form_widget_name
 gtk_form_get_widgets
 gtk_form_group_add_field
index d3541ce235c3f4973a52d18d863ffddfe80dec9f..4672e3fb755510942788296a329def8dd6cf00d5 100644 (file)
@@ -954,6 +954,36 @@ GtkFormWidget
        return widget_ret;
 }
 
+/**
+ * gtk_form_get_widget_from_form_field_name:
+ * @form: a #GtkForm object.
+ * @field_name: the #GtkFormField's name to return.
+ *
+ * Returns: a #GtkWidget.
+ */
+GtkWidget
+*gtk_form_get_widget_from_form_field_name (GtkForm *form, const gchar *field_name)
+{
+       GtkFormField *field = NULL;
+       GtkFormWidget *widget = NULL;
+       GtkWidget *widget_ret = NULL;
+
+       g_return_val_if_fail (IS_GTK_FORM (form), NULL);
+       g_return_val_if_fail (field_name != NULL, NULL);
+
+       field = gtk_form_get_form_field_from_name (form, field_name);
+       if (field != NULL)
+               {
+                       widget = gtk_form_field_get_form_widget (field);
+                       if (widget != NULL)
+                               {
+                                       widget_ret = gtk_form_widget_get_widget (widget);
+                               }
+               }
+
+       return widget_ret;
+}
+
 /**
  * gtk_form_get_widget_from_form_widget_name:
  * @form: a #GtkForm object.
index eedfe4886d0ea6b34bb3060cb0a4f4fdda0e5370..5c33ade71a4ceab5599cc484ba4ffe6bde250ff0 100644 (file)
@@ -77,6 +77,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_field_name (GtkForm *form, const gchar *field_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);