[libgda/LIBGDA_5.0] Minor corrections



commit 94fd56472dcb94c495743d4144b61b8ec97e3786
Author: Vivien Malerba <malerba gnome-db org>
Date:   Sat Mar 17 19:10:57 2012 +0100

    Minor corrections

 libgda-ui/gdaui-basic-form.c      |   11 ++++++-----
 testing/gdaui-test-data-entries.c |    6 +++---
 2 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/libgda-ui/gdaui-basic-form.c b/libgda-ui/gdaui-basic-form.c
index c7b1668..1f08f38 100644
--- a/libgda-ui/gdaui-basic-form.c
+++ b/libgda-ui/gdaui-basic-form.c
@@ -162,7 +162,6 @@ struct _GdauiBasicFormPriv
 
 	GtkWidget  *top_container;
 
-	gboolean    headers_sensitive;
 	gboolean    show_actions;
 	gboolean    entries_auto_default;
 
@@ -297,9 +296,14 @@ gdaui_basic_form_class_init (GdauiBasicFormClass *klass)
 					 g_param_spec_pointer ("paramlist",
 							       _("List of parameters to show in the form"), NULL,
                                                                G_PARAM_READABLE | G_PARAM_WRITABLE));
+	/**
+	 * GdauiBasicForm:headers-sensitive:
+	 *
+	 * Deprecated
+	 */
 	g_object_class_install_property (object_class, PROP_HEADERS_SENSITIVE,
 					 g_param_spec_boolean ("headers-sensitive",
-							       _("Entry headers are sensitive"),
+							       "",
 							       NULL, FALSE,
 							       G_PARAM_READABLE | G_PARAM_WRITABLE));
 	g_object_class_install_property (object_class, PROP_SHOW_ACTIONS,
@@ -404,7 +408,6 @@ gdaui_basic_form_init (GdauiBasicForm *wid)
 	wid->priv->place_holders = NULL;
 	wid->priv->top_container = NULL;
 
-	wid->priv->headers_sensitive = FALSE;
 	wid->priv->show_actions = FALSE;
 	wid->priv->entries_auto_default = FALSE;
 
@@ -690,7 +693,6 @@ gdaui_basic_form_set_property (GObject *object,
 			}
 			break;
 		case PROP_HEADERS_SENSITIVE:
-			form->priv->headers_sensitive = g_value_get_boolean (value);
 			break;
 		case PROP_SHOW_ACTIONS:
 			gdaui_basic_form_show_entry_actions (form, g_value_get_boolean (value));
@@ -720,7 +722,6 @@ gdaui_basic_form_get_property (GObject *object,
 			g_value_set_pointer (value, form->priv->set);
 			break;
 		case PROP_HEADERS_SENSITIVE:
-			g_value_set_boolean (value, form->priv->headers_sensitive);
 			break;
 		case PROP_SHOW_ACTIONS:
 			g_value_set_boolean (value, form->priv->show_actions);
diff --git a/testing/gdaui-test-data-entries.c b/testing/gdaui-test-data-entries.c
index 1136f72..10989c5 100644
--- a/testing/gdaui-test-data-entries.c
+++ b/testing/gdaui-test-data-entries.c
@@ -298,21 +298,21 @@ build_menu (GtkWidget *mainwin, GtkWidget *top_nb)
 	mitem = gtk_separator_menu_item_new ();
 	gtk_container_add (GTK_CONTAINER (menuitem2_menu), mitem);
 
-	mitem = gtk_menu_item_new_with_mnemonic ("Plugins individual data entry widgets");
+	mitem = gtk_menu_item_new_with_mnemonic ("Plugins: data entry widgets alone");
 	gtk_widget_show (mitem);
 	gtk_container_add (GTK_CONTAINER (menuitem2_menu), mitem);
 	g_object_set_data (G_OBJECT (mitem), "test_type", GINT_TO_POINTER (TESTED_BASIC));
 	g_signal_connect (mitem, "activate",
 			  G_CALLBACK (on_plugins_activate), top_nb);
 
-	mitem = gtk_menu_item_new_with_mnemonic ("Plugins data entry widgets in a form");
+	mitem = gtk_menu_item_new_with_mnemonic ("Plugins: data entry widgets in a form");
 	gtk_widget_show (mitem);
 	gtk_container_add (GTK_CONTAINER (menuitem2_menu), mitem);
 	g_object_set_data (G_OBJECT (mitem), "test_type", GINT_TO_POINTER (TESTED_FORM));
 	g_signal_connect (mitem, "activate",
 			  G_CALLBACK (on_plugins_activate), top_nb);
 
-	mitem = gtk_menu_item_new_with_mnemonic ("Plugins data cell renderers in a grid");
+	mitem = gtk_menu_item_new_with_mnemonic ("Plugins: data cell renderers");
 	gtk_widget_show (mitem);
 	gtk_container_add (GTK_CONTAINER (menuitem2_menu), mitem);
 	g_object_set_data (G_OBJECT (mitem), "test_type", GINT_TO_POINTER (TESTED_GRID));



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