[libgda] GdauiRawForm: make sure data entry widgets are displayed when adding a new row
- From: Vivien Malerba <vivien src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgda] GdauiRawForm: make sure data entry widgets are displayed when adding a new row
- Date: Wed, 27 Jan 2010 20:21:31 +0000 (UTC)
commit 74b3857f27274ce57d1ea59960e075b9bf010ca9
Author: Vivien Malerba <malerba gnome-db org>
Date: Wed Jan 27 16:32:12 2010 +0100
GdauiRawForm: make sure data entry widgets are displayed when adding a new row
libgda-ui/gdaui-raw-form.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libgda-ui/gdaui-raw-form.c b/libgda-ui/gdaui-raw-form.c
index b812f3c..38b7cc4 100644
--- a/libgda-ui/gdaui-raw-form.c
+++ b/libgda-ui/gdaui-raw-form.c
@@ -29,6 +29,7 @@
#include "gdaui-basic-form.h"
#include "gdaui-data-filter.h"
#include "internal/utility.h"
+#include "data-entries/gdaui-entry-shell.h"
static void gdaui_raw_form_class_init (GdauiRawFormClass * class);
static void gdaui_raw_form_init (GdauiRawForm *wid);
@@ -655,7 +656,13 @@ action_new_cb (GtkAction *action, GdauiRawForm *form)
}
else
g_object_unref (param);
+
+ GtkWidget *entry;
+ entry = gdaui_basic_form_get_entry_widget (GDAUI_BASIC_FORM (form), (GdaHolder*) list->data);
+ if (entry)
+ gdaui_entry_shell_set_unknown ((GdauiEntryShell*) entry, FALSE);
}
+
g_signal_handlers_unblock_by_func (form, G_CALLBACK (form_holder_changed_cb), NULL);
form_holder_changed_cb (form, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]