[Goodies-commits] r3348 - xfce4-notes-plugin/trunk/panel-plugin

Mike Massonnet mmassonnet at xfce.org
Thu Oct 11 00:01:40 CEST 2007


Author: mmassonnet
Date: 2007-10-10 22:01:40 +0000 (Wed, 10 Oct 2007)
New Revision: 3348

Modified:
   xfce4-notes-plugin/trunk/panel-plugin/notes.c
Log:
* notes.c(notes_window_new_with_label), notes.c(notes_note_new): Load data
  before connecting the signals.


Modified: xfce4-notes-plugin/trunk/panel-plugin/notes.c
===================================================================
--- xfce4-notes-plugin/trunk/panel-plugin/notes.c	2007-10-10 22:01:31 UTC (rev 3347)
+++ xfce4-notes-plugin/trunk/panel-plugin/notes.c	2007-10-10 22:01:40 UTC (rev 3348)
@@ -312,6 +312,13 @@
                         NULL);
   g_free (accel_name);
 
+  /* Load data */
+  notes_window_load_data (notes_window);
+  notes_window_menu_new (notes_window);
+  notes_plugin->windows = g_slist_insert_sorted (notes_plugin->windows,
+                                                 notes_window,
+                                                 (GCompareFunc)notes_window_strcasecmp);
+
   /* Signals */
   g_signal_connect_swapped (notes_window->window,
                             "window-state-event",
@@ -346,13 +353,6 @@
                             G_CALLBACK (notes_window_hide),
                             notes_window);
 
-  /* Load data */
-  notes_window_load_data (notes_window);
-  notes_window_menu_new (notes_window);
-  notes_plugin->windows = g_slist_insert_sorted (notes_plugin->windows,
-                                                 notes_window,
-                                                 (GCompareFunc)notes_window_strcasecmp);
-
   /* Show the stuff, or not */
   if (G_UNLIKELY (notes_window->show_statusbar))
     gtk_widget_show (notes_window->statusbar);
@@ -1207,6 +1207,12 @@
   gtk_container_add (GTK_CONTAINER (notes_note->scrolled_window),
                      notes_note->text_view);
 
+  /* Load data */
+  notes_note_load_data (notes_note, buffer);
+  notes_window->notes = g_slist_insert_sorted (notes_window->notes,
+                                               notes_note,
+                                               (GCompareFunc)notes_note_strcasecmp);
+
   /* Signals */
   g_signal_connect_swapped (notes_note->text_view,
                             "key-press-event",
@@ -1217,12 +1223,6 @@
                             G_CALLBACK (notes_note_buffer_changed),
                             notes_note);
 
-  /* Load data */
-  notes_note_load_data (notes_note, buffer);
-  notes_window->notes = g_slist_insert_sorted (notes_window->notes,
-                                               notes_note,
-                                               (GCompareFunc)notes_note_strcasecmp);
-
   /* Show the stuff */
   gtk_widget_show_all (eb_border);
   gtk_widget_show_all (notes_note->scrolled_window);




More information about the Goodies-commits mailing list