Commit 60cae2e3 authored by Ivan, Wong Yat Cheung's avatar Ivan, Wong Yat Cheung Committed by Ivan Wong Yat Cheung
Browse files

pixmaps/Makefile.am, src/Makefile.am, widgets/Makefile.am,

2005-04-02  Ivan, Wong Yat Cheung  <email@ivanwong.info>

	* configure.in:
	  pixmaps/Makefile.am, src/Makefile.am, widgets/Makefile.am,
	  src/glade-app.c, src/glade-widget.c, src/glade-paths.sh.in:
	  Use a more proper way to detect paths.

	* src/glade-app.h, src/glade-command.c, src/glade-command.h,
	  src/glade-debug.h, src/glade-editor.h, src/glade-gtk.c,
	  src/glade-palette.h, src/glade-placeholder.c, src/glade-placeholder.h,
	  src/glade-project-view.h, src/glade-project.h, src/glade-property.h,
	  src/glade-utils.h, src/glade-widget-class.h, src/glade-widget.h,
	  src/glade.h:
	  Introduce LIBGLADEUI_API, remove *.def.

	* src/main.c: some global variables should be freed by libgladeui.
parent 72879b38
......@@ -10,6 +10,7 @@ config.h.in
stamp-h.in
Makefile.in
configure
configure.lineno
config.log
config.h
config.cache
......@@ -17,6 +18,7 @@ config.status
intltool-*
glade-3.desktop
stamp-h
stamp-h1
libtool
Makefile
missing
......
2005-04-02 Ivan, Wong Yat Cheung <email@ivanwong.info>
* configure.in:
pixmaps/Makefile.am, src/Makefile.am, widgets/Makefile.am,
src/glade-app.c, src/glade-widget.c, src/glade-paths.sh.in:
Use a more proper way to detect paths.
* src/glade-app.h, src/glade-command.c, src/glade-command.h,
src/glade-debug.h, src/glade-editor.h, src/glade-gtk.c,
src/glade-palette.h, src/glade-placeholder.c, src/glade-placeholder.h,
src/glade-project-view.h, src/glade-project.h, src/glade-property.h,
src/glade-utils.h, src/glade-widget-class.h, src/glade-widget.h,
src/glade.h:
Introduce LIBGLADEUI_API, remove *.def.
* src/main.c: some global variables should be freed by libgladeui.
2005-04-01 Tristan Van Berkom <tvb@gnome.org>
* src/glade-app.[ch]: Added global selection API which takes multiple
......
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.52)
AC_INIT(src/glade-widget.c)
AC_INIT(glade-3, 3.0.0,
http://bugzilla.gnome.org/enter_bug.cgi?product=glade3)
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE(glade, 2.90.0)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_MAINTAINER_MODE
AM_CONFIG_HEADER(config.h)
......@@ -19,13 +20,25 @@ AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_LIBTOOL_DLOPEN
AC_PROG_LIBTOOL
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
# If the source code has changed at all, increment GLADE_REVISION
# If any interfaces have been added, removed, or changed, increment GLADE_CURRENT, and set GLADE_REVISION to 0.
# If any interfaces have been added since the last public release, then increment GLADE_AGE.
# If any interfaces have been removed since the last public release, then set GLADE_AGE to 0.
GLADE_REVISION=0
GLADE_CURRENT=1
GLADE_AGE=1
AC_SUBST(GLADE_REVISION)
AC_SUBST(GLADE_CURRENT)
AC_SUBST(GLADE_AGE)
dnl ================================================================
dnl Gettext stuff.
dnl ================================================================
GETTEXT_PACKAGE=glade-3.0
GETTEXT_PACKAGE=glade-3
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of the gettext package.])
ALL_LINGUAS="az es ms nn no pl pt ru sv ta tr uk"
......@@ -43,52 +56,24 @@ AC_CHECK_LIB(popt, poptStrippedArgv,, AC_MSG_ERROR([popt 1.5 or newer is require
glade 3.0. You can download the latest version from ftp://people.redhat.com/sopwith/popt/]))
dnl ================================================================
dnl GLADE_DATA_DIR - Sets the location of the data directory, where we install
dnl source files added to projects (such as all the Gnome m4 macros).
dnl This will substitute GLADE_DATA_DIR in config.h (from acconfig.h).
dnl ================================================================
if test "x${datadir}" = 'x${prefix}/share'; then
if test "x${prefix}" = "xNONE"; then
glade_data_dir="${ac_default_prefix}/share"
else
glade_data_dir="${prefix}/share"
fi
else
glade_data_dir="${datadir}"
fi
AC_DEFINE_UNQUOTED(GLADE_DATA_DIR, "${glade_data_dir}", [Data directory of Glade-3.])
AC_DEFINE_UNQUOTED(ICONS_DIR, "${glade_data_dir}/pixmaps", [Icons directory of Glade-3.])
AC_DEFINE_UNQUOTED(LOCALE_DIR, "${glade_data_dir}/locale", [Locale directory of Glade-3.])
dnl ================================================================
dnl PIXMAPS, WIDGETS, CATALOGS
dnl ================================================================
if test "x${prefix}" = "xNONE"; then
tmp="${ac_default_prefix}"
else
tmp="${prefix}"
fi
pixmapsdir="${tmp}/${DATADIRNAME}/${PACKAGE}-${VERSION}/pixmaps"
widgetsdir="${tmp}/${DATADIRNAME}/${PACKAGE}-${VERSION}/widgets"
catalogsdir="${tmp}/${DATADIRNAME}/${PACKAGE}-${VERSION}/catalogs"
AC_DEFINE_UNQUOTED(PIXMAPS_DIR, "$pixmapsdir", [Pixmaps directory of Glade-3.])
AC_DEFINE_UNQUOTED(WIDGETS_DIR, "$widgetsdir", [Widgets directory of Glade-3.])
AC_DEFINE_UNQUOTED(CATALOGS_DIR, "$catalogsdir", [Catalogs directory of Glade-3.])
glade_version="${VERSION}"
glade_datadir='${datadir}/${PACKAGE}'
glade_libdir='${libdir}/${PACKAGE}'
glade_catalogsdir='${glade_libdir}/catalogs'
glade_modulesdir='${glade_libdir}/modules'
glade_pixmapsdir='${glade_datadir}/pixmaps'
glade_icondir='${datadir}/pixmaps'
glade_localedir='${prefix}/${DATADIRNAME}/locale'
dnl ================================================================
dnl MODULES
dnl ================================================================
if test "x${libdir}" = "xNONE"; then
modulesdir="${ac_default_libdir}/${PACKAGE}"
else
modulesdir="${libdir}/${PACKAGE}"
fi
AC_SUBST(glade_version)
AC_SUBST(glade_datadir)
AC_SUBST(glade_libdir)
AC_SUBST(glade_catalogsdir)
AC_SUBST(glade_modulesdir)
AC_SUBST(glade_pixmapsdir)
AC_SUBST(glade_icondir)
AC_SUBST(glade_localedir)
AC_SUBST(pixmapsdir)
AC_SUBST(widgetsdir)
AC_SUBST(catalogsdir)
AC_SUBST(modulesdir)
case $host_os in
*mingw* | pw32* | cygwin*)
......@@ -112,6 +97,7 @@ widgets/Makefile
po/Makefile.in
src/Makefile
src/libgladeui-1.0.pc
src/glade-paths.sh
])
echo "
......
pixmapsdir = $(glade_pixmapsdir)
pixmaps_DATA = \
accellabel.png \
arrow.png \
......
......@@ -6,3 +6,5 @@ Makefile.in
glade-marshallers.c
glade-marshallers.h
libgladeui-1.0.pc
glade-paths.h
glade-paths.sh
......@@ -2,9 +2,10 @@
SUBDIRS=
bin_PROGRAMS = glade-3
lib_LTLIBRARIES = libgladeui-1.la
gladegtk_LTLIBRARIES = libgladegtk.la libgladeui.la
gladegtkdir = $(modulesdir)
gladegtk_LTLIBRARIES = libgladegtk.la
gladegtkdir = $(glade_modulesdir)
CLEANFILES = $(BUILT_SOURCES)
EXTRA_DIST = \
......@@ -12,40 +13,30 @@ EXTRA_DIST = \
libgladegtk_la_SOURCES = glade-gtk.c
libgladegtk_la_LDFLAGS = -module -avoid-version
libgladegtk_la_LIBADD = libgladeui-1.la $(GLADE_LIBS)
if WITH_WIN32
glade_3_LDFLAGS = glade_plugin.def
libgladegtk_la_LDFLAGS += -no-undefined -L./ -Wl,$(bin_PROGRAMS).a $(GLADE_LIBS)
libgladegtk_la_DEPENDENCIES = $(bin_PROGRAMS).a
CLEANFILES += $(bin_PROGRAMS).a
endif
INCLUDES = \
AM_CFLAGS = -g -Wall \
-I$(top_srcdir) \
-I$(top_builddir) \
$(GLADE_CFLAGS) \
-DMODULES_DIR=\""@modulesdir@"\"
AM_CFLAGS = -g -Wall
$(GLADE_CFLAGS)
BUILT_SOURCES = \
glade-marshallers.c \
glade-marshallers.h
glade-marshallers.h \
glade-paths.h
glade_3_LDADD = \
libgladeui.la
glade_3_LDADD = libgladeui-1.la
glade_3_SOURCES = \
glade-project-window.c \
glade-project-window.c glade-project-window.h \
main.c
libgladeui_la_SOURCES = \
libgladeui_1_la_SOURCES = \
glade-debug.c \
glade-project.c \
glade-parameter.c \
glade-placeholder.c \
glade-project-view.c \
glade-project-window.c \
glade-widget-class.c \
glade-xml-utils.c \
glade-palette.c \
......@@ -70,8 +61,9 @@ libgladeui_la_SOURCES = \
glade-parser.c \
glade-app.c
libgladeui_la_LIBADD = \
$(GLADE_LIBS)
libgladeui_1_la_CFLAGS = -DINSIDE_LIBGLADEUI $(AM_CFLAGS)
libgladeui_1_la_LDFLAGS = -version-info $(GLADE_CURRENT):$(GLADE_REVISION):$(GLADE_AGE)
libgladeui_1_la_LIBADD = $(GLADE_LIBS)
libgladeuiincludedir=$(includedir)/libgladeui-1.0/libgladeui
libgladeuiinclude_HEADERS = \
......@@ -85,7 +77,6 @@ libgladeuiinclude_HEADERS = \
glade-signal-editor.h \
glade-palette.h \
glade-cursor.h \
glade-project-window.h \
glade-types.h \
glade-widget.h \
glade-widget-class.h \
......@@ -112,16 +103,27 @@ libgladeuiinclude_HEADERS = \
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libgladeui-1.0.pc
$(bin_PROGRAMS).a: $(bin_PROGRAMS)
$(DLLTOOL) -D $(bin_PROGRAMS) -d glade_plugin.def -l $(bin_PROGRAMS).a
if WITH_WIN32
libgladegtk_la_LDFLAGS += -no-undefined
libgladeui_1_la_LDFLAGS += -no-undefined
endif
#
# Marshaller generation
#
glade-marshallers.h: glade-marshallers.list $(GLIB_GENMARSHAL) Makefile.am
glade-marshallers.h: glade-marshallers.list $(GLIB_GENMARSHAL)
$(GLIB_GENMARSHAL) --prefix=glade_marshal $(srcdir)/glade-marshallers.list --header > glade-marshallers-h.tmp \
&& mv glade-marshallers-h.tmp glade-marshallers.h \
|| ( rm -f glade-marshallers-h.tmp && exit 1)
glade-marshallers.c: glade-marshallers.list $(GLIB_GENMARSHAL) Makefile.am
glade-marshallers.c: glade-marshallers.list $(GLIB_GENMARSHAL)
$(GLIB_GENMARSHAL) --prefix=glade_marshal $(srcdir)/glade-marshallers.list --body > glade-marshallers-c.tmp \
&& mv glade-marshallers-c.tmp glade-marshallers.c \
|| ( rm -f glade-marshallers-c.tmp && exit 1 )
glade-paths.h: glade-paths.sh
@sh $< > $@.tmp ; \
if cmp -s $@.tmp $@; then \
rm $@.tmp; \
else \
mv $@.tmp $@ ; echo updated glade-paths.h ; \
fi
......@@ -45,6 +45,7 @@
#include "glade-catalog.h"
#include "glade-transform.h"
#include "glade-app.h"
#include "glade-paths.h"
#include <gdk/gdkkeysyms.h>
#include <gtk/gtkstock.h>
......@@ -81,17 +82,12 @@ enum
static guint glade_app_signals[LAST_SIGNAL] = { 0 };
gchar *glade_data_dir = GLADE_DATA_DIR;
gchar *glade_pixmaps_dir = PIXMAPS_DIR;
gchar *glade_widgets_dir = WIDGETS_DIR;
gchar *glade_catalogs_dir = CATALOGS_DIR;
#ifdef MODULES_DIR
gchar *glade_modules_dir = MODULES_DIR;
#else
gchar *glade_modules_dir = NULL;
#endif
gchar *glade_locale_dir = LOCALE_DIR;
gchar *glade_icon_dir = ICONS_DIR;
gchar *glade_pixmaps_dir = GLADE_PIXMAPSDIR;
gchar *glade_catalogs_dir = GLADE_CATALOGSDIR;
gchar *glade_modules_dir = GLADE_MODULESDIR;
gchar *glade_locale_dir = GLADE_LOCALEDIR;
gchar *glade_icon_dir = GLADE_ICONDIR;
gboolean glade_verbose = FALSE;
static GObjectClass* parent_class = NULL;
......@@ -121,6 +117,14 @@ glade_app_dispose (GObject *app)
static void
glade_app_finalize (GObject *app)
{
#ifdef G_OS_WIN32
g_free (glade_pixmaps_dir);
g_free (glade_catalogs_dir);
g_free (glade_modules_dir);
g_free (glade_locale_dir);
g_free (glade_icon_dir);
#endif
g_free (GLADE_APP (app)->priv);
if (parent_class->finalize)
parent_class->finalize (app);
......@@ -195,12 +199,10 @@ glade_app_init (GladeApp *app)
gchar *prefix;
prefix = g_win32_get_package_installation_directory (NULL, NULL);
glade_data_dir = g_build_filename (prefix, "share", "glade", NULL);
glade_pixmaps_dir = g_build_filename (prefix, "lib", PACKAGE "-" VERSION, "pixmaps", NULL);
glade_widgets_dir = g_build_filename (prefix, "lib", PACKAGE "-" VERSION, "widgets", NULL);
glade_catalogs_dir = g_build_filename (prefix, "lib", PACKAGE "-" VERSION, "catalogs", NULL);
glade_modules_dir = g_build_filename (prefix, "lib", "glade", NULL);
glade_locale_dir = g_build_filename (prefix, "lib", "locale", NULL);
glade_pixmaps_dir = g_build_filename (prefix, "share", PACKAGE, "pixmaps", NULL);
glade_catalogs_dir = g_build_filename (prefix, "lib", PACKAGE, "catalogs", NULL);
glade_modules_dir = g_build_filename (prefix, "lib", PACKAGE, "modules", NULL);
glade_locale_dir = g_build_filename (prefix, "share", "locale", NULL);
glade_icon_dir = g_build_filename (prefix, "share", "pixmaps", NULL);
g_free (prefix);
#endif
......
......@@ -50,62 +50,61 @@ struct _GladeAppClass
void (*update_ui_signal) (GladeApp *app);
};
GType glade_app_get_type (void);
LIBGLADEUI_API GType glade_app_get_type (void);
GladeApp* glade_app_new (void);
LIBGLADEUI_API GladeApp* glade_app_new (void);
void glade_app_update_ui (GladeApp* app);
LIBGLADEUI_API void glade_app_update_ui (GladeApp* app);
void glade_app_set_window (GladeApp* app, GtkWidget *window);
GtkWidget* glade_app_get_window (GladeApp* app);
LIBGLADEUI_API void glade_app_set_window (GladeApp* app, GtkWidget *window);
LIBGLADEUI_API GtkWidget* glade_app_get_window (GladeApp* app);
GladeEditor* glade_app_get_editor (GladeApp* app);
GladeWidgetClass* glade_app_get_add_class (GladeApp* app);
GladeWidgetClass* glade_app_get_alt_class (GladeApp* app);
GladePalette* glade_app_get_palette (GladeApp* app);
GladeClipboard* glade_app_get_clipboard (GladeApp* app);
GtkWidget* glade_app_get_clipboard_view (GladeApp* app);
LIBGLADEUI_API GladeEditor* glade_app_get_editor (GladeApp* app);
LIBGLADEUI_API GladeWidgetClass* glade_app_get_add_class (GladeApp* app);
LIBGLADEUI_API GladeWidgetClass* glade_app_get_alt_class (GladeApp* app);
LIBGLADEUI_API GladePalette* glade_app_get_palette (GladeApp* app);
LIBGLADEUI_API GladeClipboard* glade_app_get_clipboard (GladeApp* app);
LIBGLADEUI_API GtkWidget* glade_app_get_clipboard_view (GladeApp* app);
GladeProject* glade_app_get_active_project (GladeApp* app);
void glade_app_set_project (GladeApp *app, GladeProject *project);
void glade_app_add_project (GladeApp *app, GladeProject *project);
void glade_app_remove_project (GladeApp *app, GladeProject *project);
GList* glade_app_get_projects (GladeApp *app);
LIBGLADEUI_API GladeProject* glade_app_get_active_project (GladeApp* app);
LIBGLADEUI_API void glade_app_set_project (GladeApp *app, GladeProject *project);
LIBGLADEUI_API void glade_app_add_project (GladeApp *app, GladeProject *project);
LIBGLADEUI_API void glade_app_remove_project (GladeApp *app, GladeProject *project);
LIBGLADEUI_API GList* glade_app_get_projects (GladeApp *app);
void glade_app_add_project_view (GladeApp *app, GladeProjectView *view);
LIBGLADEUI_API void glade_app_add_project_view (GladeApp *app, GladeProjectView *view);
void glade_app_command_copy (GladeApp *app);
void glade_app_command_cut (GladeApp *app);
void glade_app_command_paste (GladeApp *app);
void glade_app_command_delete (GladeApp *app);
void glade_app_command_undo (GladeApp *app);
void glade_app_command_redo (GladeApp *app);
LIBGLADEUI_API void glade_app_command_copy (GladeApp *app);
LIBGLADEUI_API void glade_app_command_cut (GladeApp *app);
LIBGLADEUI_API void glade_app_command_paste (GladeApp *app);
LIBGLADEUI_API void glade_app_command_delete (GladeApp *app);
LIBGLADEUI_API void glade_app_command_undo (GladeApp *app);
LIBGLADEUI_API void glade_app_command_redo (GladeApp *app);
/* Default glade application */
void glade_default_app_set (GladeApp *app);
GtkWidget* glade_default_app_get_window (void);
GladeEditor* glade_default_app_get_editor (void);
GladeWidgetClass* glade_default_app_get_add_class (void);
GladeWidgetClass* glade_default_app_get_alt_class (void);
GladePalette* glade_default_app_get_palette (void);
GladeClipboard* glade_default_app_get_clipboard (void);
GList* glade_default_app_get_projects (void);
GladeProject* glade_default_app_get_active_project (void);
void glade_default_app_update_ui (void);
GList* glade_default_app_get_selection (void);
LIBGLADEUI_API void glade_default_app_set (GladeApp *app);
LIBGLADEUI_API GtkWidget* glade_default_app_get_window (void);
LIBGLADEUI_API GladeEditor* glade_default_app_get_editor (void);
LIBGLADEUI_API GladeWidgetClass* glade_default_app_get_add_class (void);
LIBGLADEUI_API GladeWidgetClass* glade_default_app_get_alt_class (void);
LIBGLADEUI_API GladePalette* glade_default_app_get_palette (void);
LIBGLADEUI_API GladeClipboard* glade_default_app_get_clipboard (void);
LIBGLADEUI_API GladeProject* glade_default_app_get_active_project (void);
LIBGLADEUI_API void glade_default_app_update_ui (void);
LIBGLADEUI_API GList* glade_default_app_get_selection (void);
/* These handle selection on a global scope and take care
* of multiple project logic.
*/
gboolean glade_default_app_is_selected (GObject *object);
void glade_default_app_selection_set (GObject *object,
gboolean emit_signal);
void glade_default_app_selection_add (GObject *object,
gboolean emit_signal);
void glade_default_app_selection_remove (GObject *object,
gboolean emit_signal);
void glade_default_app_selection_clear (gboolean emit_signal);
void glade_default_app_selection_changed(void);
LIBGLADEUI_API gboolean glade_default_app_is_selected (GObject *object);
LIBGLADEUI_API void glade_default_app_selection_set (GObject *object,
gboolean emit_signal);
LIBGLADEUI_API void glade_default_app_selection_add (GObject *object,
gboolean emit_signal);
LIBGLADEUI_API void glade_default_app_selection_remove (GObject *object,
gboolean emit_signal);
LIBGLADEUI_API void glade_default_app_selection_clear (gboolean emit_signal);
LIBGLADEUI_API void glade_default_app_selection_changed(void);
G_END_DECLS
......
......@@ -23,7 +23,7 @@
#include <gtk/gtk.h>
#include <string.h>
#include "glade-types.h"
#include "glade.h"
#include "glade-project.h"
#include "glade-xml-utils.h"
#include "glade-widget.h"
......@@ -36,7 +36,6 @@
#include "glade-placeholder.h"
#include "glade-clipboard.h"
#include "glade-signal.h"
#include "glade.h"
#include "glade-app.h"
typedef struct {
......
......@@ -39,31 +39,31 @@ struct _GladeCommandClass
};
GType glade_command_get_type (void);
void glade_command_undo (GladeProject *project);
void glade_command_redo (GladeProject *project);
void glade_command_set_property (GladeProperty *property, const GValue *value);
void glade_command_set_name (GladeWidget *glade_widget, const gchar *name);
void glade_command_delete (GList *widgets);
GladeWidget *glade_command_create (GladeWidgetClass *widget_class,
GladeWidget *parent,
GladePlaceholder *placeholder,
GladeProject *project);
void glade_command_cut (GList *widgets);
void glade_command_copy (GList *widgets);
void glade_command_paste (GList *widgets,
GladeWidget *parent,
GladePlaceholder *placeholder);
void glade_command_add_signal (GladeWidget *glade_widget, const GladeSignal *signal);
void glade_command_remove_signal (GladeWidget *glade_widget, const GladeSignal *signal);
void glade_command_change_signal (GladeWidget *glade_widget,
const GladeSignal *old,
const GladeSignal *new);
LIBGLADEUI_API GType glade_command_get_type (void);
LIBGLADEUI_API void glade_command_undo (GladeProject *project);
LIBGLADEUI_API void glade_command_redo (GladeProject *project);
LIBGLADEUI_API void glade_command_set_property (GladeProperty *property, const GValue *value);
LIBGLADEUI_API void glade_command_set_name (GladeWidget *glade_widget, const gchar *name);
LIBGLADEUI_API void glade_command_delete (GList *widgets);
LIBGLADEUI_API GladeWidget *glade_command_create (GladeWidgetClass *widget_class,
GladeWidget *parent,
GladePlaceholder *placeholder,
GladeProject *project);
LIBGLADEUI_API void glade_command_cut (GList *widgets);
LIBGLADEUI_API void glade_command_copy (GList *widgets);
LIBGLADEUI_API void glade_command_paste (GList *widgets,
GladeWidget *parent,
GladePlaceholder *placeholder);
LIBGLADEUI_API void glade_command_add_signal (GladeWidget *glade_widget, const GladeSignal *signal);
LIBGLADEUI_API void glade_command_remove_signal (GladeWidget *glade_widget, const GladeSignal *signal);
LIBGLADEUI_API void glade_command_change_signal (GladeWidget *glade_widget,
const GladeSignal *old,
const GladeSignal *new);
G_END_DECLS
......
......@@ -2,6 +2,6 @@
#ifndef __GLADE_DEBUG_H__
#define __GLADE_DEBUG_H__
void glade_setup_log_handlers (void);
LIBGLADEUI_API void glade_setup_log_handlers (void);
#endif /* __GLADE-DEBUG_H__ */
......@@ -183,17 +183,17 @@ struct _GladeEditorProperty
*/
};
GType glade_editor_get_type (void);
LIBGLADEUI_API GType glade_editor_get_type (void);
GladeEditor *glade_editor_new (void);
LIBGLADEUI_API GladeEditor *glade_editor_new (void);
void glade_editor_load_widget (GladeEditor *editor,
GladeWidget *widget);
void glade_editor_refresh (GladeEditor *editor);
void glade_editor_update_widget_name (GladeEditor *editor);
gboolean glade_editor_query_dialog (GladeEditor *editor,
GladeWidget *widget);
gboolean glade_editor_editable_property (GParamSpec *pspec);
LIBGLADEUI_API void glade_editor_load_widget (GladeEditor *editor,
GladeWidget *widget);
LIBGLADEUI_API void glade_editor_refresh (GladeEditor *editor);
LIBGLADEUI_API void glade_editor_update_widget_name (GladeEditor *editor);
LIBGLADEUI_API gboolean glade_editor_query_dialog (GladeEditor *editor,
GladeWidget *widget);
LIBGLADEUI_API gboolean glade_editor_editable_property (GParamSpec *pspec);
G_END_DECLS
......
......@@ -24,6 +24,7 @@
#include <stdlib.h>
#include <gtk/gtk.h>
#include "glade.h"
#include "glade-plugin.h"
#include "fixed_bg.xpm"
......
......@@ -68,11 +68,11 @@ struct _GladePaletteClass
void (*catalog_change) (GladePalette *palette);
};
GType glade_palette_get_type (void);
LIBGLADEUI_API GType glade_palette_get_type (void);
GladePalette *glade_palette_new (GList *catalogs);
LIBGLADEUI_API GladePalette *glade_palette_new (GList *catalogs);
void glade_palette_unselect_widget (GladePalette *palette);
LIBGLADEUI_API void glade_palette_unselect_widget (GladePalette *palette);
G_END_DECLS
......
#!/bin/sh -e
prefix="@prefix@"
exec_prefix="@exec_prefix@"
sysconfdir="@sysconfdir@"
datadir="@datadir@"
libdir="@libdir@"
PACKAGE="@PACKAGE@"
DATADIRNAME="@DATADIRNAME@"
glade_version="@glade_version@"
glade_datadir="@glade_datadir@"
glade_libdir="@glade_libdir@"
glade_catalogsdir="@glade_catalogsdir@"
glade_modulesdir="@glade_modulesdir@"
glade_pixmapsdir="@glade_pixmapsdir@"
glade_icondir="@glade_icondir@"
glade_localedir="@glade_localedir@"
cat <<EOF
/* This file has been automatically generated. Do not edit. */
#ifndef GLADE_PATHS_H
#define GLADE_PATHS_H
#define GLADE_VERSION "$glade_version"
#define GLADE_DATADIR "$glade_datadir"
#define GLADE_LIBDIR "$glade_libdir"
#define GLADE_CATALOGSDIR "$glade_catalogsdir"
#define GLADE_MODULESDIR "$glade_modulesdir"
#define GLADE_PIXMAPSDIR "$glade_pixmapsdir"
#define GLADE_ICONDIR "$glade_icondir"
#define GLADE_LOCALEDIR "$glade_localedir"
#endif /* GLADE_PATHS_H */
EOF