]> code.ossystems Code Review - openembedded-core.git/commitdiff
Add a owlmenu patch
authorRoss Burton <ross@openedhand.com>
Fri, 13 Jul 2007 09:15:13 +0000 (09:15 +0000)
committerRoss Burton <ross@openedhand.com>
Fri, 13 Jul 2007 09:15:13 +0000 (09:15 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2179 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/packages/pimlico/files/tasks-owl.diff [new file with mode: 0644]
meta/packages/pimlico/tasks.inc
meta/packages/pimlico/tasks_0.10.bb
meta/packages/pimlico/tasks_svn.bb

diff --git a/meta/packages/pimlico/files/tasks-owl.diff b/meta/packages/pimlico/files/tasks-owl.diff
new file mode 100644 (file)
index 0000000..ea867d8
--- /dev/null
@@ -0,0 +1,74 @@
+Index: src/gtk/tasks-ui.xml
+===================================================================
+--- src/gtk/tasks-ui.xml       (revision 288)
++++ src/gtk/tasks-ui.xml       (working copy)
+@@ -10,10 +10,8 @@
+       <menuitem action="DeleteTask"/>
+       <menuitem action="PurgeTasks"/>
+       <separator/>
++      <menuitem action="About"/>
+       <menuitem action="Quit"/>
+     </menu>
+-    <menu action="HelpMenu">
+-      <menuitem action="About"/>
+-    </menu>
+   </menubar>
+ </ui>
+Index: src/gtk/main.c
+===================================================================
+--- src/gtk/main.c     (revision 288)
++++ src/gtk/main.c     (working copy)
+@@ -21,6 +21,7 @@
+ #include <libecal/e-cal.h>
+ #include <glib/gi18n.h>
+ #include <gtk/gtk.h>
++#include <owlwindowmenu.h>
+ #include <libkoto/ical-util.h>
+ #include <libkoto/koto-category-group.h>
+@@ -462,17 +463,6 @@
+                          NULL);
+ }
+-/*
+- * Callback from the UI manager with the GtkMenu widget. Pack and add this to
+- * the container.
+- */
+-static void
+-ui_add_widget (GtkUIManager *ui, GtkWidget *widget, GtkContainer *container)
+-{
+-  gtk_box_pack_start (GTK_BOX (container), widget, FALSE, FALSE, 0);
+-  gtk_widget_show (widget);
+-}
+-
+ /* TODO: split into global actions and actions that require a task to be selected */
+ static const GtkActionEntry actions[] = 
+ {
+@@ -563,11 +553,12 @@
+   }
+   /* Bind the accelerators */
+   gtk_window_add_accel_group (GTK_WINDOW (window), gtk_ui_manager_get_accel_group (ui_manager));
+-  g_signal_connect (ui_manager, "add-widget", G_CALLBACK (ui_add_widget), top_box);
+   /* Do this so that the menu is packed now instead of in the idle loop */
+   gtk_ui_manager_ensure_update (ui_manager);
+-
++  owl_set_window_menu_item (GTK_WINDOW (window),
++                            GTK_MENU_ITEM (gtk_ui_manager_get_widget (ui_manager, "/MenuBar/TasksMenu")));
++  
+   box = gtk_vbox_new (FALSE, 4);
+   gtk_container_set_border_width (GTK_CONTAINER (box), 4);
+   gtk_container_add (GTK_CONTAINER (top_box), box);
+Index: src/gtk/Makefile.am
+===================================================================
+--- src/gtk/Makefile.am        (revision 288)
++++ src/gtk/Makefile.am        (working copy)
+@@ -4,7 +4,7 @@
+ bin_PROGRAMS = tasks
+ tasks_CPPFLAGS = -I$(top_srcdir)/
+ tasks_CFLAGS = -Wall $(GTK_CFLAGS) $(ECAL_CFLAGS) $(SEXY_CFLAGS)
+-tasks_LDADD = $(top_builddir)/libkoto/libkoto.a $(GTK_LIBS) $(ECAL_LIBS) $(SEXY_LIBS) 
++tasks_LDADD = $(top_builddir)/libkoto/libkoto.a $(GTK_LIBS) $(ECAL_LIBS) $(SEXY_LIBS) -lowl
+ tasks_SOURCES = \
+       main.c \
index 9b7c245ad332aca2a2ca4c7a097a5fe4cbbd7d07..2bb1c9265a66ec5ea07d8348b1bdffcc5cc078b8 100644 (file)
@@ -1,6 +1,6 @@
 DESCRIPTION = "Task list application"
 LICENSE = "GPL"
 SECTION = "x11"
-DEPENDS = "glib-2.0 gtk+ eds-dbus"
+DEPENDS = "glib-2.0 gtk+ eds-dbus libowl"
 
 inherit autotools pkgconfig gtk-icon-cache
index 120b52542df514d43b5f6064828ceca5b924bfc6..63d22328ff2796c1b8787ccfa5806e465de0c9ae 100644 (file)
@@ -1,4 +1,7 @@
 require tasks.inc
 
+PR="r1"
+
 SRC_URI = "http://pimlico-project.org/sources/${PN}/${PN}-${PV}.tar.gz \
-        file://tasks-single.diff;patch=1"
+        file://tasks-single.diff;patch=1 \
+        file://tasks-owl.diff;patch=1;pnum=0"
index 7ac374be08b61dccdc9fad1c8f963b7219e314c4..1188d2d89486e47eeb9a4e182f8c60d355b65488 100644 (file)
@@ -5,4 +5,6 @@ DEFAULT_PREFERENCE = "-1"
 PV = "0.10+svn${SRCDATE}"
 S = "${WORKDIR}/trunk"
 
-SRC_URI = "svn://svn.o-hand.com/repos/${PN};module=trunk;proto=http"
+SRC_URI = "svn://svn.o-hand.com/repos/${PN};module=trunk;proto=http \
+        file://tasks-single.diff;patch=1 \
+        file://tasks-owl.diff;patch=1"