[Gpa-commits] r828 - trunk/src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Feb 28 21:35:40 CET 2008


Author: marcus
Date: 2008-02-28 21:35:39 +0100 (Thu, 28 Feb 2008)
New Revision: 828

Modified:
   trunk/src/ChangeLog
   trunk/src/clipboard.c
Log:
2008-02-28  Marcus Brinkmann  <marcus at g10code.de>

	* clipboard.c (gpa_clipboard_constructor): Call
	update_selection_sensitive_widgets.


Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog	2008-02-28 18:27:27 UTC (rev 827)
+++ trunk/src/ChangeLog	2008-02-28 20:35:39 UTC (rev 828)
@@ -1,3 +1,8 @@
+2008-02-28  Marcus Brinkmann  <marcus at g10code.de>
+
+	* clipboard.c (gpa_clipboard_constructor): Call
+	update_selection_sensitive_widgets.
+
 2008-02-28  Werner Koch  <wk at g10code.com>
 
 	* server.c (struct conn_ctrl_s): Add fields is_unfinished and

Modified: trunk/src/clipboard.c
===================================================================
--- trunk/src/clipboard.c	2008-02-28 18:27:27 UTC (rev 827)
+++ trunk/src/clipboard.c	2008-02-28 20:35:39 UTC (rev 828)
@@ -1144,6 +1144,9 @@
     set_paste_sensitivity (clipboard, clip);
   }
 
+  /* Update the sensitivity of selection items.  */
+  update_selection_sensitive_widgets (clipboard);
+
   return object;
 }
 
@@ -1155,7 +1158,6 @@
   GpaClipboard *clipboard;
 
   clipboard = g_object_new (GPA_CLIPBOARD_TYPE, NULL);  
-  // FIXME  update_selection_sensitive_widgets (clipboard);
 
   return clipboard;
 }
@@ -1166,10 +1168,9 @@
 GtkWidget *
 gpa_clipboard_get_instance (void)
 {
-  if (!instance)
-    {
-      instance = gpa_clipboard_new ();
-    }
+  if (! instance)
+    instance = gpa_clipboard_new ();
+
   return GTK_WIDGET (instance);
 }
 



More information about the Gpa-commits mailing list