Merge lp:~attente/unity-gtk-module/unset-ubuntu-menuproxy into lp:unity-gtk-module/13.10

Proposed by William Hua
Status: Work in progress
Proposed branch: lp:~attente/unity-gtk-module/unset-ubuntu-menuproxy
Merge into: lp:unity-gtk-module/13.10
Diff against target: 11 lines (+1/-1)
1 file modified
src/main.c (+1/-1)
To merge this branch: bzr merge lp:~attente/unity-gtk-module/unset-ubuntu-menuproxy
Reviewer Review Type Date Requested Status
Ted Gould (community) Approve
Lars Karlitski (community) Disapprove
PS Jenkins bot (community) continuous-integration Needs Fixing
Review via email: mp+172624@code.launchpad.net

Commit message

Before, we would have to explicitly set UBUNTU_MENUPROXY to '', '0', 'no', 'off', or 'false' to disable u-g-m. Now, unsetting UBUNTU_MENUPROXY will also disable it.

Description of the change

Before, we would have to explicitly set UBUNTU_MENUPROXY to '', '0', 'no', 'off', or 'false' to disable u-g-m. Now, unsetting UBUNTU_MENUPROXY will also disable it.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Lars Karlitski (larsu) wrote :

This is insane.

review: Disapprove
Revision history for this message
Ted Gould (ted) wrote :

I think that we need this so that people have been previously told that unsetting the variable in their program to disable the global menu would work, can still have their app working. I agree that it isn't beautiful, but it is required to maintain compatibility.

review: Approve
Revision history for this message
Diogo Baeder (diogobaeder) wrote :

Hi,

Currently WingIDE 4 (at least the Professional version, which I use) breaks in Saucy Salamander, as its top menu items get messed up and don't drop down, when it gets merged with the global menu. I talked to the developers, and they told that one of the alternatives would be to disable the global menu for WingIDE, by making it a local menu. Currently I do this by not using the system-wide GTK theme, because the UBUNTU_MENUPROXY variable is not working as expected - setting it to '', '0', 'no', 'off', or 'false' don't seem to change this behaviour -.

So I think this change will make WingIDE 4 able to work normally again in Saucy, by not using the global menu.

Thanks!

Revision history for this message
William Hua (attente) wrote :

Hi Diogo,

This merge is very small; if setting UBUNTU_MENUPROXY to '', '0', etc. isn't working, this won't fix it, and what you have is a different bug and should probably be reported as such...

Unmerged revisions

297. By William Hua

Before, we would have to explicitly set UBUNTU_MENUPROXY to '', '0', 'no', 'off', or 'false' to disable u-g-m. Now, unsetting UBUNTU_MENUPROXY will also disable it.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/main.c'
2--- src/main.c 2013-03-14 17:09:54 +0000
3+++ src/main.c 2013-07-02 16:39:27 +0000
4@@ -759,7 +759,7 @@
5 {
6 const gchar *proxy = g_getenv ("UBUNTU_MENUPROXY");
7
8- if ((proxy == NULL || is_true (proxy)) && !is_blacklisted (g_get_prgname ()))
9+ if (is_true (proxy) && !is_blacklisted (g_get_prgname ()))
10 {
11 GtkWidgetClass *widget_class;
12

Subscribers

People subscribed via source and target branches