386 |
return FALSE; |
return FALSE; |
387 |
} |
} |
388 |
|
|
389 |
|
#ifndef NO_COPY_N_PASTE |
390 |
static void on_destroy_textview(GtkWidget *widget, gpointer data) { |
static void on_destroy_textview(GtkWidget *widget, gpointer data) { |
391 |
appdata_t *appdata = (appdata_t*)data; |
appdata_t *appdata = (appdata_t*)data; |
392 |
|
|
413 |
} |
} |
414 |
} |
} |
415 |
} |
} |
416 |
|
#endif |
417 |
|
|
418 |
static void ftime_update(GtkWidget *widget, cache_context_t *context, |
static void ftime_update(GtkWidget *widget, cache_context_t *context, |
419 |
gboolean update) { |
gboolean update) { |
498 |
} |
} |
499 |
} |
} |
500 |
|
|
501 |
|
#ifndef NO_COPY_N_PASTE |
502 |
static gboolean focus_in(GtkWidget *widget, GdkEventFocus *event, |
static gboolean focus_in(GtkWidget *widget, GdkEventFocus *event, |
503 |
gpointer data) { |
gpointer data) { |
504 |
appdata_t *appdata = (appdata_t*)data; |
appdata_t *appdata = (appdata_t*)data; |
517 |
|
|
518 |
return FALSE; |
return FALSE; |
519 |
} |
} |
520 |
|
#endif |
521 |
|
|
522 |
GtkWidget *cache_notes(cache_context_t *context) { |
GtkWidget *cache_notes(cache_context_t *context) { |
523 |
appdata_t *appdata = context->appdata; |
appdata_t *appdata = context->appdata; |
616 |
gtk_text_buffer_set_rich_text_format(context->notes.buffer, "RTF" ); |
gtk_text_buffer_set_rich_text_format(context->notes.buffer, "RTF" ); |
617 |
#endif |
#endif |
618 |
|
|
619 |
|
#ifndef NO_COPY_N_PASTE |
620 |
g_signal_connect(G_OBJECT(view), "focus-in-event", |
g_signal_connect(G_OBJECT(view), "focus-in-event", |
621 |
G_CALLBACK(focus_in), appdata); |
G_CALLBACK(focus_in), appdata); |
622 |
g_signal_connect(G_OBJECT(view), "destroy", |
g_signal_connect(G_OBJECT(view), "destroy", |
623 |
G_CALLBACK(on_destroy_textview), appdata); |
G_CALLBACK(on_destroy_textview), appdata); |
624 |
|
#endif |
625 |
|
|
626 |
#ifndef USE_PANNABLE_AREA |
#ifndef USE_PANNABLE_AREA |
627 |
gtk_container_add(GTK_CONTAINER(scrolled_window), view); |
gtk_container_add(GTK_CONTAINER(scrolled_window), view); |