}
else
{
+ gtk_tree_selection_unselect_all (priv->sel_show);
gtk_widget_hide (wpage);
}
}
}
else
{
+ gtk_tree_selection_unselect_all (priv->sel_where);
gtk_widget_hide (wpage);
}
}
}
else
{
+ gtk_tree_selection_unselect_all (priv->sel_order);
gtk_widget_hide (wpage);
}
}
GdaExQueryEditorTable *table;
GdaExQueryEditorField *field;
+ GtkWidget *wpage;
+
priv = GDAEX_QUERY_EDITOR_GET_PRIVATE (qe);
gtk_tree_model_get (GTK_TREE_MODEL (priv->tstore_fields), iter,
COL_SHOW_VISIBLE_NAME, g_strconcat (table->name_visible, " - ", field->name_visible, NULL),
-1);
- gtk_tree_selection_select_iter (priv->sel_show, iter);
+ wpage = gtk_notebook_get_nth_page (GTK_NOTEBOOK (priv->notebook), GDAEX_QE_PAGE_SHOW);
+ if (gtk_widget_get_visible (wpage))
+ {
+ gtk_tree_selection_select_iter (priv->sel_show, iter);
+ }
g_free (table_name);
g_free (field_name);
GdaExQueryEditorTable *table;
GdaExQueryEditorField *field;
+ GtkWidget *wpage;
+
qe = (GdaExQueryEditor *)user_data;
priv = GDAEX_QUERY_EDITOR_GET_PRIVATE (qe);
gtk_tree_model_get_path (GTK_TREE_MODEL (priv->tstore_where), &iter_parent));
}
- gtk_tree_selection_select_iter (priv->sel_where, &iter);
+ wpage = gtk_notebook_get_nth_page (GTK_NOTEBOOK (priv->notebook), GDAEX_QE_PAGE_WHERE);
+ if (gtk_widget_get_visible (wpage))
+ {
+ gtk_tree_selection_select_iter (priv->sel_where, &iter);
+ }
g_free (table_name);
g_free (field_name);
GdaExQueryEditorTable *table;
GdaExQueryEditorField *field;
+ GtkWidget *wpage;
+
qe = (GdaExQueryEditor *)user_data;
priv = GDAEX_QUERY_EDITOR_GET_PRIVATE (qe);
COL_ORDER_ORDER, "ASC",
-1);
- gtk_tree_selection_select_iter (priv->sel_order, &iter);
+ wpage = gtk_notebook_get_nth_page (GTK_NOTEBOOK (priv->notebook), GDAEX_QE_PAGE_ORDER);
+ if (gtk_widget_get_visible (wpage))
+ {
+ gtk_tree_selection_select_iter (priv->sel_order, &iter);
+ }
gdaex_query_editor_on_sel_fields_changed (NULL, user_data);