~ubuntu-branches/ubuntu/maverick/epiphany-browser/maverick

« back to all changes in this revision

Viewing changes to debian/patches/81_ubuntu_force_update_bookmarks_menu.patch

  • Committer: Bazaar Package Importer
  • Author(s): Maia Kozheva
  • Date: 2010-07-16 23:31:38 UTC
  • Revision ID: james.westby@ubuntu.com-20100716233138-bmdlvi606vpgebxc
Tags: 2.30.2-1ubuntu3
* Added debian/patches/81_ubuntu_force_update_bookmarks_menu.patch:
  - Update the bookmarks menu every time the internal structure is changed
    (needed for the UNE application menu to work correctly). (LP: #605520)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Index: epiphany-browser-2.30.2/src/bookmarks/ephy-bookmarks-ui.c
 
2
===================================================================
 
3
--- epiphany-browser-2.30.2.orig/src/bookmarks/ephy-bookmarks-ui.c      2010-07-16 23:56:04.885970424 +0700
 
4
+++ epiphany-browser-2.30.2/src/bookmarks/ephy-bookmarks-ui.c   2010-07-16 23:57:00.905970423 +0700
 
5
@@ -193,6 +193,9 @@
 
6
        }
 
7
 
 
8
        g_string_truncate (bookmarks_menu_string, 0);
 
9
+       // Hack: Update the bookmarks menu with actual data, so that the
 
10
+       // Ubuntu global menu can update immediately
 
11
+       activate_bookmarks_menu (NULL, window);
 
12
 }
 
13
 
 
14
 static void
 
15
@@ -371,6 +374,9 @@
 
16
        g_signal_connect_object (action, "activate",
 
17
                                 G_CALLBACK (activate_bookmarks_menu),
 
18
                                 G_OBJECT (window), 0);
 
19
+       
 
20
+       // Hack: update the menu immediately, for the Ubuntu bookmarks menu
 
21
+       activate_bookmarks_menu (NULL, window);
 
22
 }
 
23
 
 
24
 void