File: 01_libglage_example.patch

package info (click to toggle)
libgtkdatabox 1%3A0.9.1.1-3.1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,616 kB
  • ctags: 987
  • sloc: sh: 9,746; ansic: 6,285; xml: 3,008; makefile: 181
file content (39 lines) | stat: -rw-r--r-- 839 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--- libgtkdatabox-0.9.0.1.orig/examples/basics_libglade.c
+++ libgtkdatabox-0.9.0.1/examples/basics_libglade.c
@@ -29,19 +29,13 @@
 #include <gtkdatabox_cross_simple.h>
 #include <math.h>
 
-#include <config.h>
-
-#ifdef USE_LIBGLADE
 #include <glade/glade.h>
-#endif
 
 #define POINTS 2000
 #define STEPS 50
 #define BARS 25
 #define MARKER 10
 
-#ifdef USE_LIBGLADE
-
 /*----------------------------------------------------------------
  *  databox basics
  *----------------------------------------------------------------*/
@@ -207,16 +201,3 @@
 
    return 0;
 }
-
-#else /* USE_LIBGLADE */
-
-/* Build some dummy program if libglade is not used. */
-gint
-main ()
-{
-   g_printf
-      ("This program does nothing useful unless you call the configure script with --enable-libglade\n");
-   return 0;
-}
-
-#endif /* USE_LIBGLADE */