summaryrefslogtreecommitdiff
path: root/extra/appmenu-qt
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2013-01-20 15:38:15 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2013-01-20 15:38:15 -0300
commitc28258d27bd9d58760eb647f912bb98a536aa753 (patch)
tree261e61872b291c02790e5483c769710942547731 /extra/appmenu-qt
parenteefed5e3db847eccce0207f89c7430b9ec4994b7 (diff)
parent949fa4e5ed405aaddcebff7e21008f03cdffa580 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/erlang/PKGBUILD community/fcitx-mozc/PKGBUILD community/geda-gaf/PKGBUILD community/mplayer2/PKGBUILD community/parcellite/PKGBUILD community/python2-pytables/PKGBUILD community/ruby-gtk2/PKGBUILD core/kbd/PKGBUILD core/systemd/PKGBUILD extra/calligra/PKGBUILD extra/dmapi/PKGBUILD extra/gstreamer0.10-ugly/PKGBUILD extra/gvfs/PKGBUILD extra/libcdio/PKGBUILD extra/libtorrent-rasterbar/PKGBUILD extra/llvm/PKGBUILD extra/nx/PKGBUILD extra/ocaml/PKGBUILD extra/php-xcache/PKGBUILD extra/qtwebkit/PKGBUILD extra/vcdimager/PKGBUILD extra/w3m/PKGBUILD extra/xorg-bdftopcf/PKGBUILD extra/xorg-xcalc/PKGBUILD extra/xorg-xconsole/PKGBUILD extra/xorg-xedit/PKGBUILD extra/xorg-xmag/PKGBUILD extra/xorg-xmessage/PKGBUILD extra/xorg-xvidtune/PKGBUILD libre/unzip-libre/PKGBUILD social/opentracker/PKGBUILD
Diffstat (limited to 'extra/appmenu-qt')
-rw-r--r--extra/appmenu-qt/PKGBUILD6
-rw-r--r--extra/appmenu-qt/appmenu-async.diff28
2 files changed, 31 insertions, 3 deletions
diff --git a/extra/appmenu-qt/PKGBUILD b/extra/appmenu-qt/PKGBUILD
index 3cb3b4dad..a501eb811 100644
--- a/extra/appmenu-qt/PKGBUILD
+++ b/extra/appmenu-qt/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 174631 2013-01-05 12:47:25Z andrea $
+# $Id: PKGBUILD 175130 2013-01-14 17:12:42Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
pkgname=appmenu-qt
pkgver=0.2.6
-pkgrel=2
+pkgrel=3
pkgdesc="Allows Qt applications to export menus over DBus to a menu applet"
arch=('i686' 'x86_64' 'mips64el')
url='https://launchpad.net/appmenu-qt'
@@ -14,7 +14,7 @@ source=("http://launchpad.net/${pkgname}/trunk/${pkgver}/+download/${pkgname}-${
'appmenu-async.diff')
md5sums=('90cce750e5412d43ce075b0a9bdb6782'
'de499d01369fc85040f5bbfc53ae1700'
- '82947207881702d88403c149406b502a')
+ '5db00ca92274c8b1797c204321961189')
build() {
# FS#33286
diff --git a/extra/appmenu-qt/appmenu-async.diff b/extra/appmenu-qt/appmenu-async.diff
index c4bc509d7..59e3ce791 100644
--- a/extra/appmenu-qt/appmenu-async.diff
+++ b/extra/appmenu-qt/appmenu-async.diff
@@ -119,3 +119,31 @@
+ </interface>
+</node>
+=== modified file 'src/appmenuplatformmenubar.cpp'
+--- src/appmenuplatformmenubar.cpp 2013-01-11 15:05:38 +0000
++++ src/appmenuplatformmenubar.cpp 2013-01-14 16:01:25 +0000
+@@ -410,6 +410,10 @@
+ registrar = new com::canonical::AppMenu::Registrar(REGISTRAR_SERVICE, REGISTRAR_PATH, QDBusConnection::sessionBus(), 0);
+ }
+
++ if (!registrar || !registrar->isValid()) {
++ return false;
++ }
++
+ Q_FOREACH(QAction *action, m_menuBar->actions()) {
+ if (!action->isSeparator()) {
+ m_rootMenu->addAction(action);
+@@ -430,9 +434,9 @@
+ }
+
+ m_registeredWinId = winId;
+- if (registrar) {
+- registrar->RegisterWindow(winId, QDBusObjectPath(m_objectPath));
+- }
++
++ registrar->RegisterWindow(winId, QDBusObjectPath(m_objectPath));
++
+ return true;
+ }
+
+