# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1466356880 0 # Node ID 5035750bcc65aa0abbf2d862552b9047f487a569 # Parent 102fca5f2e19c5b38e5a4b78dab4c68909ba15df Fix some deprecation warnings in recent GTK3 versions... Whole classes GtkStatusIcon and GtkMisc have been deprecated. This will take some work to rewrite. diff -r 102fca5f2e19 -r 5035750bcc65 gtk3/dw.c --- a/gtk3/dw.c Sun Jan 03 04:10:57 2016 +0000 +++ b/gtk3/dw.c Sun Jun 19 17:21:20 2016 +0000 @@ -3,7 +3,7 @@ * A GTK like cross-platform GUI * GTK3 forwarder module for portabilty. * - * (C) 2000-2013 Brian Smith + * (C) 2000-2016 Brian Smith * (C) 2003-2011 Mark Hessling * (C) 2002 Nickolay V. Shmyrev */ @@ -403,7 +403,7 @@ child_box = gtk_event_box_new (); child_widget_box = gtk_event_box_new (); - gtk_widget_set_margin_left(child_widget_box, 2); + gtk_widget_set_margin_start(child_widget_box, 2); top_event_box = gtk_event_box_new (); bottom_event_box = gtk_event_box_new (); grid = gtk_grid_new (); @@ -489,10 +489,10 @@ gtk_widget_show (button[i]); } - cursor = gdk_cursor_new (GDK_HAND1); + cursor = gdk_cursor_new_for_display (gdk_display_get_default(), GDK_HAND1); gtk_widget_realize (top_event_box); gdk_window_set_cursor (gtk_widget_get_window(top_event_box), cursor); - cursor = gdk_cursor_new (GDK_BOTTOM_RIGHT_CORNER); + cursor = gdk_cursor_new_for_display (gdk_display_get_default(), GDK_BOTTOM_RIGHT_CORNER); gtk_widget_realize (bottom_event_box); gdk_window_set_cursor (gtk_widget_get_window(bottom_event_box), cursor); @@ -2916,7 +2916,7 @@ else if(!pointertype) cursor = NULL; else - cursor = gdk_cursor_new(pointertype); + cursor = gdk_cursor_new_for_display(gdk_display_get_default(), pointertype); if(handle && gtk_widget_get_window(handle)) gdk_window_set_cursor(gtk_widget_get_window(handle), cursor); if(cursor)