Merge lp:~darkxst/gnome-settings-daemon/have-unity into lp:~ubuntu-desktop/gnome-settings-daemon/ubuntu

Proposed by Tim Lunn
Status: Needs review
Proposed branch: lp:~darkxst/gnome-settings-daemon/have-unity
Merge into: lp:~ubuntu-desktop/gnome-settings-daemon/ubuntu
Diff against target: 35 lines (+8/-2)
2 files modified
debian/changelog (+7/-0)
debian/patches/90_set_gmenus_xsettings.patch (+1/-2)
To merge this branch: bzr merge lp:~darkxst/gnome-settings-daemon/have-unity
Reviewer Review Type Date Requested Status
Robert Ancell Needs Information
Review via email: mp+214868@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Is this fixing a specific problem?

https://developer.gnome.org/gio/unstable/gio-Watching-Bus-Names.html#g-bus-watch-name says
"You are guaranteed that one of the handlers will be invoked after calling this function" so have_unity will be set to FALSE immediately.

It is a bit odd that since there are two watches notify_have_shell will be called twice (once for each name) but the result should be the same - in GNOME have_unity will be set to FALSE.

Revision history for this message
Robert Ancell (robert-ancell) :
review: Needs Information
469. By Tim Lunn

remove non-logical code

Unmerged revisions

469. By Tim Lunn

remove non-logical code

468. By Tim Lunn

* debian/patches/90_set_gmenus_xsettings.patch:
  - don't set have_unity = TRUE before unity has appeared

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2014-04-09 01:39:02 +0000
3+++ debian/changelog 2014-04-09 02:51:58 +0000
4@@ -1,3 +1,10 @@
5+gnome-settings-daemon (3.8.6.1-0ubuntu12) UNRELEASED; urgency=medium
6+
7+ * debian/patches/90_set_gmenus_xsettings.patch:
8+ - don't set have_unity = TRUE before unity has appeared
9+
10+ -- Tim Lunn <tim@feathertop.org> Wed, 09 Apr 2014 12:14:22 +1000
11+
12 gnome-settings-daemon (3.8.6.1-0ubuntu11) trusty; urgency=medium
13
14 [ Jackson Doak ]
15
16=== modified file 'debian/patches/90_set_gmenus_xsettings.patch'
17--- debian/patches/90_set_gmenus_xsettings.patch 2014-04-09 01:37:13 +0000
18+++ debian/patches/90_set_gmenus_xsettings.patch 2014-04-09 02:51:58 +0000
19@@ -93,7 +93,7 @@
20 manager->priv->have_shell = TRUE;
21 manager->priv->shell_name_watch_id = g_bus_watch_name (G_BUS_TYPE_SESSION,
22 "org.gnome.Shell",
23-@@ -867,6 +899,20 @@
24+@@ -871,6 +903,19 @@
25 NULL);
26 }
27
28@@ -101,7 +101,6 @@
29 +start_unity_monitor (GnomeXSettingsManager *manager)
30 +{
31 + notify_have_shell (manager);
32-+ manager->priv->have_unity = TRUE;
33 + manager->priv->unity_name_watch_id = g_bus_watch_name (G_BUS_TYPE_SESSION,
34 + "com.canonical.AppMenu.Registrar",
35 + 0,

Subscribers

People subscribed via source and target branches

to all changes: