comparison src/image.c @ 1810:c416d099a3dc

GTK marks several functions as deprecated The following functions has been replaced and deprecated by version 2.20: - GTK_WIDGET_CAN_FOCUS - GTK_WIDGET_DRAWABLE - GTK_WIDGET_HAS_FOCUS - GTK_WIDGET_HAS_GRAB - GTK_WIDGET_IS_SENSITIVE - GTK_WIDGET_NO_WINDOW - GTK_WIDGET_REALIZED - GTK_WIDGET_SENSITIVE - GTK_WIDGET_STATE - GTK_WIDGET_TOPLEVEL - GTK_WIDGET_VISIBLE
author mow
date Mon, 10 May 2010 11:32:56 +0000
parents 956aab097ea7
children
comparison
equal deleted inserted replaced
1809:e1c18f81e637 1810:c416d099a3dc
903 903
904 static gboolean image_focus_expose(GtkWidget *widget, GdkEventExpose *event, gpointer data) 904 static gboolean image_focus_expose(GtkWidget *widget, GdkEventExpose *event, gpointer data)
905 { 905 {
906 ImageWindow *imd = data; 906 ImageWindow *imd = data;
907 907
908 #if GTK_CHECK_VERSION(2,20,0)
909 image_focus_paint(imd, gtk_widget_has_focus(widget), &event->area);
910 #else
908 image_focus_paint(imd, GTK_WIDGET_HAS_FOCUS(widget), &event->area); 911 image_focus_paint(imd, GTK_WIDGET_HAS_FOCUS(widget), &event->area);
912 #endif
909 return TRUE; 913 return TRUE;
910 } 914 }
911 915
912 static gboolean image_focus_in_cb(GtkWidget *widget, GdkEventFocus *event, gpointer data) 916 static gboolean image_focus_in_cb(GtkWidget *widget, GdkEventFocus *event, gpointer data)
913 { 917 {