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
|
Sample patch of gucharmap (an application that builds its menus manually).
Index: configure.ac
===================================================================
RCS file: /cvs/gnome/gucharmap/configure.ac,v
retrieving revision 1.114
diff -u -p -r1.114 configure.ac
--- configure.ac 28 Apr 2005 21:38:33 -0000 1.114
+++ configure.ac 21 Jul 2005 22:16:02 -0000
@@ -63,7 +63,7 @@ else
fi
# gtk is required
-PKG_CHECK_MODULES(GTK, gobject-2.0 >= 2.3.0 gtk+-2.0 >= 2.2.0)
+PKG_CHECK_MODULES(GTK, gobject-2.0 >= 2.3.0 gtk+-2.0 >= 2.2.0 launchpad-integration)
AC_ARG_ENABLE(gnome,
AC_HELP_STRING([--disable-gnome],
Index: gucharmap/gucharmap-window.c
===================================================================
RCS file: /cvs/gnome/gucharmap/gucharmap/gucharmap-window.c,v
retrieving revision 1.54
diff -u -p -r1.54 gucharmap-window.c
--- gucharmap/gucharmap-window.c 23 Jan 2005 20:56:53 -0000 1.54
+++ gucharmap/gucharmap-window.c 21 Jul 2005 22:16:03 -0000
@@ -26,6 +26,8 @@
#if HAVE_GNOME
# include <gnome.h>
#endif
+#include <launchpad-integration.h>
+
#include "gucharmap-window.h"
#include "gucharmap-mini-fontsel.h"
#include "gucharmap-unicode-info.h"
@@ -346,6 +348,8 @@ make_gnome_help_menu (GucharmapWindow *g
menu = gtk_menu_new ();
gnome_app_fill_menu (GTK_MENU_SHELL (menu), help_menu, priv->accel_group, TRUE, 0);
+
+ launchpad_integration_add_items (menu, -1, TRUE, TRUE);
return menu;
}
|