[Goodies-commits] r1863 - in xfce4-notes-plugin/trunk: . panel-plugin

Mike Massonnet mmassonnet at xfce.org
Tue Aug 8 17:06:33 CEST 2006


Author: mmassonnet
Date: 2006-08-08 15:06:32 +0000 (Tue, 08 Aug 2006)
New Revision: 1863

Modified:
   xfce4-notes-plugin/trunk/ChangeLog
   xfce4-notes-plugin/trunk/panel-plugin/notes-window.c
Log:
	* panel-plugin/notes-window.c: I have forget to check for the 
	  response of the dialog ...

Modified: xfce4-notes-plugin/trunk/ChangeLog
===================================================================
--- xfce4-notes-plugin/trunk/ChangeLog	2006-08-08 14:25:52 UTC (rev 1862)
+++ xfce4-notes-plugin/trunk/ChangeLog	2006-08-08 15:06:32 UTC (rev 1863)
@@ -3,7 +3,8 @@
 	* panel-plugin/notes-window.c: Add a 3 pixel border around the 
 	  tab label text.  Rename the tabs on double clicking the tab 
 	  label.
-	* configure.in.in: Version it 1.3.90.2 (beta2\o/)
+	* panel-plugin/notes-window.c: I have forget to check for the 
+	  response of the dialog ...
 
 2006-08-05  Mike Massonnet <mmassonnet at gmail.com>
 

Modified: xfce4-notes-plugin/trunk/panel-plugin/notes-window.c
===================================================================
--- xfce4-notes-plugin/trunk/panel-plugin/notes-window.c	2006-08-08 14:25:52 UTC (rev 1862)
+++ xfce4-notes-plugin/trunk/panel-plugin/notes-window.c	2006-08-08 15:06:32 UTC (rev 1863)
@@ -415,15 +415,19 @@
 {
     GtkWidget *entry;
     NotePage *page;
-    entry = GTK_WIDGET (g_slist_nth_data (slist, 0));
-    page = (NotePage *) g_slist_nth_data (slist, 1);
 
-    DBG ("Rename to: %s", gtk_entry_get_text (GTK_ENTRY (entry)));
+    if (response == GTK_RESPONSE_OK)
+      {
+		entry = GTK_WIDGET (g_slist_nth_data (slist, 0));
+		page = (NotePage *) g_slist_nth_data (slist, 1);
 
-    page->label_dirty = TRUE;
-    gtk_label_set_text (GTK_LABEL (page->label),
-                        gtk_entry_get_text (GTK_ENTRY (entry)));
+		DBG ("Rename to: %s", gtk_entry_get_text (GTK_ENTRY (entry)));
 
+		page->label_dirty = TRUE;
+		gtk_label_set_text (GTK_LABEL (page->label),
+							gtk_entry_get_text (GTK_ENTRY (entry)));
+      }
+
     g_slist_free (slist);
     gtk_widget_destroy (GTK_WIDGET (dialog));
 }




More information about the Goodies-commits mailing list