Changeset 298
- Timestamp:
- 12/05/06 02:34:22 (6 years ago)
- Location:
- trunk/src/target/OM-2007
- Files:
-
- 5 edited
-
artwork/themes/openmoko-standard/gtk-2.0/mokomenubox (modified) (1 diff)
-
artwork/themes/openmoko-standard/gtk-2.0/openmoko-application-menu-bg.png (modified) (previous)
-
devel/qmake/openmoko-include.pro (modified) (1 diff)
-
examples/openmoko-finger-demo/src/demo-main.c (modified) (4 diffs)
-
openmoko-libs/libmokoui/moko-menu-box.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/OM-2007/artwork/themes/openmoko-standard/gtk-2.0/mokomenubox
r233 r298 5 5 recolorable = TRUE 6 6 file = "openmoko-application-menu-bg.png" 7 border = { 40, 20, 0, 0 }7 border = { 0, 20, 0, 0 } 8 8 stretch = TRUE 9 9 } 10 10 } 11 xthickness = 3011 xthickness = 5 12 12 } 13 13 widget "*.mokomenubox-application-menubar" style "mokomenubox-application-menubar" -
trunk/src/target/OM-2007/devel/qmake/openmoko-include.pro
r219 r298 60 60 61 61 contains( CONFIG, debug ) { 62 APPDIR = $(OPENMOKODIR)/applications/$$TARGET/data 63 DEFINES += PKGDATADIR=\\\"$$APPDIR/\\\" 62 !contains( TEMPLATE, lib ) { 63 APPDIR = $(OPENMOKODIR)/applications/$$TARGET/data 64 DEFINES += PKGDATADIR=\\\"$$APPDIR/\\\" 65 } 66 contains( TEMPLATE, lib ) { 67 APPDIR = $(OPENMOKODIR)/openmoko-libs/data 68 DEFINES += PKGDATADIR=\\\"$$APPDIR/\\\" 69 } 64 70 } 65 71 !contains( CONFIG, debug ) { -
trunk/src/target/OM-2007/examples/openmoko-finger-demo/src/demo-main.c
r294 r298 48 48 } 49 49 50 void cb_tool_button_clicked( GtkButton* button, MokoFingerWindow* window ) 51 { 52 if (!tools) return; 53 GtkButton* newbutton = moko_finger_tool_box_add_button( tools ); 54 g_signal_connect( G_OBJECT(newbutton), "clicked", G_CALLBACK(cb_tool_button_clicked), window ); 55 } 56 50 57 void cb_black_button_clicked( GtkButton* button, MokoFingerWindow* window ) 51 58 { … … 56 63 { 57 64 tools = moko_finger_window_get_toolbox(window); 58 for ( int i = 0; i < 1; ++i ) 59 moko_finger_tool_box_add_button( tools ); 65 for ( int i = 0; i < 4; ++i ) 66 { 67 GtkButton* newbutton = moko_finger_tool_box_add_button( tools ); 68 g_signal_connect( G_OBJECT(newbutton), "clicked", G_CALLBACK(cb_tool_button_clicked), window ); 69 } 60 70 } 61 71 … … 70 80 void cb_dialer_button_clicked( GtkButton* button, MokoFingerWindow* window ) 71 81 { 72 if (!tools) return; 73 moko_finger_tool_box_add_button( tools ); 82 // ... 74 83 } 75 84 … … 101 110 GtkLabel* label1 = gtk_label_new( "Populate this area with finger widgets\n \nThere are three types of finger buttons:" ); 102 111 103 GtkLabel* label2 = gtk_label_new( "Orange button toggles finger scrolling wheel\nBlack button toggles finger toolbar\nDialer Button adds a tool button" );112 GtkLabel* label2 = gtk_label_new( "Orange button toggles finger scrolling wheel\nBlack button toggles finger toolbar\nDialer Button shows a dialog\n \n \n" ); 104 113 105 114 GtkHBox* hbox = gtk_hbox_new( TRUE, 10 ); -
trunk/src/target/OM-2007/openmoko-libs/libmokoui/moko-menu-box.c
r275 r298 19 19 #include "moko-menu-box.h" 20 20 21 #include <gtk/gtkimage.h> 22 #include <gtk/gtkimagemenuitem.h> 21 23 #include <gtk/gtklabel.h> 22 24 #include <gtk/gtkmenubar.h> … … 35 37 { 36 38 GtkMenuBar* menubar_l; 37 Gtk MenuItem* appitem;39 GtkImageMenuItem* appitem; 38 40 GtkMenu* appmenu; 39 41 GtkMenuBar* menubar_r; … … 154 156 155 157 } 156 GtkMenuItem* appitem = gtk_menu_item_new_with_label( g_get_application_name() ); 158 GtkImageMenuItem* appitem = gtk_image_menu_item_new_with_label( g_get_application_name() ); 159 //FIXME implement icon handling properly in moko_application 160 GtkImage* appicon = gtk_image_new_from_file( PKGDATADIR "/unknown" ); // openmoko-logo-alpha.png" ); 161 gtk_image_menu_item_set_image( appitem, appicon ); 157 162 gtk_widget_set_name( GTK_WIDGET(appitem), "transparent" ); 158 163 priv->appitem = appitem; … … 188 193 } 189 194 190 void 191 moko_menu_box_set_active_filter(MokoMenuBox* self, gchar* text) 195 void moko_menu_box_set_active_filter(MokoMenuBox* self, gchar* text) 192 196 { 193 197 //FIXME this only works with text labels
Note: See TracChangeset
for help on using the changeset viewer.
