-LIBS = $(GTKCALEX_LIBS)
+LIBS = $(GTKCALEX_LIBS) \
+ -export-dynamic
AM_CPPFLAGS = $(GTKCALEX_CFLAGS) \
- -I$(top_srcdir)/src
+ -I$(top_srcdir)/src \
+ -DGUIDIR="\"@abs_builddir@\""
libgtkcalendarex = $(top_builddir)/src/libgtkcalendarex.la
test
LDADD = $(libgtkcalendarex)
+
+EXTRA_DIST = \
+ test.ui
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
+#include <gtk/gtk.h>
+
#include <libgtkcalendarex.h>
int
main (int argc, char **argv)
{
+ GtkBuilder *gtkbuilder;
+ GError *error;
+ GtkWidget *w;
+
+ gtk_init (&argc, &argv);
+
+ gtkbuilder = gtk_builder_new ();
+ error = NULL;
+ if (!gtk_builder_add_from_file (gtkbuilder, GUIDIR "/test.ui", &error))
+ {
+ g_error ("Error on opening gui: %s.", error != NULL && error->message != NULL ? error->message : "no details");
+ return 0;
+ }
+
+ w = GTK_WIDGET (gtk_builder_get_object (gtkbuilder, "window1"));
+
+ gtk_builder_connect_signals (gtkbuilder, NULL);
+
+ gtk_widget_show_all (w);
+
+ gtk_main ();
+
return 0;
}
--- /dev/null
+<?xml version="1.0"?>
+<interface>
+ <requires lib="gtk+" version="2.16"/>
+ <!-- interface-naming-policy project-wide -->
+ <object class="GtkWindow" id="window1">
+ <property name="default_width">550</property>
+ <property name="default_height">400</property>
+ <signal name="delete_event" handler="gtk_main_quit"/>
+ <child>
+ <placeholder/>
+ </child>
+ </object>
+</interface>