Diff of /trunk/src/notes.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1 by harbaum, Sat Jun 20 11:08:47 2009 UTC revision 2 by harbaum, Sat Jun 20 11:44:14 2009 UTC
# Line 386  gint notes_destroy_event(GtkWidget *widg Line 386  gint notes_destroy_event(GtkWidget *widg
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    
# Line 412  static void on_destroy_textview(GtkWidge Line 413  static void on_destroy_textview(GtkWidge
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) {
# Line 496  static void callback_modified(GtkWidget Line 498  static void callback_modified(GtkWidget
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;
# Line 514  static gboolean focus_in(GtkWidget *widg Line 517  static gboolean focus_in(GtkWidget *widg
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;
# Line 612  GtkWidget *cache_notes(cache_context_t * Line 616  GtkWidget *cache_notes(cache_context_t *
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);

Legend:
Removed from v.1  
changed lines
  Added in v.2