--- trunk/src/notes.c 2009/06/20 11:08:47 1 +++ trunk/src/notes.c 2009/06/20 11:44:14 2 @@ -386,6 +386,7 @@ return FALSE; } +#ifndef NO_COPY_N_PASTE static void on_destroy_textview(GtkWidget *widget, gpointer data) { appdata_t *appdata = (appdata_t*)data; @@ -412,6 +413,7 @@ } } } +#endif static void ftime_update(GtkWidget *widget, cache_context_t *context, gboolean update) { @@ -496,6 +498,7 @@ } } +#ifndef NO_COPY_N_PASTE static gboolean focus_in(GtkWidget *widget, GdkEventFocus *event, gpointer data) { appdata_t *appdata = (appdata_t*)data; @@ -514,6 +517,7 @@ return FALSE; } +#endif GtkWidget *cache_notes(cache_context_t *context) { appdata_t *appdata = context->appdata; @@ -612,10 +616,12 @@ gtk_text_buffer_set_rich_text_format(context->notes.buffer, "RTF" ); #endif +#ifndef NO_COPY_N_PASTE g_signal_connect(G_OBJECT(view), "focus-in-event", G_CALLBACK(focus_in), appdata); g_signal_connect(G_OBJECT(view), "destroy", G_CALLBACK(on_destroy_textview), appdata); +#endif #ifndef USE_PANNABLE_AREA gtk_container_add(GTK_CONTAINER(scrolled_window), view);