PACKAGE_STRING='champlain 0.1'
PACKAGE_BUGREPORT='pierre-luc@squidy.info'
-ac_unique_file="src/champlain.c"
+ac_unique_file="src/champlain_widget.h"
ac_subst_vars='SHELL
PATH_SEPARATOR
PACKAGE_NAME
-
+
case $enable_ltdl_convenience in
pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS"
else
if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2
+ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
\"") >&5
- ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.2
+ ($PKG_CONFIG --exists --print-errors " glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
- pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.2
+ pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags " glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
" 2>/dev/null`
else
pkg_failed=yes
pkg_cv_DEPS_LIBS="$DEPS_LIBS"
else
if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2
+ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
\"") >&5
- ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.2
+ ($PKG_CONFIG --exists --print-errors " glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
- pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.2
+ pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs " glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
" 2>/dev/null`
else
pkg_failed=yes
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.2
+ DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
"`
else
- DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.2
+ DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
"`
fi
# Put the nasty error message in config.log where it belongs
echo "$DEPS_PKG_ERRORS" >&5
- { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0 >= 2.2
+ { { echo "$as_me:$LINENO: error: Package requirements ( glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
) were not met:
$DEPS_PKG_ERRORS
and DEPS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
-echo "$as_me: error: Package requirements (glib-2.0 >= 2.2
+echo "$as_me: error: Package requirements ( glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
) were not met:
$DEPS_PKG_ERRORS
PACKAGE_STRING='champlain 0.1'
PACKAGE_BUGREPORT='pierre-luc@squidy.info'
-ac_unique_file="src/champlain.c"
+ac_unique_file="src/champlain_widget.h"
ac_subst_vars='SHELL
PATH_SEPARATOR
PACKAGE_NAME
-
+
case $enable_ltdl_convenience in
pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS"
else
if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2
+ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
\"") >&5
- ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.2
+ ($PKG_CONFIG --exists --print-errors " glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
- pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.2
+ pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags " glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
" 2>/dev/null`
else
pkg_failed=yes
pkg_cv_DEPS_LIBS="$DEPS_LIBS"
else
if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2
+ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
\"") >&5
- ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.2
+ ($PKG_CONFIG --exists --print-errors " glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
- pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.2
+ pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs " glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
" 2>/dev/null`
else
pkg_failed=yes
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.2
+ DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
"`
else
- DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.2
+ DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
"`
fi
# Put the nasty error message in config.log where it belongs
echo "$DEPS_PKG_ERRORS" >&5
- { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0 >= 2.2
+ { { echo "$as_me:$LINENO: error: Package requirements ( glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
) were not met:
$DEPS_PKG_ERRORS
and DEPS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
-echo "$as_me: error: Package requirements (glib-2.0 >= 2.2
+echo "$as_me: error: Package requirements ( glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
) were not met:
$DEPS_PKG_ERRORS
m4trace:configure.ac:21: -1- AC_SUBST([DEPS_LIBS])
m4trace:configure.ac:21: -1- AC_SUBST_TRACE([DEPS_LIBS])
m4trace:configure.ac:21: -1- m4_pattern_allow([^DEPS_LIBS$])
-m4trace:configure.ac:31: -1- AC_CONFIG_FILES([Makefile
+m4trace:configure.ac:33: -1- AC_CONFIG_FILES([Makefile
src/Makefile])
-m4trace:configure.ac:33: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
-m4trace:configure.ac:33: -1- AC_SUBST_TRACE([LIB@&t@OBJS])
-m4trace:configure.ac:33: -1- m4_pattern_allow([^LIB@&t@OBJS$])
-m4trace:configure.ac:33: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
-m4trace:configure.ac:33: -1- AC_SUBST_TRACE([LTLIBOBJS])
-m4trace:configure.ac:33: -1- m4_pattern_allow([^LTLIBOBJS$])
-m4trace:configure.ac:33: -1- AC_SUBST_TRACE([top_builddir])
-m4trace:configure.ac:33: -1- AC_SUBST_TRACE([srcdir])
-m4trace:configure.ac:33: -1- AC_SUBST_TRACE([abs_srcdir])
-m4trace:configure.ac:33: -1- AC_SUBST_TRACE([top_srcdir])
-m4trace:configure.ac:33: -1- AC_SUBST_TRACE([abs_top_srcdir])
-m4trace:configure.ac:33: -1- AC_SUBST_TRACE([builddir])
-m4trace:configure.ac:33: -1- AC_SUBST_TRACE([abs_builddir])
-m4trace:configure.ac:33: -1- AC_SUBST_TRACE([abs_top_builddir])
-m4trace:configure.ac:33: -1- AC_SUBST_TRACE([INSTALL])
+m4trace:configure.ac:35: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
+m4trace:configure.ac:35: -1- AC_SUBST_TRACE([LIB@&t@OBJS])
+m4trace:configure.ac:35: -1- m4_pattern_allow([^LIB@&t@OBJS$])
+m4trace:configure.ac:35: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
+m4trace:configure.ac:35: -1- AC_SUBST_TRACE([LTLIBOBJS])
+m4trace:configure.ac:35: -1- m4_pattern_allow([^LTLIBOBJS$])
+m4trace:configure.ac:35: -1- AC_SUBST_TRACE([top_builddir])
+m4trace:configure.ac:35: -1- AC_SUBST_TRACE([srcdir])
+m4trace:configure.ac:35: -1- AC_SUBST_TRACE([abs_srcdir])
+m4trace:configure.ac:35: -1- AC_SUBST_TRACE([top_srcdir])
+m4trace:configure.ac:35: -1- AC_SUBST_TRACE([abs_top_srcdir])
+m4trace:configure.ac:35: -1- AC_SUBST_TRACE([builddir])
+m4trace:configure.ac:35: -1- AC_SUBST_TRACE([abs_builddir])
+m4trace:configure.ac:35: -1- AC_SUBST_TRACE([abs_top_builddir])
+m4trace:configure.ac:35: -1- AC_SUBST_TRACE([INSTALL])
m4trace:configure.ac:14: -1- m4_pattern_allow([^am__fastdepCC_FALSE$])
m4trace:configure.ac:18: -1- m4_pattern_allow([^DEPS_CFLAGS$])
m4trace:configure.ac:19: -1- m4_pattern_allow([^DEPS_LIBS$])
-m4trace:configure.ac:21: -1- PKG_CHECK_MODULES([DEPS], [glib-2.0 >= 2.2
+m4trace:configure.ac:21: -1- PKG_CHECK_MODULES([DEPS], [ glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
])
m4trace:configure.ac:21: -1- PKG_PROG_PKG_CONFIG
m4trace:configure.ac:21: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$])
m4trace:configure.ac:21: -1- m4_pattern_allow([^PKG_CONFIG$])
m4trace:configure.ac:21: -1- m4_pattern_allow([^DEPS_CFLAGS$])
m4trace:configure.ac:21: -1- m4_pattern_allow([^DEPS_LIBS$])
-m4trace:configure.ac:21: -1- PKG_CHECK_EXISTS([glib-2.0 >= 2.2
-], [pkg_cv_[]DEPS_CFLAGS=`$PKG_CONFIG --[]cflags "glib-2.0 >= 2.2
+m4trace:configure.ac:21: -1- PKG_CHECK_EXISTS([ glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
+], [pkg_cv_[]DEPS_CFLAGS=`$PKG_CONFIG --[]cflags " glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
" 2>/dev/null`], [pkg_failed=yes])
-m4trace:configure.ac:21: -1- PKG_CHECK_EXISTS([glib-2.0 >= 2.2
-], [pkg_cv_[]DEPS_LIBS=`$PKG_CONFIG --[]libs "glib-2.0 >= 2.2
+m4trace:configure.ac:21: -1- PKG_CHECK_EXISTS([ glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
+], [pkg_cv_[]DEPS_LIBS=`$PKG_CONFIG --[]libs " glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
" 2>/dev/null`], [pkg_failed=yes])
m4trace:configure.ac:21: -1- _PKG_SHORT_ERRORS_SUPPORTED
-m4trace:configure.ac:33: -1- m4_pattern_allow([^LIB@&t@OBJS$])
-m4trace:configure.ac:33: -1- m4_pattern_allow([^LTLIBOBJS$])
-m4trace:configure.ac:33: -1- _AC_AM_CONFIG_HEADER_HOOK([$ac_file])
-m4trace:configure.ac:33: -1- _AM_OUTPUT_DEPENDENCY_COMMANDS
+m4trace:configure.ac:35: -1- m4_pattern_allow([^LIB@&t@OBJS$])
+m4trace:configure.ac:35: -1- m4_pattern_allow([^LTLIBOBJS$])
+m4trace:configure.ac:35: -1- _AC_AM_CONFIG_HEADER_HOOK([$ac_file])
+m4trace:configure.ac:35: -1- _AM_OUTPUT_DEPENDENCY_COMMANDS
PACKAGE_STRING='champlain 0.1'
PACKAGE_BUGREPORT='pierre-luc@squidy.info'
-ac_unique_file="src/champlain.c"
+ac_unique_file="src/champlain_widget.h"
ac_subst_vars='SHELL
PATH_SEPARATOR
PACKAGE_NAME
pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS"
else
if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2
+ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
\"") >&5
- ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.2
+ ($PKG_CONFIG --exists --print-errors " glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
- pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.2
+ pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags " glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
" 2>/dev/null`
else
pkg_failed=yes
pkg_cv_DEPS_LIBS="$DEPS_LIBS"
else
if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2
+ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
\"") >&5
- ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.2
+ ($PKG_CONFIG --exists --print-errors " glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
- pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.2
+ pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs " glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
" 2>/dev/null`
else
pkg_failed=yes
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.2
+ DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
"`
else
- DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.2
+ DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
"`
fi
# Put the nasty error message in config.log where it belongs
echo "$DEPS_PKG_ERRORS" >&5
- { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0 >= 2.2
+ { { echo "$as_me:$LINENO: error: Package requirements ( glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
) were not met:
$DEPS_PKG_ERRORS
and DEPS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
-echo "$as_me: error: Package requirements (glib-2.0 >= 2.2
+echo "$as_me: error: Package requirements ( glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2
) were not met:
$DEPS_PKG_ERRORS
AC_PREREQ(2.61)
AC_INIT(champlain, 0.1, pierre-luc@squidy.info)
-AC_CONFIG_SRCDIR([src/champlain.c])
+AC_CONFIG_SRCDIR([src/champlain_widget.h])
AC_CONFIG_HEADER([config.h])
-AM_INIT_AUTOMAKE
+AM_INIT_AUTOMAKE
AC_LIBTOOL_DLOPEN
AC_LIBLTDL_CONVENIENCE
AC_SUBST(DEPS_LIBS)
PKG_CHECK_MODULES(DEPS,
- glib-2.0 >= 2.2
+ [ glib-2.0 >= 2.2,
+ gobject-2.0 >= 2.0,
+ gtk+-2.0 >= 2.2 ]
)
# Checks for header files.
bin_PROGRAMS = champlain
-champlain_SOURCES = champlain.c
+champlain_SOURCES = champlain_widget.c launcher.c
-sofa_LDADD = $(DEPS_LIBS) libsofa.la
+champlain_LDADD = $(DEPS_LIBS)
AM_CPPFLAGS = $(DEPS_CFLAGS)
am__installdirs = "$(DESTDIR)$(bindir)"
binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
PROGRAMS = $(bin_PROGRAMS)
-am_champlain_OBJECTS = champlain.$(OBJEXT)
+am_champlain_OBJECTS = champlain_widget.$(OBJEXT) launcher.$(OBJEXT)
champlain_OBJECTS = $(am_champlain_OBJECTS)
-champlain_LDADD = $(LDADD)
+am__DEPENDENCIES_1 =
+champlain_DEPENDENCIES = $(am__DEPENDENCIES_1)
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
-champlain_SOURCES = champlain.c
-sofa_LDADD = $(DEPS_LIBS) libsofa.la
+champlain_SOURCES = champlain_widget.c launcher.c
+champlain_LDADD = $(DEPS_LIBS)
AM_CPPFLAGS = $(DEPS_CFLAGS)
all: all-am
distclean-compile:
-rm -f *.tab.c
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/champlain.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/champlain_widget.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/launcher.Po@am__quote@
.c.o:
@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
--- /dev/null
+/*
+ * Copyright (C) 2008 Pierre-Luc Beaudoin <pierre-luc@squidy.info>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifndef CHAMPLAIN_DEFINES_H
+#define CHAMPLAIN_DEFINES_H
+
+#define CHAMPLAIN_API __attribute__((visibility("default")))
+#define CHAMPLAIN_OBSOLETE_API CHAMPLAIN_API __attribute__((deprecated))
+
+#endif
#include "config.h"
-#include "champlain.h"
+#include "champlain_defines.h"
#include "champlain_widget.h"
#include <stdio.h>
-
-int main(int argc, char* argv[])
-{
- printf("Hello, world!\n");
-
- return 0;
-}
+#include <glib.h>
+#include <glib-object.h>
enum {
/* normal signals */
G_DEFINE_TYPE(ChamplainWidget, champlain_widget, GTK_TYPE_CONTAINER)
+static void
+champlain_widget_class_init(ChamplainWidgetClass* champlainWidgetClass)
+{
+}
+
+static void champlain_widget_init(ChamplainWidget* champlainWidget)
+{
+
+}
* Boston, MA 02110-1301, USA.
*/
-#ifndef CHAMPLAIN_H
-#define CHAMPLAIN_H
+#ifndef CHAMPLAIN_WIDGET_H
+#define CHAMPLAIN_WIDGET_H
+
+#include <champlain_defines.h>
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
-#include <gobjects.h>
G_BEGIN_DECLS
#define CHAMPLAIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), CHAMPLAIN_TYPE_WIDGET, ChamplainWidgetClass))
typedef struct _ChamplainWidgetPrivate ChamplainWidgetPrivate;
+typedef struct _ChamplainWidget ChamplainWidget;
+typedef struct _ChamplainWidgetClass ChamplainWidgetClass;
struct _ChamplainWidget {
GtkContainer parent_instance;
void (* copy_clipboard) (ChamplainWidget *widget);
void (* paste_clipboard) (ChamplainWidget *widget);
- /*
- * internal
- */
- void (* set_scroll_adjustments) (ChamplainWidget *widget,
- GtkAdjustment *hadjustment,
- GtkAdjustment *vadjustment);
};
CHAMPLAIN_API GType
champlain_widget_get_type (void);
-CHAMPLAIN_API GtkWidget *
+CHAMPLAIN_API ChamplainWidget *
champlain_widget_new (void);
#endif
--- /dev/null
+/*
+ * Copyright (C) 2008 Pierre-Luc Beaudoin <pierre-luc@squidy.info>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#include <stdio.h>
+
+int main(int argc, char* argv[])
+{
+ printf("Hello, world!\n");
+
+ return 0;
+}
+