aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/01_lpi.patch
blob: ae6ad116dc5c15026892ff7a410f40fd0170881f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
=== modified file 'configure.ac'
--- a/configure.ac
+++ b/configure.ac
@@ -164,6 +164,7 @@
    telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
    telepathy-logger-0.2 >= $TELEPATHY_LOGGER
    x11
+   launchpad-integration
 ])
 
 PKG_CHECK_MODULES(YELL, [telepathy-yell])
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -36,6 +36,9 @@
 #include <glib/gi18n.h>
 #include <libnotify/notification.h>
 
+/* Add launchpad hooks */
+#include <launchpad-integration.h>
+
 #include <telepathy-glib/telepathy-glib.h>
 
 #include <libempathy/empathy-contact.h>
@@ -2144,6 +2147,9 @@
    chat_window_chat_manager_chats_changed_cb (priv->chat_manager,
                           empathy_chat_manager_get_num_chats (priv->chat_manager),
                           window);
+
+   /* Add launchpad hooks */
+   launchpad_integration_add_ui (priv->ui_manager, "/chats_menubar/menu_help/LaunchpadItems");
 }
 
 EmpathyChatWindow *
--- a/src/empathy-chat-window.ui
+++ b/src/empathy-chat-window.ui
@@ -197,6 +197,7 @@
         </menu>
         <menu action="menu_help">
           <menuitem action="menu_help_contents"/>
+          <placeholder name="LaunchpadItems"/>
           <menuitem action="menu_help_about"/>
         </menu>
       </menubar>
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -33,6 +33,9 @@
 #include <telepathy-glib/util.h>
 #include <folks/folks.h>
 
+/* Add launchpad hooks */
+#include <launchpad-integration.h>
+
 #include <libempathy/empathy-contact.h>
 #include <libempathy/empathy-idle.h>
 #include <libempathy/empathy-utils.h>
@@ -2441,6 +2444,8 @@
    main_window_notify_contact_list_size_cb (priv->gsettings_ui,
                         EMPATHY_PREFS_UI_SHOW_AVATARS,
                         window);
+
+   launchpad_integration_add_ui (priv->ui_manager, "/menubar/help/LaunchpadItems");
 }
 
 GtkWidget *
--- a/src/empathy-main-window.ui
+++ b/src/empathy-main-window.ui
@@ -287,6 +287,7 @@
         <menu action="help">
           <menuitem action="help_contents"/>
           <menuitem action="help_debug"/>
+          <placeholder name="LaunchpadItems"/>
           <menuitem action="help_about"/>
         </menu>
       </menubar>