88 |
/* draw the locked/unlocked icon */ |
/* draw the locked/unlocked icon */ |
89 |
gdk_draw_pixbuf(context->gotoc.compass_pixmap, |
gdk_draw_pixbuf(context->gotoc.compass_pixmap, |
90 |
widget->style->fg_gc[GTK_STATE_NORMAL], |
widget->style->fg_gc[GTK_STATE_NORMAL], |
91 |
icon_get(ICON_MISC, context->appdata->compass_locked?2:3), |
icon_get(ICON_MISC, context->appdata->compass_locked?1:2), |
92 |
0, 0, (width-diameter)/2 + diameter/32, |
0, 0, (width-diameter)/2 + diameter/32, |
93 |
(height+diameter)/2 - 16 - diameter/32 , 16, 16, |
(height+diameter)/2 - 16 - diameter/32 , 16, 16, |
94 |
GDK_RGB_DITHER_NONE,0,0); |
GDK_RGB_DITHER_NONE,0,0); |
552 |
return FALSE; |
return FALSE; |
553 |
} |
} |
554 |
|
|
555 |
#ifdef USE_MAEMO |
#ifdef ENABLE_MAEMO_MAPPER |
556 |
static void on_mm_button_clicked(GtkButton *button, gpointer data) { |
static void on_mm_button_clicked(GtkButton *button, gpointer data) { |
557 |
cache_context_t *context = (cache_context_t*)data; |
cache_context_t *context = (cache_context_t*)data; |
558 |
|
|
642 |
gtk_widget_set_sensitive(context->gotoc.edit_but, FALSE); |
gtk_widget_set_sensitive(context->gotoc.edit_but, FALSE); |
643 |
|
|
644 |
#if 0 |
#if 0 |
645 |
context->gotoc.man_lat = gtk_entry_new(); |
context->gotoc.man_lat = entry_new(); |
646 |
gtk_table_attach_defaults(GTK_TABLE(table), context->gotoc.man_lat, 1,2,1,2); |
gtk_table_attach_defaults(GTK_TABLE(table), context->gotoc.man_lat, 1,2,1,2); |
647 |
pos_lat_str(str, sizeof(str), context->appdata->manual_goto.lat); |
pos_lat_str(str, sizeof(str), context->appdata->manual_goto.lat); |
648 |
gtk_entry_set_text(GTK_ENTRY(context->gotoc.man_lat), str); |
gtk_entry_set_text(GTK_ENTRY(context->gotoc.man_lat), str); |
649 |
textbox_disable(context->gotoc.man_lat); |
textbox_disable(context->gotoc.man_lat); |
650 |
context->gotoc.man_lon = gtk_entry_new(); |
context->gotoc.man_lon = entry_new(); |
651 |
gtk_table_attach_defaults(GTK_TABLE(table), context->gotoc.man_lon, 1,2,2,3); |
gtk_table_attach_defaults(GTK_TABLE(table), context->gotoc.man_lon, 1,2,2,3); |
652 |
pos_lon_str(str, sizeof(str), context->appdata->manual_goto.lon); |
pos_lon_str(str, sizeof(str), context->appdata->manual_goto.lon); |
653 |
gtk_entry_set_text(GTK_ENTRY(context->gotoc.man_lon), str); |
gtk_entry_set_text(GTK_ENTRY(context->gotoc.man_lon), str); |
706 |
|
|
707 |
gtk_box_pack_start(GTK_BOX(ihbox), context->gotoc.sat_area, 1,0,0); |
gtk_box_pack_start(GTK_BOX(ihbox), context->gotoc.sat_area, 1,0,0); |
708 |
|
|
709 |
#ifdef USE_MAEMO |
#ifdef ENABLE_MAEMO_MAPPER |
710 |
GtkWidget *mm_button = gtk_button_new(); |
GtkWidget *mm_button = gtk_button_new(); |
711 |
gtk_button_set_image(GTK_BUTTON(mm_button), icon_get_widget(ICON_MISC, 0)); |
gtk_button_set_image(GTK_BUTTON(mm_button), icon_get_widget(ICON_MISC, 0)); |
712 |
gtk_signal_connect(GTK_OBJECT(mm_button), "clicked", |
gtk_signal_connect(GTK_OBJECT(mm_button), "clicked", |