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); |
827 |
GtkWidget *label = gtk_label_new(_("Export to:")); |
GtkWidget *label = gtk_label_new(_("Export to:")); |
828 |
gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE,0); |
gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE,0); |
829 |
gtk_misc_set_alignment(GTK_MISC(label), 0.f, 0.5f); |
gtk_misc_set_alignment(GTK_MISC(label), 0.f, 0.5f); |
830 |
GtkWidget *button = gtk_button_new_with_label(_("Browse...")); |
GtkWidget *button = gtk_button_new_with_label(_("Browse")); |
831 |
gtk_signal_connect(GTK_OBJECT(button), "clicked", |
gtk_signal_connect(GTK_OBJECT(button), "clicked", |
832 |
GTK_SIGNAL_FUNC(on_browse), (gpointer)&context); |
GTK_SIGNAL_FUNC(on_browse), (gpointer)&context); |
833 |
gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE,0); |
gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE,0); |