lbm_uimflow_dlg.c: Pacify another GTK checkAPIs.pl warning.

Add another "Wireshark" macros to old-gtk-compat.h for GTK API that has been deprecated.

Change-Id: Icae4ebae365329fad076324c23d5cee4c89893b5
Reviewed-on: https://code.wireshark.org/review/16803
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Michael Mann 2016-07-31 10:19:05 -04:00
parent 9f4a294f22
commit 7855160bab
2 changed files with 2 additions and 1 deletions

View File

@ -373,7 +373,7 @@ static void lbmc_uim_flow_graph_dlg_create(void)
#if GTK_CHECK_VERSION(2,18,0)
gtk_widget_set_can_default(bt_cancel, TRUE);
#else
GTK_WIDGET_SET_FLAGS(bt_cancel, GTK_CAN_DEFAULT);
WS_GTK_WIDGET_SET_FLAGS(bt_cancel, GTK_CAN_DEFAULT);
#endif
gtk_widget_set_tooltip_text(bt_cancel, "Cancel this dialog");
window_set_cancel_button(flow_graph_dlg_w, bt_cancel, window_cancel_button_cb);

View File

@ -58,6 +58,7 @@
# define gtk_widget_set_window(x, y) (x)->window = (y)
# define gtk_widget_set_can_default(w,y) if(y==TRUE){GTK_WIDGET_SET_FLAGS (w, GTK_CAN_DEFAULT);}else{GTK_WIDGET_UNSET_FLAGS (w, GTK_CAN_DEFAULT);}
# define gtk_widget_set_can_focus(w,y) if(y==TRUE){GTK_WIDGET_SET_FLAGS (w, GTK_CAN_FOCUS);}else{GTK_WIDGET_UNSET_FLAGS (w, GTK_CAN_FOCUS);}
# define WS_GTK_WIDGET_SET_FLAGS GTK_WIDGET_SET_FLAGS
#endif
#if !GTK_CHECK_VERSION (2, 20, 0)