diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | trace-graph.c | 3 | ||||
-rw-r--r-- | trace-view.c | 4 |
3 files changed, 4 insertions, 5 deletions
@@ -5,7 +5,7 @@ INCLUDES = -I. -I/usr/local/include | |||
5 | 5 | ||
6 | LIBS = -L. -ltracecmd -ldl | 6 | LIBS = -L. -ltracecmd -ldl |
7 | 7 | ||
8 | PACKAGES= gtk+-2.0 libgnome-2.0 libgnomecanvas-2.0 libgnomeui-2.0 libxml-2.0 | 8 | PACKAGES= gtk+-2.0 |
9 | 9 | ||
10 | CONFIG_FLAGS = $(shell pkg-config --cflags $(PACKAGES)) \ | 10 | CONFIG_FLAGS = $(shell pkg-config --cflags $(PACKAGES)) \ |
11 | -DGTK_VERSION=$(shell pkg-config --modversion gtk+-2.0 | \ | 11 | -DGTK_VERSION=$(shell pkg-config --modversion gtk+-2.0 | \ |
diff --git a/trace-graph.c b/trace-graph.c index e6a4e5c..3525d0d 100644 --- a/trace-graph.c +++ b/trace-graph.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <stdarg.h> | 23 | #include <stdarg.h> |
24 | #include <fcntl.h> | 24 | #include <fcntl.h> |
25 | #include <unistd.h> | 25 | #include <unistd.h> |
26 | #include <gnome.h> | ||
27 | #include <gtk/gtk.h> | 26 | #include <gtk/gtk.h> |
28 | 27 | ||
29 | #include "trace-compat.h" | 28 | #include "trace-compat.h" |
@@ -1133,7 +1132,7 @@ void trace_graph(int argc, char **argv) | |||
1133 | if (tracecmd_init_data(handle) < 0) | 1132 | if (tracecmd_init_data(handle) < 0) |
1134 | die("failed to init data"); | 1133 | die("failed to init data"); |
1135 | 1134 | ||
1136 | gnome_init("trace-cmd", version, argc, argv); | 1135 | gtk_init(&argc, &argv); |
1137 | 1136 | ||
1138 | /* --- Main window --- */ | 1137 | /* --- Main window --- */ |
1139 | 1138 | ||
diff --git a/trace-view.c b/trace-view.c index f54c0dd..1a372a4 100644 --- a/trace-view.c +++ b/trace-view.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include <stdio.h> | 21 | #include <stdio.h> |
22 | #include <string.h> | 22 | #include <string.h> |
23 | #include <stdarg.h> | 23 | #include <stdarg.h> |
24 | #include <gnome.h> | 24 | #include <gtk/gtk.h> |
25 | 25 | ||
26 | #include "trace-cmd.h" | 26 | #include "trace-cmd.h" |
27 | #include "trace-local.h" | 27 | #include "trace-local.h" |
@@ -234,7 +234,7 @@ void trace_view(int argc, char **argv) | |||
234 | if (tracecmd_init_data(handle) < 0) | 234 | if (tracecmd_init_data(handle) < 0) |
235 | die("failed to init data"); | 235 | die("failed to init data"); |
236 | 236 | ||
237 | gnome_init("trace-cmd", version, argc, argv); | 237 | gtk_init(&argc, &argv); |
238 | 238 | ||
239 | /* --- Main window --- */ | 239 | /* --- Main window --- */ |
240 | 240 | ||