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 |
|
|
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", |