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

gEDA-cvs: pcb.git: branch: master updated (596fa244e208faf3e0e81a7309e73d300c34a6d1)



The branch, master has been updated
       via  596fa244e208faf3e0e81a7309e73d300c34a6d1 (commit)
      from  75b5710f6a232752ad6edef416ab0578939dbad0 (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
=========

 src/hid/gtk/gtkhid-main.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


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

commit 596fa244e208faf3e0e81a7309e73d300c34a6d1
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    Revert "hid/gtk: Avoid the deprecated gdk_drawable_get_display()"
    
    This reverts commit c6d6ca16e58b5c7f2248c21e3248825f54e52374.
    
    Turns out the replacement API I used was only introduced in GTK 2.24,
    which is still a little new for us here.

:100644 100644 3e253cb... 89d50be... M	src/hid/gtk/gtkhid-main.c

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

commit 596fa244e208faf3e0e81a7309e73d300c34a6d1
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    Revert "hid/gtk: Avoid the deprecated gdk_drawable_get_display()"
    
    This reverts commit c6d6ca16e58b5c7f2248c21e3248825f54e52374.
    
    Turns out the replacement API I used was only introduced in GTK 2.24,
    which is still a little new for us here.

diff --git a/src/hid/gtk/gtkhid-main.c b/src/hid/gtk/gtkhid-main.c
index 3e253cb..89d50be 100644
--- a/src/hid/gtk/gtkhid-main.c
+++ b/src/hid/gtk/gtkhid-main.c
@@ -1542,8 +1542,9 @@ Benchmark (int argc, char **argv, Coord x, Coord y)
 {
   int i = 0;
   time_t start, end;
-  GdkWindow *window = gtk_widget_get_window (gport->drawing_area);
-  GdkDisplay *display = gdk_window_get_display (window);
+  GdkDisplay *display;
+
+  display = gdk_drawable_get_display (gport->drawable);
 
   gdk_display_sync (display);
   time (&start);




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