[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: gaf.git: branch: master updated (1.5.1-20081221-212-g357db04)



The branch, master has been updated
       via  357db04ba91ad4047abf12f5fd7bf61db849a718 (commit)
      from  cf9db58115f4924f4c64d4012bde3c902f2f918d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 gschem/src/x_clipboard.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


=================
 Commit Messages
=================

commit 357db04ba91ad4047abf12f5fd7bf61db849a718
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Thu Feb 5 03:54:18 2009 +0000

    gschem: Avoid the use of gtk_selection_data_get_data on old GTK versions
    
    This API was added in GTK 2.14

:100644 100644 30f6043... 2460f24... M	gschem/src/x_clipboard.c

=========
 Changes
=========

commit 357db04ba91ad4047abf12f5fd7bf61db849a718
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Thu Feb 5 03:54:18 2009 +0000

    gschem: Avoid the use of gtk_selection_data_get_data on old GTK versions
    
    This API was added in GTK 2.14

diff --git a/gschem/src/x_clipboard.c b/gschem/src/x_clipboard.c
index 30f6043..2460f24 100644
--- a/gschem/src/x_clipboard.c
+++ b/gschem/src/x_clipboard.c
@@ -196,7 +196,11 @@ x_clipboard_get (GSCHEM_TOPLEVEL *w_current)
   if (selection_data == NULL) return FALSE;
 
   /* Convert the data buffer to OBJECTs */
+#if GTK_CHECK_VERSION(2,14,0)
   buf = gtk_selection_data_get_data (selection_data);
+#else
+  buf = selection_data->data;
+#endif
 
   toplevel->ADDING_SEL = 1; /* HACK: Avoid adding objects to the tile system */
   object_list = o_read_buffer (toplevel, object_list,




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs