AM_CPPFLAGS = $(GTKFORM_CFLAGS) \
-DLOCALEDIR=\"$(localedir)\" \
+ -DMODULESDIR=\""$(libdir)/$(PACKAGE)/modules"\"
+ -DG_LOG_DOMAIN=\"GtkForm\"
lib_LTLIBRARIES = libgtkform.la
widgetlabel.h \
widgetradio.h \
widgetspin.h \
- widgettextview.h
+ widgettextview.h \
+ group.h
libgtkform_includedir = $(includedir)/libgtkform
+
+install-exec-hook:
+ mkdir -p "$(libdir)/$(PACKAGE)/modules"
+
+uninstall-hook:
+ rm -rf "$(libdir)/$(PACKAGE)"
GParamSpec *pspec);
static void gtk_form_show_check_error_dialog (GtkFormWidget *fwidget,
- GtkWidget *parent_window);
+ GtkWidget *parent_window,
+ const gchar *message);
+static void gtk_form_load_modules (GtkForm *form);
+
#define GTK_FORM_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_GTK_FORM, GtkFormPrivate))
typedef struct _GtkFormPrivate GtkFormPrivate;
GtkFormKey *key;
gchar quote;
+ GList *modules;
GdaEx *gdaex;
+
+ GSList *groups;
+
+ guint debug;
+ GFileOutputStream *log_file;
};
G_DEFINE_TYPE (GtkForm, gtk_form, G_TYPE_OBJECT)
GtkForm
*gtk_form_new ()
{
+ GtkForm *form;
+
+ form = GTK_FORM (g_object_new (gtk_form_get_type (), NULL));
+ if (form == NULL)
+ {
+ return NULL;
+ }
+
setlocale (LC_ALL, "");
+ gda_locale_changed ();
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
textdomain (GETTEXT_PACKAGE);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");