diff options
Diffstat (limited to 'meta-moblin/packages/mutter-moblin')
-rw-r--r-- | meta-moblin/packages/mutter-moblin/files/background-tile.png | bin | 0 -> 194031 bytes | |||
-rw-r--r-- | meta-moblin/packages/mutter-moblin/files/startup-notify.patch | 51 | ||||
-rw-r--r-- | meta-moblin/packages/mutter-moblin/mutter-moblin_git.bb | 37 |
3 files changed, 88 insertions, 0 deletions
diff --git a/meta-moblin/packages/mutter-moblin/files/background-tile.png b/meta-moblin/packages/mutter-moblin/files/background-tile.png Binary files differnew file mode 100644 index 000000000..b71a55b67 --- /dev/null +++ b/meta-moblin/packages/mutter-moblin/files/background-tile.png diff --git a/meta-moblin/packages/mutter-moblin/files/startup-notify.patch b/meta-moblin/packages/mutter-moblin/files/startup-notify.patch new file mode 100644 index 000000000..72ad42cd9 --- /dev/null +++ b/meta-moblin/packages/mutter-moblin/files/startup-notify.patch @@ -0,0 +1,51 @@ +Index: git/src/mnb-drop-down.c +=================================================================== +--- git.orig/src/mnb-drop-down.c 2009-06-09 16:38:46.000000000 +0100 ++++ git/src/mnb-drop-down.c 2009-06-09 16:41:21.000000000 +0100 +@@ -68,6 +68,37 @@ + gboolean hide_toolbar : 1; + }; + ++ ++#include <dbus/dbus.h> ++ ++static gboolean ++emit_loaded_signal (gpointer user_data) ++{ ++ DBusError error = DBUS_ERROR_INIT; ++ DBusConnection *conn; ++ DBusMessage *msg; ++ ++ conn = dbus_bus_get (DBUS_BUS_SYSTEM, &error); ++ if (!conn) { ++ g_printerr ("Cannot connect to system bus: %s", error.message); ++ dbus_error_free (&error); ++ return FALSE; ++ } ++ ++ msg = dbus_message_new_signal ("/", "org.matchbox_project.desktop", "Loaded"); ++ ++ dbus_connection_send (conn, msg, NULL); ++ dbus_message_unref (msg); ++ ++ /* Flush explicitly because we're too lazy to integrate DBus into the main ++ loop. We're only sending a signal, so if we got as far as here it's ++ unlikely to block. */ ++ dbus_connection_flush (conn); ++ dbus_connection_unref (conn); ++ ++ return FALSE; ++} ++ + static void + mnb_drop_down_get_property (GObject *object, guint property_id, + GValue *value, GParamSpec *pspec) +@@ -137,6 +168,8 @@ + + g_signal_emit (actor, dropdown_signals[SHOW_COMPLETED], 0); + g_object_unref (actor); ++ ++ g_idle_add (emit_loaded_signal, NULL); + } + + static void diff --git a/meta-moblin/packages/mutter-moblin/mutter-moblin_git.bb b/meta-moblin/packages/mutter-moblin/mutter-moblin_git.bb new file mode 100644 index 000000000..37d5b2158 --- /dev/null +++ b/meta-moblin/packages/mutter-moblin/mutter-moblin_git.bb @@ -0,0 +1,37 @@ +DESCRIPTION = "A Moblin specific plugin for the Mutter composite window manager" +SECTION = "x11/wm" +LICENSE = "GPLv3" +DEPENDS = "nbtk mutter gnome-menus mojito libjana anerley clutter-mozembed" +PV = "2.25.2+git${SRCPV}" +PR = "r3" + +SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git \ + file://startup-notify.patch;patch=1 \ + file://background-tile.png" + +FILES_${PN} += "${libdir}/metacity/plugins/clutter/*.so* ${datadir}/mutter-moblin-netbook-plugin" +FILES_${PN}-dbg += "${libdir}/metacity/plugins/clutter/.debug/*" + +S = "${WORKDIR}/git" + +ASNEEDED = "" + +EXTRA_OECONF = "--enable-ahoghill --enable-netpanel --enable-people" + +inherit autotools_stage + +do_configure_prepend () { + rm -f ${S}/build/autotools/gtk-doc.m4 + cp ${WORKDIR}/background-tile.png ${S}/data/theme/panel/ +} + +pkg_postinst_${PN} () { +#!/bin/sh -e +if [ "x$D" != "x" ]; then + exit 1 +fi + +. ${sysconfdir}/init.d/functions + +gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type list --list-type string --set /apps/metacity/general/clutter_plugins '[moblin-netbook]' +} |