Changeset 2003


Ignore:
Timestamp:
05/18/07 02:02:09 (6 years ago)
Author:
alphaone
Message:
  • src/Makefile.am, src/taskitem.c, src/taskitem.h, src/taskmanager.c:

Add support for taskitems (consisting of an image and a label)

Location:
trunk/src/target/OM-2007/applications/openmoko-footer
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/OM-2007/applications/openmoko-footer/ChangeLog

    r1991 r2003  
     12007-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 
    1102007-05-17  Daniel Willmann <daniel@totalueberwachung.de> 
    211 
  • trunk/src/target/OM-2007/applications/openmoko-footer/src/Makefile.am

    r1991 r2003  
    77bin_PROGRAMS = openmoko-footer 
    88 
    9 openmoko_footer_SOURCES = main.c footer.c callbacks.c taskmanager.c misc.c 
     9openmoko_footer_SOURCES = main.c footer.c callbacks.c taskmanager.c taskitem.c misc.c 
    1010 
    1111openmoko_footer_LDADD = @OPENMOKO_LIBS@ 
  • trunk/src/target/OM-2007/applications/openmoko-footer/src/taskmanager.c

    r1991 r2003  
    1818 */ 
    1919 
     20#include "taskitem.h" 
    2021#include "taskmanager.h" 
    2122#include "callbacks.h" 
     
    3334  Display *dpy; 
    3435  GtkWidget *image; 
     36  GdkPixbuf *pixbuf; 
     37  GtkScrolledWindow *scroll; 
     38  MokoTaskItem *test; 
    3539 
    3640  dpy = GDK_DISPLAY(); 
     
    6670  tm->table = gtk_table_new( 3, 3, TRUE ); 
    6771 
    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) ); 
    6984} 
Note: See TracChangeset for help on using the changeset viewer.