diff options
author | Tomas Frydrych <tf@openedhand.com> | 2007-04-23 16:44:51 +0000 |
---|---|---|
committer | Tomas Frydrych <tf@openedhand.com> | 2007-04-23 16:44:51 +0000 |
commit | 273f0d8c9179a396d2e729484ecf9d48bbd1c50e (patch) | |
tree | 6dcf8b2120186c1f22473852d93b275660528a1f | |
parent | d9c3ae611a7ffd14c2a0e0c73e88358e919dcfbf (diff) | |
download | poky-273f0d8c9179a396d2e729484ecf9d48bbd1c50e.tar.gz |
patched leafpad to use owl window menu
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1536 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r-- | meta/packages/leafpad/files/owl-menu.patch | 61 | ||||
-rw-r--r-- | meta/packages/leafpad/leafpad_0.8.9.bb | 5 |
2 files changed, 64 insertions, 2 deletions
diff --git a/meta/packages/leafpad/files/owl-menu.patch b/meta/packages/leafpad/files/owl-menu.patch new file mode 100644 index 0000000000..bcb5917440 --- /dev/null +++ b/meta/packages/leafpad/files/owl-menu.patch | |||
@@ -0,0 +1,61 @@ | |||
1 | --- tmp/src/menu.c.orig 2007-04-23 12:08:41.000000000 +0100 | ||
2 | +++ tmp/src/menu.c 2007-04-23 12:08:41.000000000 +0100 | ||
3 | @@ -152,7 +152,7 @@ | ||
4 | } | ||
5 | |||
6 | accel_group = gtk_accel_group_new(); | ||
7 | - ifactory = gtk_item_factory_new(GTK_TYPE_MENU_BAR, "<main>", accel_group); | ||
8 | + ifactory = gtk_item_factory_new(GTK_TYPE_MENU, "<main>", accel_group); | ||
9 | gtk_item_factory_set_translate_func(ifactory, menu_translate, NULL, NULL); | ||
10 | gtk_item_factory_create_items(ifactory, nmenu_items, menu_items, NULL); | ||
11 | gtk_window_add_accel_group(GTK_WINDOW(window), accel_group); | ||
12 | |||
13 | --- tmp/src/window.c.orig 2007-04-23 12:14:07.000000000 +0100 | ||
14 | +++ tmp/src/window.c 2007-04-23 12:14:07.000000000 +0100 | ||
15 | @@ -18,6 +18,8 @@ | ||
16 | */ | ||
17 | |||
18 | #include "leafpad.h" | ||
19 | +#include "owlwindowmenu.h" | ||
20 | + | ||
21 | /* | ||
22 | static void cb_scroll_event(GtkAdjustment *adj, GtkWidget *view) | ||
23 | { | ||
24 | @@ -52,7 +54,6 @@ | ||
25 | gtk_container_add(GTK_CONTAINER(window), vbox); | ||
26 | |||
27 | menubar = create_menu_bar(window); | ||
28 | - gtk_box_pack_start(GTK_BOX(vbox), menubar, FALSE, FALSE, 0); | ||
29 | |||
30 | sw = gtk_scrolled_window_new(NULL, NULL); | ||
31 | gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw), | ||
32 | |||
33 | --- tmp/src/main.c.orig 2007-04-23 12:15:03.000000000 +0100 | ||
34 | +++ tmp/src/main.c 2007-04-23 12:15:03.000000000 +0100 | ||
35 | @@ -244,6 +244,7 @@ | ||
36 | Conf *conf; | ||
37 | GtkItemFactory *ifactory; | ||
38 | gchar *stdin_data = NULL; | ||
39 | + GtkWidget *menu; | ||
40 | |||
41 | bindtextdomain(PACKAGE, LOCALEDIR); | ||
42 | bind_textdomain_codeset(PACKAGE, "UTF-8"); | ||
43 | @@ -293,7 +294,10 @@ | ||
44 | conf->autoindent); | ||
45 | |||
46 | gtk_widget_show_all(pub->mw->window); | ||
47 | + owl_set_window_menu (GTK_WINDOW(pub->mw->window), | ||
48 | + GTK_MENU(pub->mw->menubar)); | ||
49 | + | ||
50 | g_free(conf->fontname); | ||
51 | g_free(conf); | ||
52 | |||
53 | |||
54 | --- tmp/src/Makefile.am.orig 2007-04-23 12:17:54.000000000 +0100 | ||
55 | +++ tmp/src/Makefile.am 2007-04-23 12:17:54.000000000 +0100 | ||
56 | @@ -27,4 +27,4 @@ | ||
57 | i18n.h | ||
58 | |||
59 | leafpad_CFLAGS = $(GTK_CFLAGS) $(GNOMEPRINT_CFLAGS) | ||
60 | -leafpad_LDADD = $(GTK_LIBS) $(INTLLIBS) $(GNOMEPRINT_LIBS) | ||
61 | +leafpad_LDADD = $(GTK_LIBS) $(INTLLIBS) $(GNOMEPRINT_LIBS) -lowl | ||
diff --git a/meta/packages/leafpad/leafpad_0.8.9.bb b/meta/packages/leafpad/leafpad_0.8.9.bb index f8e8e3bd5c..0b19526b12 100644 --- a/meta/packages/leafpad/leafpad_0.8.9.bb +++ b/meta/packages/leafpad/leafpad_0.8.9.bb | |||
@@ -1,8 +1,9 @@ | |||
1 | LICENSE = "GPLv2" | 1 | LICENSE = "GPLv2" |
2 | DEPENDS = "gtk+ intltool-native" | 2 | DEPENDS = "gtk+ intltool-native libowl" |
3 | SRC_URI = "http://savannah.nongnu.org/download/${PN}/${PN}-${PV}.tar.gz \ | 3 | SRC_URI = "http://savannah.nongnu.org/download/${PN}/${PN}-${PV}.tar.gz \ |
4 | file://owl-menu.patch;patch=1 \ | ||
4 | file://leafpad.desktop" | 5 | file://leafpad.desktop" |
5 | PR = "r2" | 6 | PR = "r3" |
6 | 7 | ||
7 | inherit autotools pkgconfig | 8 | inherit autotools pkgconfig |
8 | 9 | ||