&error);
if (thr == NULL || error != NULL)
{
- gtk_widget_hide_all (dialog);
+ gtk_widget_hide (dialog);
dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_builder_get_object (priv->commons->gtkbuilder, "w_main")),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_WARNING,
if (priv->error_update_metastore != NULL)
{
- gtk_widget_hide_all (dialog);
+ gtk_widget_hide (dialog);
dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_builder_get_object (priv->commons->gtkbuilder, "w_main")),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_WARNING,
stmt = gda_sql_parser_parse_string (priv->commons->gdaparser, sql, NULL, &error);
if (stmt == NULL || error != NULL)
{
- gtk_widget_hide_all (dialog);
+ gtk_widget_hide (dialog);
dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_builder_get_object (priv->commons->gtkbuilder, "w_main")),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_WARNING,
stmt = gda_sql_parser_parse_string (priv->commons->gdaparser, sql, NULL, &error);
if (stmt == NULL || error != NULL)
{
- gtk_widget_hide_all (dialog);
+ gtk_widget_hide (dialog);
dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_builder_get_object (priv->commons->gtkbuilder, "w_main")),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_WARNING,
stmt = gda_sql_parser_parse_string (priv->commons->gdaparser, sql, NULL, &error);
if (stmt == NULL || error != NULL)
{
- gtk_widget_hide_all (dialog);
+ gtk_widget_hide (dialog);
dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_builder_get_object (priv->commons->gtkbuilder, "w_main")),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_WARNING,
if (gda_connection_statement_execute_non_select (priv->commons->gdacon, stmt, NULL, NULL, &error) != 1
|| error != NULL)
{
- gtk_widget_hide_all (dialog);
+ gtk_widget_hide (dialog);
dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_builder_get_object (priv->commons->gtkbuilder, "w_main")),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_WARNING,
}
else if (error != NULL)
{
- gtk_widget_hide_all (dialog);
+ gtk_widget_hide (dialog);
dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_builder_get_object (priv->commons->gtkbuilder, "w_main")),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_WARNING,
stmt = gda_sql_parser_parse_string (priv->commons->gdaparser, sql, NULL, &error);
if (stmt == NULL || error != NULL)
{
- gtk_widget_hide_all (dialog);
+ gtk_widget_hide (dialog);
dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_builder_get_object (priv->commons->gtkbuilder, "w_main")),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_WARNING,
if (gda_connection_statement_execute_non_select (priv->commons->gdacon, stmt, NULL, NULL, &error) != 1
|| error != NULL)
{
- gtk_widget_hide_all (dialog);
+ gtk_widget_hide (dialog);
dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_builder_get_object (priv->commons->gtkbuilder, "w_main")),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_WARNING,
gda_sql_identifier_quote (table_name, priv->gdacon, NULL, FALSE, FALSE));
if (!gda_connection_update_meta_store (priv->gdacon, &mcontext, &error))
{
- gtk_widget_hide_all (dialog);
+ gtk_widget_hide (dialog);
dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_builder_get_object (priv->commons->gtkbuilder, "w_main")),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_WARNING,
stmt = gda_sql_parser_parse_string (priv->commons->gdaparser, sql, NULL, &error);
if (stmt == NULL || error != NULL)
{
- gtk_widget_hide_all (dialog);
+ gtk_widget_hide (dialog);
dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_builder_get_object (priv->commons->gtkbuilder, "w_main")),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_WARNING,
}
else if (error != NULL)
{
- gtk_widget_hide_all (dialog);
+ gtk_widget_hide (dialog);
dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_builder_get_object (priv->commons->gtkbuilder, "w_main")),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_WARNING,
}
else
{
- gtk_widget_hide_all (dialog);
+ gtk_widget_hide (dialog);
dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_builder_get_object (priv->commons->gtkbuilder, "w_main")),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_WARNING,
g_object_unref (stmt);
}
- gtk_widget_hide_all (dialog);
+ gtk_widget_hide (dialog);
datasources_load (datasources);
}
/*
- * Copyright (C) 2010-2011 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2013 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
&error);
if (thr == NULL || error != NULL)
{
- gtk_widget_hide_all (dialog);
+ gtk_widget_hide (dialog);
dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_builder_get_object (priv->commons->gtkbuilder, "w_main")),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_WARNING,
if (priv->error_update_metastore != NULL)
{
- gtk_widget_hide_all (dialog);
+ gtk_widget_hide (dialog);
dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_builder_get_object (priv->commons->gtkbuilder, "w_main")),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_WARNING,
gtk_widget_destroy (dialog);
return;
}
- gtk_widget_hide_all (dialog);
+ gtk_widget_hide (dialog);
error = NULL;
dm = gda_connection_get_meta_store_data (priv->gdacon,