]> git.sur5r.net Git - kconfig-frontends/blob - frontends/gconf/gconf.c.patch
7ce758623f180d35663b10321dd93a528ed5f081
[kconfig-frontends] / frontends / gconf / gconf.c.patch
1 diff --git a/frontends/gconf/gconf.c b/frontends/gconf/gconf.c
2 --- a/frontends/gconf/gconf.c
3 +++ b/frontends/gconf/gconf.c
4 @@ -11,7 +11,12 @@
5  #endif
6  
7  #include "lkc.h"
8 -#include "images.c"
9 +#define WANTS_xpm_single_view
10 +#define WANTS_xpm_split_view
11 +#define WANTS_xpm_tree_view
12 +#define WANTS_xpm_menu
13 +#define WANTS_xpm_void
14 +#include "images.h"
15  
16  #include <glade/glade.h>
17  #include <gtk/gtk.h>
18 @@ -1468,8 +1473,10 @@
19  int main(int ac, char *av[])
20  {
21         const char *name;
22 +#if 0
23         char *env;
24 +#endif
25 -       gchar *glade_file;
26 +       gchar *glade_file = GUI_PATH;
27  
28         bindtextdomain(PACKAGE, LOCALEDIR);
29         bind_textdomain_codeset(PACKAGE, "UTF-8");
30 @@ -1483,6 +1490,7 @@
31         //add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps");
32         //add_pixmap_directory (PACKAGE_SOURCE_DIR "/pixmaps");
33  
34 +#if 0
35         /* Determine GUI path */
36         env = getenv(SRCTREE);
37         if (env)
38 @@ -1491,6 +1499,7 @@
39                 glade_file = g_strconcat(av[0], ".glade", NULL);
40         else
41                 glade_file = g_strconcat(g_get_current_dir(), "/", av[0], ".glade", NULL);
42 +#endif
43  
44         /* Conf stuffs */
45         if (ac > 1 && av[1][0] == '-') {