424 |
gtk_text_view_set_editable(GTK_TEXT_VIEW(view), FALSE); |
gtk_text_view_set_editable(GTK_TEXT_VIEW(view), FALSE); |
425 |
gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(view), FALSE); |
gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(view), FALSE); |
426 |
|
|
427 |
|
// #if MAEMO_VERSION_MAJOR >= 5 |
428 |
|
#if 1 |
429 |
|
/* make this look nicer in fremantle and not just black-on-white */ |
430 |
|
|
431 |
|
#if 0 |
432 |
|
/* this causes a black background */ |
433 |
|
gtk_widget_modify_base(view, GTK_STATE_NORMAL, |
434 |
|
>K_WIDGET(appdata->window)->style->bg[GTK_STATE_NORMAL]); |
435 |
|
/* and this causes white letters */ |
436 |
|
gtk_widget_modify_text(view, GTK_STATE_NORMAL, |
437 |
|
>K_WIDGET(appdata->window)->style->text[GTK_STATE_NORMAL]); |
438 |
|
#else |
439 |
|
/* just use the default style */ |
440 |
|
#if 1 |
441 |
|
gtk_widget_set_style(view, GTK_WIDGET(appdata->window)->style); |
442 |
|
#else |
443 |
|
GtkStyle *style = gtk_rc_get_style(GTK_WIDGET(appdata->window)); |
444 |
|
gtk_widget_set_style(view, style); |
445 |
|
#endif |
446 |
|
#endif |
447 |
|
|
448 |
|
#endif |
449 |
|
|
450 |
#ifndef NO_COPY_N_PASTE |
#ifndef NO_COPY_N_PASTE |
451 |
g_signal_connect(G_OBJECT(view), "destroy", |
g_signal_connect(G_OBJECT(view), "destroy", |
452 |
G_CALLBACK(on_destroy_textview), appdata); |
G_CALLBACK(on_destroy_textview), appdata); |