diff --git a/glade/glade-db-model-editor.c b/glade/glade-db-model-editor.c
index 81f1a41..8cfbf2c 100644
--- a/glade/glade-db-model-editor.c
+++ b/glade/glade-db-model-editor.c
@@ -19,7 +19,7 @@
//+++++++++++++++++++++++++++++++++++++++++++++++++++ GladeModelEditor
-static void glade_model_editor_add_eprop (GladeModelEditor * obj,
+static void glade_model_editor_add_list_eprop (GladeModelEditor * obj,
GladeWidgetAdaptor * adaptor, const gchar * name, const gchar * tooltip)
{
GtkWidget * frame, * alignment, * vbox;
@@ -56,12 +56,12 @@ GtkWidget * glade_model_editor_new (GladeWidgetAdaptor * adaptor,
obj = g_object_new (GLADE_TYPE_MODEL_EDITOR,
"orientation", GTK_ORIENTATION_VERTICAL, NULL);
obj->base = GTK_WIDGET (editable);
- gtk_box_pack_start (GTK_BOX (obj), GTK_WIDGET (editable), FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (obj), GTK_WIDGET (editable), TRUE, TRUE, 0);
- glade_model_editor_add_eprop (obj, adaptor, "links",
+ glade_model_editor_add_list_eprop (obj, adaptor, "links",
_("List of parameters linked to the model"));
- glade_model_editor_add_eprop (obj, adaptor, "batch",
+ glade_model_editor_add_list_eprop (obj, adaptor, "batch",
_("List of SqlHolders and identifiers"));
gtk_widget_show_all (GTK_WIDGET (obj));
@@ -84,8 +84,8 @@ static void glade_model_editor_load (GladeEditable * editable, GladeWidget * wid
static void glade_model_editor_set_show_name (GladeEditable * editable, gboolean show_name)
{
- GladeModelEditor * obj = GLADE_MODEL_EDITOR (editable);
- glade_editable_set_show_name (GLADE_EDITABLE (obj->base), show_name);
+ GladeModelEditor * obj = GLADE_MODEL_EDITOR (editable);
+ glade_editable_set_show_name (GLADE_EDITABLE (obj->base), show_name);
}
static void glade_model_editor_finalize (GObject * object)
diff --git a/glade/glade-db-model.c b/glade/glade-db-model.c
index 4fa63d4..95966e7 100644
--- a/glade/glade-db-model.c
+++ b/glade/glade-db-model.c
@@ -382,8 +382,8 @@ static GtkWidget * glade_eprop_batch_create_input (GladeEditorProperty * eprop)
void glade_eprop_batch_finalize (GObject * object)
{
- GladeEPropLinks * obj = GLADE_EPROP_LINKS (object);
- GObjectClass * parent = g_type_class_peek_parent (GLADE_EPROP_LINKS_GET_CLASS (obj));
+ GladeEPropBatch * obj = GLADE_EPROP_BATCH (object);
+ GObjectClass * parent = g_type_class_peek_parent (GLADE_EPROP_BATCH_GET_CLASS (obj));
parent->finalize (G_OBJECT (obj));
}
diff --git a/glade/glade-eprop-model.c b/glade/glade-eprop-model.c
index 3fa70aa..c2a6126 100644
--- a/glade/glade-eprop-model.c
+++ b/glade/glade-eprop-model.c
@@ -340,12 +340,3 @@ GladeEditorProperty * glade_db_model_holder_create_eprop (GladeWidgetAdaptor * a
return eprop;
}
-
-//+++++++++++++++++++++++++++++++++++++++++++++++++++ DbModel Action Callback
-
-void glade_db_model_action_activate (GladeWidgetAdaptor * adaptor,
- DbModel * model, const gchar * path)
-{
- glade_eprop_model_show_dialog (NULL,
- (GObject *) glade_widget_get_from_gobject (model));
-}
diff --git a/glade/vn.xml b/glade/vn.xml
index 6c83a99..338a9c6 100644
--- a/glade/vn.xml
+++ b/glade/vn.xml
@@ -43,10 +43,6 @@
glade_db_model_create_editable
glade_db_model_write_widget
glade_db_model_read_widget
- glade_db_model_action_activate
-
-
-
diff --git a/module/data/consulter-menu.xml b/module/data/consulter-menu.xml
index 2045a24..f13c5f4 100644
--- a/module/data/consulter-menu.xml
+++ b/module/data/consulter-menu.xml
@@ -4,12 +4,12 @@
-
Send
win.send
- <Primary>s
+ <Shift>s
-
Clean
win.clean
- <Primary>c
+ <Shift>c
diff --git a/vapi/Vn-1.0.metadata b/vapi/Vn-1.0.metadata
index 1c80309..217419c 100644
--- a/vapi/Vn-1.0.metadata
+++ b/vapi/Vn-1.0.metadata
@@ -1,5 +1,3 @@
Vn cheader_filename="vn/vn.h"
-Grid.append_columns skip=false
-
Form.@get type="unowned GLib.Object"
diff --git a/vn/glade/vn-model.c b/vn/glade/vn-model.c
index e9ed2e1..fff0202 100644
--- a/vn/glade/vn-model.c
+++ b/vn/glade/vn-model.c
@@ -53,6 +53,7 @@ static void vn_model_start_element (GMarkupParseContext * context,
VnModelData * d = data;
if (!g_strcmp0 (element, "link"))
+ {
for (i = 0; names[i]; i++)
if (!g_strcmp0 (names[i], "field"))
d->fields = g_slist_prepend (d->fields, g_strdup (values[i]));
@@ -63,6 +64,7 @@ static void vn_model_start_element (GMarkupParseContext * context,
gboolean b = values[i] && !g_strcmp0 (values[i], "True") ? TRUE : FALSE;
d->linked = g_slist_prepend (d->linked, GINT_TO_POINTER (b));
}
+ }
else if (!g_strcmp0 (element, "holder"))
for (i = 0; names[i]; i++)
if (!g_strcmp0 (names[i], "id"))
@@ -112,10 +114,6 @@ static void vn_model_buildable_custom_finished (GtkBuildable * buildable,
if (!g_strcmp0 (tagname, "links"))
{
- d->fields = g_slist_reverse (d->fields);
- d->params = g_slist_reverse (d->params);
- d->linked = g_slist_reverse (d->linked);
-
for (f = d->fields, p = d->params, l = d->linked;
f && p && l;
f = f->next, p = p->next, l = l->next)
@@ -125,21 +123,15 @@ static void vn_model_buildable_custom_finished (GtkBuildable * buildable,
GvnParam * param = GVN_PARAM (gtk_builder_get_object (d->builder, p->data));
db_model_set_default_value_from_param (d->model, field, param, linked);
-
- g_free (f->data);
- g_free (p->data);
}
- g_slist_free (d->fields);
- g_slist_free (d->params);
+ g_slist_free_full (d->fields, g_free);
+ g_slist_free_full (d->params, g_free);
g_slist_free (d->linked);
g_slice_free (VnModelData, d);
}
else if (!g_strcmp0 (tagname, "batch"))
{
- d->fields = g_slist_reverse (d->fields);
- d->params = g_slist_reverse (d->params);
-
for (f = d->fields, p = d->params;
f && p;
f = f->next, p = p->next)
@@ -156,13 +148,10 @@ static void vn_model_buildable_custom_finished (GtkBuildable * buildable,
}
else
sql_batch_add_from_param (batch, id, param);
-
- g_free (f->data);
- g_free (p->data);
}
- g_slist_free (d->fields);
- g_slist_free (d->params);
+ g_slist_free_full (d->fields, g_free);
+ g_slist_free_full (d->params, g_free);
g_slice_free (VnModelData, d);
}
}