summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/gtkIvyButton.c6
-rw-r--r--examples/motifButtonIvy.c4
-rw-r--r--examples/testUnbind.c11
3 files changed, 13 insertions, 8 deletions
diff --git a/examples/gtkIvyButton.c b/examples/gtkIvyButton.c
index aba5ea7..e4c7a1a 100644
--- a/examples/gtkIvyButton.c
+++ b/examples/gtkIvyButton.c
@@ -1,8 +1,8 @@
-#include <gtk/gtk.h>
-#include <ivy.h>
-#include <ivyglibloop.h>
#include <stdio.h>
#include <stdlib.h>
+#include <gtk/gtk.h>
+#include <Ivy/ivy.h>
+#include <Ivy/ivyglibloop.h>
diff --git a/examples/motifButtonIvy.c b/examples/motifButtonIvy.c
index 084359f..cebc292 100644
--- a/examples/motifButtonIvy.c
+++ b/examples/motifButtonIvy.c
@@ -2,8 +2,8 @@
#include <stdio.h>
#include <strings.h>
#include <Xm/PushB.h>
-#include <ivy.h>
-#include <ivyxtloop.h>
+#include <Ivy/ivy.h>
+#include <Ivy/ivyxtloop.h>
void myMotifCallback(Widget w,XtPointer client_d,XtPointer call_d){
// sends the string on the bus
diff --git a/examples/testUnbind.c b/examples/testUnbind.c
index 16a4a8a..2cc7fdd 100644
--- a/examples/testUnbind.c
+++ b/examples/testUnbind.c
@@ -13,8 +13,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <ivyloop.h>
-#include <ivy.h>
+#include <Ivy/ivyloop.h>
+#include <Ivy/ivy.h>
+#include <Ivy/version.h>
#define REGEXP "^ub"
void Callback (IvyClientPtr app, void *user_data, int argc, char *argv[]) {
@@ -30,6 +31,10 @@ int main(int argc, char *argv[]) {
ptr=IvyBindMsg(Callback,&ptr,REGEXP);
printf("bound to %s\n",REGEXP);
IvyStart(NULL);
- IvyMainLoop(0);
+#if (IVYMAJOR_VERSION == 3) && (IVYMINOR_VERSION < 9)
+ IvyMainLoop(NULL, NULL);
+#else
+ IvyMainLoop();
+#endif
return 0;
}