summaryrefslogtreecommitdiff
path: root/recipes/networkmanager/files/applet-no-gnome.diff
blob: e098e8c9edd5ef81cff69d1103a3f58cc43af286 (plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
 configure.ac |    3 +--
 src/main.c   |    8 ++++++++
 2 files changed, 9 insertions(+), 2 deletions(-)

Index: src/main.c
===================================================================
--- src/main.c.orig	2007-09-26 10:39:16.000000000 +0100
+++ src/main.c	2007-09-26 10:39:37.000000000 +0100
@@ -27,7 +27,9 @@
 
 #include <string.h>
 #include <gtk/gtk.h>
+#if 0
 #include <libgnomeui/libgnomeui.h>
+#endif
 #include <glib/gi18n-lib.h>
 
 #include "applet.h"
@@ -36,11 +38,15 @@
 int main (int argc, char *argv[])
 {
 	NMApplet * applet;
+#if 0
 	GnomeProgram * program;
 
 	program = gnome_program_init ("nm-applet", VERSION, LIBGNOMEUI_MODULE,
 				      argc, argv, 
 				      GNOME_PARAM_NONE, GNOME_PARAM_NONE);
+#else
+	gtk_init (&argc, &argv);
+#endif
 
 	bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
 	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
@@ -53,7 +59,9 @@ int main (int argc, char *argv[])
 	gtk_main ();
 
 	g_object_unref (applet);
+#if 0
 	g_object_unref (program);
+#endif
 
 	exit (0);
 }
Index: configure.ac
===================================================================
--- configure.ac.orig	2007-09-26 10:39:30.000000000 +0100
+++ configure.ac	2007-09-26 10:39:37.000000000 +0100
@@ -65,8 +65,7 @@ PKG_CHECK_MODULES(NMA,
 		 gtk+-2.0 >= 2.6
 		 libglade-2.0
 		 gconf-2.0
-		 gnome-keyring-1
-		 libgnomeui-2.0])
+		 gnome-keyring-1])
 
 ##### Find out the version of DBUS we're using
 dbus_version=`pkg-config --modversion dbus-1`