1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

Add network-manager-applet

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2775 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Ross Burton
2007-09-24 14:07:28 +00:00
parent c41fcd6709
commit c0be929c80
2 changed files with 83 additions and 0 deletions
@@ -0,0 +1,66 @@
Index: src/main.c
===================================================================
--- src/main.c (revision 193)
+++ src/main.c (working copy)
@@ -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 @@
gtk_main ();
g_object_unref (applet);
+#if 0
g_object_unref (program);
+#endif
exit (0);
}
Index: configure.ac
===================================================================
--- configure.ac (revision 193)
+++ configure.ac (working copy)
@@ -65,8 +65,7 @@
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`
@@ -124,11 +123,6 @@
fi
fi
-PKG_CHECK_EXISTS([libgnome-2.0 >= 2.14.0],[have_libgnome_2_14=yes],[have_libgnome_2_14=no])
-if test "$have_libgnome_2_14" = "yes"; then
- AC_DEFINE([HAVE_LIBGNOME_2_14],[1],[Define if we have libgnome 2.14])
-fi
-
AM_CONDITIONAL(WITH_NOTIFY, test x"$enable_notify" != xno) # can't do it from inside 'if'
AM_CONDITIONAL([HAVE_GTK_2_10],[test "$have_gtk_2_10" = "yes"])
@@ -0,0 +1,17 @@
DESCRIPTION = "GTK+ applet for NetworkManager"
LICENSE = "GPL"
DEPENDS = "networkmanager dbus-glib libglade gconf gnome-keyring"
#TODO DEPENDS libnotify
RDEPENDS = "networkmanager"
inherit gnome gtk-icon-cache
SRC_URI = "svn://svn.gnome.org/svn/network-manager-applet/;module=trunk;proto=http \
file://applet-no-gnome.diff;patch=1;pnum=0"
S = "${WORKDIR}/trunk"
FILES_${PN} += "${datadir}/nm-applet/ \
${datadir}/gnome-vpn-properties/ \
${datadir}/gnome/autostart/ \
"