Merge lp:~mterry/appmenu-gtk/blacklist-emacs into lp:appmenu-gtk/0.4

Proposed by Michael Terry
Status: Merged
Merged at revision: 133
Proposed branch: lp:~mterry/appmenu-gtk/blacklist-emacs
Merge into: lp:appmenu-gtk/0.4
Diff against target: 21 lines (+3/-1)
1 file modified
src/bridge.c (+3/-1)
To merge this branch: bzr merge lp:~mterry/appmenu-gtk/blacklist-emacs
Reviewer Review Type Date Requested Status
Canonical Desktop Experience Team Pending
Review via email: mp+57934@code.launchpad.net

Description of the change

Guh! I give up on emacs. The last straw was that it fleshed out its menus when it got an X button press event. Our code currently handles applications that flesh out menus upon GTK "activate" signals, but not X button presses.

I looked into an emacs patch that watched "activate", but hit problems. I'll look into that further, but for now, I think it's good to have a fallback in place.

I will push another couple branches for dbusmenu that came out of my emacs odyssey.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/bridge.c'
--- src/bridge.c 2011-04-12 14:37:43 +0000
+++ src/bridge.c 2011-04-15 18:48:34 +0000
@@ -890,7 +890,8 @@
890 return local;890 return local;
891}891}
892892
893/* crude blacklist to avoid patching innoncent apps */893/* Crude blacklist to avoid patching innocent apps */
894/* Use xprop | grep CLASS to find the name to use */
894static gboolean895static gboolean
895app_menu_brige_shouldnt_load (void)896app_menu_brige_shouldnt_load (void)
896{897{
@@ -903,6 +904,7 @@
903 || (g_strcmp0 (prg, "firefox-bin") == 0)904 || (g_strcmp0 (prg, "firefox-bin") == 0)
904 || (g_strcmp0 (prg, "thunderbird-bin") == 0)905 || (g_strcmp0 (prg, "thunderbird-bin") == 0)
905 || (g_strcmp0 (prg, "Eclipse") == 0)906 || (g_strcmp0 (prg, "Eclipse") == 0)
907 || (g_strcmp0 (prg, "emacs") == 0)
906 || (g_strcmp0 (prg, "gnome-panel") == 0))908 || (g_strcmp0 (prg, "gnome-panel") == 0))
907 {909 {
908 return TRUE;910 return TRUE;

Subscribers

People subscribed via source and target branches