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 7 by harbaum, Thu Jun 25 15:24:24 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);
# Line 821  void notes_log_export(appdata_t *appdata Line 827  void notes_log_export(appdata_t *appdata
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);

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