summaryrefslogtreecommitdiffstats
path: root/meta/recipes-sato/pimlico/dates/dates-owl-window-menu.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-sato/pimlico/dates/dates-owl-window-menu.patch')
-rw-r--r--meta/recipes-sato/pimlico/dates/dates-owl-window-menu.patch65
1 files changed, 65 insertions, 0 deletions
diff --git a/meta/recipes-sato/pimlico/dates/dates-owl-window-menu.patch b/meta/recipes-sato/pimlico/dates/dates-owl-window-menu.patch
new file mode 100644
index 0000000000..d5901658be
--- /dev/null
+++ b/meta/recipes-sato/pimlico/dates/dates-owl-window-menu.patch
@@ -0,0 +1,65 @@
1---
2 src/dates_gtk.c | 5 -----
3 src/dates_main.c | 5 +++++
4 src/dates_platform.h | 2 +-
5 3 files changed, 7 insertions(+), 7 deletions(-)
6
7Index: git/src/dates_gtk.c
8===================================================================
9--- git.orig/src/dates_gtk.c 2009-08-18 12:44:56.000000000 +0100
10+++ git/src/dates_gtk.c 2009-09-03 22:28:50.000000000 +0100
11@@ -33,10 +33,6 @@
12 #endif
13
14 #ifndef DATES_PLATFORM_create_main_window
15-/* the default implementation assumes that menu is GtkMenuBar */
16-#ifdef DATES_MENU_WITHOUT_BAR
17-#error Cannot use default create_main_window () if DATES_MENU_WITHOUT_BAR is defined !!!
18-#endif
19 static GtkWidget *
20 create_main_window (DatesData * d, GtkWidget * toolbar,
21 GtkWidget * menu, GtkAccelGroup * accel_group)
22@@ -59,7 +55,6 @@
23 gtk_container_add (GTK_CONTAINER (d->main_window), main_vbox);
24
25 gtk_widget_show (menu);
26- gtk_box_pack_start (GTK_BOX (main_vbox), menu, FALSE, FALSE, 0);
27
28 gtk_box_pack_end (GTK_BOX (main_vbox), toolbar, FALSE, FALSE, 0);
29 gtk_container_set_border_width (GTK_CONTAINER (toolbar), 3);
30Index: git/src/dates_main.c
31===================================================================
32--- git.orig/src/dates_main.c 2009-08-18 12:44:56.000000000 +0100
33+++ git/src/dates_main.c 2009-09-03 22:29:21.000000000 +0100
34@@ -26,6 +26,8 @@
35 #include <libical/icaltime.h>
36 #include <gconf/gconf-client.h>
37
38+#include <gtk/gtkmenuitem.h>
39+#include <libowl/owlwindowmenu.h>
40 #include "dates_types.h"
41 #include "dates_platform.h"
42 #include "dates_callbacks.h"
43@@ -582,6 +584,9 @@
44 g_free (url_uri);
45 }
46
47+ owl_set_window_menu (GTK_WINDOW (data.main_window),
48+ GTK_MENU (data.main_menu));
49+
50 gtk_main ();
51
52 return 0;
53Index: git/src/dates_platform.h
54===================================================================
55--- git.orig/src/dates_platform.h 2009-08-18 12:44:56.000000000 +0100
56+++ git/src/dates_platform.h 2009-09-03 22:28:50.000000000 +0100
57@@ -20,7 +20,7 @@
58
59 #include "dates_types.h"
60
61-#ifdef WITH_HILDON
62+#if 1
63 #define DATES_MENU_WITHOUT_BAR 1
64 #endif
65