From: Andrea Zagli Date: Sun, 12 Mar 2017 12:06:57 +0000 (+0100) Subject: Removed libgda-ui. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=refs%2Fheads%2Fdevelop;p=zakautho%2Fgui Removed libgda-ui. --- diff --git a/configure.ac b/configure.ac index 27d7773..df718d6 100644 --- a/configure.ac +++ b/configure.ac @@ -25,7 +25,8 @@ AC_PROG_RANLIB AM_PROG_AR # Checks for libraries. -PKG_CHECK_MODULES(AUTOZGUI, [libgda-ui-5.0 >= 5.0.0]) +PKG_CHECK_MODULES(AUTOZGUI, [gtk+-3.0 + libgda-5.0 >= 5.0.0]) AC_SUBST(AUTOZGUI_CFLAGS) AC_SUBST(AUTOZGUI_LIBS) diff --git a/data/zak-autho-gui/gui/autoz-gui.ui b/data/zak-autho-gui/gui/autoz-gui.ui index a5b6bb0..da8c81a 100644 --- a/data/zak-autho-gui/gui/autoz-gui.ui +++ b/data/zak-autho-gui/gui/autoz-gui.ui @@ -166,7 +166,7 @@ - + @@ -317,7 +317,7 @@ - + @@ -468,7 +468,7 @@ - + @@ -744,7 +744,7 @@ - + @@ -914,7 +914,7 @@ - + @@ -966,6 +966,7 @@ Open ZakAutho Datasource - ZakAutho GUI True center-on-parent + 400 True @@ -975,10 +976,11 @@ vertical 5 - + True False - 5 + 5 + 5 True @@ -987,9 +989,8 @@ Table name prefix - False - True - 0 + 0 + 0 @@ -1002,39 +1003,41 @@ False - True - True - 1 + 1 + 0 - - - False - True - 0 - - - - - True - False - 0 - - - - + True False - <b>Connection parameters</b> - True + start + Connection string + + 0 + 1 + + + + + True + True + True + • + False + False + + + 1 + 1 + - True + False True - 1 + 0 @@ -1075,12 +1078,12 @@ False True - 2 + 1 - + @@ -1125,7 +1128,7 @@ - + @@ -1250,7 +1253,7 @@ - + @@ -1375,7 +1378,7 @@ - + diff --git a/libzakauthogui.pc.in b/libzakauthogui.pc.in index cd7a088..2b913e4 100644 --- a/libzakauthogui.pc.in +++ b/libzakauthogui.pc.in @@ -6,6 +6,6 @@ includedir=@includedir@ Name: @PACKAGE_NAME@ Description: Library with zak-autho-gui interface. Version: @PACKAGE_VERSION@ -Requires: libgda-ui-5.0 +Requires: gtk+-3.0 libgda-5.0 Libs: -L${libdir} -lzakauthogui Cflags: -I${includedir} diff --git a/src/authorization.c b/src/authorization.c index 3daad64..4868b26 100644 --- a/src/authorization.c +++ b/src/authorization.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012 Andrea Zagli + * Copyright (C) 2012-2017 Andrea Zagli * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -17,7 +17,7 @@ * */ -#include +#include #include #include "authorization.h" diff --git a/src/openauditds.c b/src/openauditds.c index 997974e..4992612 100644 --- a/src/openauditds.c +++ b/src/openauditds.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 Andrea Zagli + * Copyright (C) 2011-2017 Andrea Zagli * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -17,7 +17,7 @@ * */ -#include +#include #include "openauditds.h" @@ -33,10 +33,6 @@ static void zak_autho_gui_open_audit_ds_get_property (GObject *object, GValue *value, GParamSpec *pspec); -static void zak_autho_gui_open_audit_ds_on_wlogin_changed (GdauiLogin *gdauilogin, - gboolean arg1, - gpointer user_data); - static void zak_autho_gui_open_audit_ds_on_btn_cancel_clicked (GtkButton *button, gpointer user_data); static void zak_autho_gui_open_audit_ds_on_btn_open_clicked (GtkButton *button, @@ -99,8 +95,6 @@ ZakAuthoGuiOpenAuditDS { GError *error; - GdauiLoginMode mode; - ZakAuthoGuiOpenAuditDS *a = ZAK_AUTHO_GUI_OPEN_AUDIT_DS (g_object_new (zak_autho_gui_open_audit_ds_get_type (), NULL)); ZakAuthoGuiOpenAuditDSPrivate *priv = ZAK_AUTHO_GUI_OPEN_AUDIT_DS_GET_PRIVATE (a); @@ -124,21 +118,6 @@ ZakAuthoGuiOpenAuditDS g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button2"), "clicked", G_CALLBACK (zak_autho_gui_open_audit_ds_on_btn_open_clicked), (gpointer *)a); - /* creating login widget */ - priv->wlogin = gdaui_login_new (NULL); - - g_object_get (G_OBJECT (priv->wlogin), "mode", &mode, NULL); - mode |= GDA_UI_LOGIN_HIDE_DSN_SELECTION_MODE; - gdaui_login_set_mode (GDAUI_LOGIN (priv->wlogin), mode); - - g_signal_connect (G_OBJECT (priv->wlogin), "changed", - G_CALLBACK (zak_autho_gui_open_audit_ds_on_wlogin_changed), (gpointer *)a); - - gtk_container_add (GTK_CONTAINER (gtk_builder_get_object (priv->commons->gtkbuilder, "frame1")), - priv->wlogin); - - gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (priv->commons->gtkbuilder, "button2")), FALSE); - return a; } @@ -185,22 +164,6 @@ zak_autho_gui_open_audit_ds_get_property (GObject *object, guint property_id, GV } /* CALLBACK */ -static void -zak_autho_gui_open_audit_ds_on_wlogin_changed (GdauiLogin *gdauilogin, - gboolean arg1, - gpointer user_data) -{ - ZakAuthoGuiOpenAuditDS *open_audit_ds = (ZakAuthoGuiOpenAuditDS *)user_data; - - ZakAuthoGuiOpenAuditDSPrivate *priv = ZAK_AUTHO_GUI_OPEN_AUDIT_DS_GET_PRIVATE (open_audit_ds); - - gboolean is_valid; - - g_object_get (G_OBJECT (priv->wlogin), "valid", &is_valid, NULL); - gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (priv->commons->gtkbuilder, "button2")), - is_valid); -} - static void zak_autho_gui_open_audit_ds_on_btn_cancel_clicked (GtkButton *button, gpointer user_data) @@ -219,17 +182,8 @@ zak_autho_gui_open_audit_ds_on_btn_open_clicked (GtkButton *button, ZakAuthoGuiOpenAuditDSPrivate *priv = ZAK_AUTHO_GUI_OPEN_AUDIT_DS_GET_PRIVATE (open_audit_ds); ZakAuthoGuiOpenAuditDSClass *klass = ZAK_AUTHO_GUI_OPEN_AUDIT_DS_GET_CLASS (open_audit_ds); - gchar *cncstring; - - const GdaDsnInfo *info; - info = gdaui_login_get_connection_information (GDAUI_LOGIN (priv->wlogin)); - - cncstring = g_strconcat (info->provider, "://", - (info->auth_string != NULL ? g_strdup_printf ("%s;", info->auth_string) : ""), - info->cnc_string, - NULL); - - g_signal_emit (open_audit_ds, klass->opened_signal_id, 0, cncstring); + g_signal_emit (open_audit_ds, klass->opened_signal_id, 0, + gtk_entry_get_text (GTK_ENTRY (gtk_builder_get_object (priv->commons->gtkbuilder , "entry6")))); gtk_widget_destroy (priv->w); } diff --git a/src/resource.c b/src/resource.c index acec076..b24ab9e 100644 --- a/src/resource.c +++ b/src/resource.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011-2012 Andrea Zagli + * Copyright (C) 2011-2012-2017 Andrea Zagli * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -17,7 +17,7 @@ * */ -#include +#include #include #include "resource.h" diff --git a/src/role.c b/src/role.c index 0afca47..01b2ddf 100644 --- a/src/role.c +++ b/src/role.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011-2012 Andrea Zagli + * Copyright (C) 2011-2017 Andrea Zagli * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -17,7 +17,7 @@ * */ -#include +#include #include #include "role.h"