[libgda] UI corrections



commit d99dc7adeb870ead12bb99aa586c4446450a8d5d
Author: Vivien Malerba <malerba gnome-db org>
Date:   Wed Sep 8 21:26:32 2010 +0200

    UI corrections

 libgda-ui/data-entries/plugins/gdaui-entry-text.c |    4 ++--
 libgda-ui/gdaui-basic-form.c                      |    3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/libgda-ui/data-entries/plugins/gdaui-entry-text.c b/libgda-ui/data-entries/plugins/gdaui-entry-text.c
index 9c57c80..8812881 100644
--- a/libgda-ui/data-entries/plugins/gdaui-entry-text.c
+++ b/libgda-ui/data-entries/plugins/gdaui-entry-text.c
@@ -290,7 +290,7 @@ create_entry (GdauiEntryWrapper *mgwrap)
 	mgtxt->priv->buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (mgtxt->priv->view));
 	gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (mgtxt->priv->view), mgtxt->priv->wrapmode);
 	sw = gtk_scrolled_window_new (NULL, NULL);
-	gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw), GTK_SHADOW_IN);
+	gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw), GTK_SHADOW_NONE);
 	gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
 					GTK_POLICY_AUTOMATIC,
 					GTK_POLICY_AUTOMATIC);
@@ -427,5 +427,5 @@ set_editable (GdauiEntryWrapper *mgwrap, gboolean editable)
 	g_return_if_fail (mgwrap && GDAUI_IS_ENTRY_TEXT (mgwrap));
 	mgtxt = GDAUI_ENTRY_TEXT (mgwrap);
 
-	gtk_widget_set_sensitive (mgtxt->priv->view, editable);
+	gtk_text_view_set_editable (GTK_TEXT_VIEW (mgtxt->priv->view), editable);
 }
diff --git a/libgda-ui/gdaui-basic-form.c b/libgda-ui/gdaui-basic-form.c
index edce04f..1f267e9 100644
--- a/libgda-ui/gdaui-basic-form.c
+++ b/libgda-ui/gdaui-basic-form.c
@@ -2141,7 +2141,8 @@ gdaui_basic_form_set_layout_from_file (GdauiBasicForm *form, const gchar *file_n
  * @form: a #GdauiBasicForm
  * @placeholder_id: the name of the requested place holder
  *
- * Retreives a pointer to a place holder widget
+ * Retreives a pointer to a place holder widget. This feature is only available if a specific
+ * layout has been defined for @form using gdaui_basic_form_set_layout_from_file().
  *
  * Returns: a pointer to the requested place holder, or %NULL if not found
  *



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