summaryrefslogtreecommitdiffstats
path: root/meta/packages/pimlico/files
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2007-09-23 15:32:17 +0000
committerRoss Burton <ross@openedhand.com>2007-09-23 15:32:17 +0000
commit2aaaeda2b034c267632938b7b09489ac672a3206 (patch)
treef3e5e4ddfd191deaa01aa27737704d32b27f5e43 /meta/packages/pimlico/files
parented66764821441b3ab8fde48edf2ff4b221d9e5ed (diff)
downloadpoky-2aaaeda2b034c267632938b7b09489ac672a3206.tar.gz
Update tasks to 0.12
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2773 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/pimlico/files')
-rw-r--r--meta/packages/pimlico/files/tasks-owl.diff60
-rw-r--r--meta/packages/pimlico/files/tasks-single.diff9
2 files changed, 24 insertions, 45 deletions
diff --git a/meta/packages/pimlico/files/tasks-owl.diff b/meta/packages/pimlico/files/tasks-owl.diff
index ea867d890d..ce1ed9db7e 100644
--- a/meta/packages/pimlico/files/tasks-owl.diff
+++ b/meta/packages/pimlico/files/tasks-owl.diff
@@ -1,14 +1,24 @@
1Index: src/gtk/tasks-ui.xml 1Index: src/gtk/tasks-ui.xml
2=================================================================== 2===================================================================
3--- src/gtk/tasks-ui.xml (revision 288) 3--- src/gtk/tasks-ui.xml (revision 338)
4+++ src/gtk/tasks-ui.xml (working copy) 4+++ src/gtk/tasks-ui.xml (working copy)
5@@ -10,10 +10,8 @@ 5@@ -7,17 +7,14 @@
6 <menuitem action="EditTask"/>
7 <menuitem action="CompleteTask"/>
8 <separator/>
9+ <menuitem action="Undo"/>
10+ <menuitem action="Redo"/>
11+ <separator/>
6 <menuitem action="DeleteTask"/> 12 <menuitem action="DeleteTask"/>
7 <menuitem action="PurgeTasks"/> 13 <menuitem action="PurgeTasks"/>
8 <separator/> 14 <separator/>
9+ <menuitem action="About"/> 15+ <menuitem action="About"/>
10 <menuitem action="Quit"/> 16 <menuitem action="Quit"/>
11 </menu> 17 </menu>
18- <menu action="EditMenu">
19- <menuitem action="Undo"/>
20- <menuitem action="Redo"/>
21- </menu>
12- <menu action="HelpMenu"> 22- <menu action="HelpMenu">
13- <menuitem action="About"/> 23- <menuitem action="About"/>
14- </menu> 24- </menu>
@@ -16,7 +26,7 @@ Index: src/gtk/tasks-ui.xml
16 </ui> 26 </ui>
17Index: src/gtk/main.c 27Index: src/gtk/main.c
18=================================================================== 28===================================================================
19--- src/gtk/main.c (revision 288) 29--- src/gtk/main.c (revision 338)
20+++ src/gtk/main.c (working copy) 30+++ src/gtk/main.c (working copy)
21@@ -21,6 +21,7 @@ 31@@ -21,6 +21,7 @@
22 #include <libecal/e-cal.h> 32 #include <libecal/e-cal.h>
@@ -25,50 +35,28 @@ Index: src/gtk/main.c
25+#include <owlwindowmenu.h> 35+#include <owlwindowmenu.h>
26 36
27 #include <libkoto/ical-util.h> 37 #include <libkoto/ical-util.h>
28 #include <libkoto/koto-category-group.h> 38 #include <libkoto/koto-actions.h>
29@@ -462,17 +463,6 @@ 39@@ -564,8 +565,8 @@
30 NULL);
31 }
32
33-/*
34- * Callback from the UI manager with the GtkMenu widget. Pack and add this to
35- * the container.
36- */
37-static void
38-ui_add_widget (GtkUIManager *ui, GtkWidget *widget, GtkContainer *container)
39-{
40- gtk_box_pack_start (GTK_BOX (container), widget, FALSE, FALSE, 0);
41- gtk_widget_show (widget);
42-}
43-
44 /* TODO: split into global actions and actions that require a task to be selected */
45 static const GtkActionEntry actions[] =
46 {
47@@ -563,11 +553,12 @@
48 }
49 /* Bind the accelerators */
50 gtk_window_add_accel_group (GTK_WINDOW (window), gtk_ui_manager_get_accel_group (ui_manager)); 40 gtk_window_add_accel_group (GTK_WINDOW (window), gtk_ui_manager_get_accel_group (ui_manager));
51- g_signal_connect (ui_manager, "add-widget", G_CALLBACK (ui_add_widget), top_box);
52
53 /* Do this so that the menu is packed now instead of in the idle loop */
54 gtk_ui_manager_ensure_update (ui_manager); 41 gtk_ui_manager_ensure_update (ui_manager);
55- 42
56+ owl_set_window_menu_item (GTK_WINDOW (window), 43- menu = gtk_ui_manager_get_widget (ui_manager, "/MenuBar");
57+ GTK_MENU_ITEM (gtk_ui_manager_get_widget (ui_manager, "/MenuBar/TasksMenu"))); 44- gtk_box_pack_start (GTK_BOX (top_box), menu, FALSE, FALSE, 0);
58+ 45+ menu = gtk_ui_manager_get_widget (ui_manager, "/MenuBar/TasksMenu");
46+ owl_set_window_menu_item (GTK_WINDOW (window), GTK_MENU_ITEM (menu));
47
59 box = gtk_vbox_new (FALSE, 4); 48 box = gtk_vbox_new (FALSE, 4);
60 gtk_container_set_border_width (GTK_CONTAINER (box), 4); 49 gtk_container_set_border_width (GTK_CONTAINER (box), 4);
61 gtk_container_add (GTK_CONTAINER (top_box), box);
62Index: src/gtk/Makefile.am 50Index: src/gtk/Makefile.am
63=================================================================== 51===================================================================
64--- src/gtk/Makefile.am (revision 288) 52--- src/gtk/Makefile.am (revision 338)
65+++ src/gtk/Makefile.am (working copy) 53+++ src/gtk/Makefile.am (working copy)
66@@ -4,7 +4,7 @@ 54@@ -4,7 +4,7 @@
67 bin_PROGRAMS = tasks 55 bin_PROGRAMS = tasks
68 tasks_CPPFLAGS = -I$(top_srcdir)/ 56 tasks_CPPFLAGS = -I$(top_srcdir)/
69 tasks_CFLAGS = -Wall $(GTK_CFLAGS) $(ECAL_CFLAGS) $(SEXY_CFLAGS) 57 tasks_CFLAGS = $(WARN_CFLAGS) $(GTK_CFLAGS) $(ECAL_CFLAGS) $(SEXY_CFLAGS)
70-tasks_LDADD = $(top_builddir)/libkoto/libkoto.a $(GTK_LIBS) $(ECAL_LIBS) $(SEXY_LIBS) 58-tasks_LDADD = $(top_builddir)/libkoto/libkoto.a $(GTK_LIBS) $(ECAL_LIBS) $(SEXY_LIBS)
71+tasks_LDADD = $(top_builddir)/libkoto/libkoto.a $(GTK_LIBS) $(ECAL_LIBS) $(SEXY_LIBS) -lowl 59+tasks_LDADD = $(top_builddir)/libkoto/libkoto.a $(GTK_LIBS) $(ECAL_LIBS) $(SEXY_LIBS) -lowl
72 60
73 tasks_SOURCES = \ 61 tasks_SOURCES = \
74 main.c \ 62 main.c \
diff --git a/meta/packages/pimlico/files/tasks-single.diff b/meta/packages/pimlico/files/tasks-single.diff
deleted file mode 100644
index dd807ea256..0000000000
--- a/meta/packages/pimlico/files/tasks-single.diff
+++ /dev/null
@@ -1,9 +0,0 @@
1Index: tasks/data/tasks.desktop.in
2===================================================================
3--- tasks/data/tasks.desktop.in (revision 115)
4+++ tasks/data/tasks.desktop.in (working copy)
5@@ -9,3 +9,4 @@
6 Categories=GTK;Application;Office;ProjectManagement;
7 Terminal=false
8 StartupNotify=true
9+SingleInstance=true