Changeset 2003
- Timestamp:
- 05/18/07 02:02:09 (6 years ago)
- Location:
- trunk/src/target/OM-2007/applications/openmoko-footer
- Files:
-
- 2 added
- 3 edited
-
ChangeLog (modified) (1 diff)
-
src/Makefile.am (modified) (1 diff)
-
src/taskitem.c (added)
-
src/taskitem.h (added)
-
src/taskmanager.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/OM-2007/applications/openmoko-footer/ChangeLog
r1991 r2003 1 2007-05-18 Daniel Willmann <daniel@totalueberwachung.de> 2 3 * src/Makefile.am: 4 * src/taskitem.c: Added. 5 * src/taskitem.h: Added. 6 * src/taskmanager.c: 7 (taskmanager_init): 8 Add support for taskitems (consisting of an image and a label) 9 1 10 2007-05-17 Daniel Willmann <daniel@totalueberwachung.de> 2 11 -
trunk/src/target/OM-2007/applications/openmoko-footer/src/Makefile.am
r1991 r2003 7 7 bin_PROGRAMS = openmoko-footer 8 8 9 openmoko_footer_SOURCES = main.c footer.c callbacks.c taskmanager.c misc.c9 openmoko_footer_SOURCES = main.c footer.c callbacks.c taskmanager.c taskitem.c misc.c 10 10 11 11 openmoko_footer_LDADD = @OPENMOKO_LIBS@ -
trunk/src/target/OM-2007/applications/openmoko-footer/src/taskmanager.c
r1991 r2003 18 18 */ 19 19 20 #include "taskitem.h" 20 21 #include "taskmanager.h" 21 22 #include "callbacks.h" … … 33 34 Display *dpy; 34 35 GtkWidget *image; 36 GdkPixbuf *pixbuf; 37 GtkScrolledWindow *scroll; 38 MokoTaskItem *test; 35 39 36 40 dpy = GDK_DISPLAY(); … … 66 70 tm->table = gtk_table_new( 3, 3, TRUE ); 67 71 68 moko_finger_window_set_contents( tm->window, GTK_WIDGET(tm->table) ); 72 test = g_new0( MokoTaskItem, 1 ); 73 74 pixbuf = gdk_pixbuf_new_from_file (PKGDATADIR"/icon_app_history.png", NULL); 75 moko_task_item_init( test, "Testentry", pixbuf ); 76 gtk_table_attach_defaults( tm->table, GTK_WIDGET(test->box), 0, 1, 0, 1); 77 78 scroll = gtk_scrolled_window_new( NULL, NULL ); 79 gtk_scrolled_window_set_policy( scroll, GTK_POLICY_NEVER, GTK_POLICY_NEVER ); 80 gtk_widget_set_size_request (GTK_WINDOW(scroll), -1, 400); 81 gtk_scrolled_window_add_with_viewport(GTK_CONTAINER(scroll), GTK_WIDGET(tm->table) ); 82 83 moko_finger_window_set_contents( tm->window, GTK_WIDGET(scroll) ); 69 84 }
Note: See TracChangeset
for help on using the changeset viewer.
