Mercurial > dwindows
changeset 1912:5035750bcc65
Fix some deprecation warnings in recent GTK3 versions...
Whole classes GtkStatusIcon and GtkMisc have been deprecated.
This will take some work to rewrite.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 19 Jun 2016 17:21:20 +0000 |
parents | 102fca5f2e19 |
children | 5d32be499016 |
files | gtk3/dw.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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 <brian@dbsoft.org> + * (C) 2000-2016 Brian Smith <brian@dbsoft.org> * (C) 2003-2011 Mark Hessling <mark@rexx.org> * (C) 2002 Nickolay V. Shmyrev <shmyrev@yandex.ru> */ @@ -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)