mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-05 13:32:48 -05:00
Use gtkcompat.h to slim down a few ifdefs.
Now that I've got a general place to centralise handling of at least the simple differences between GTK 1 and 2, I should use it wherever possible. So this commit removes just a small number of ifdefs which are either obsoleted by definitions already in gtkcompat.h (like set_size_request vs set_usize), or can easily be replaced by adding another (e.g. gtk_color_selection_set_has_opacity_control).
This commit is contained in:
@ -40,6 +40,8 @@
|
||||
#define gtk_widget_set_size_request gtk_widget_set_usize
|
||||
#define gtk_radio_button_get_group gtk_radio_button_group
|
||||
#define gtk_notebook_set_current_page gtk_notebook_set_page
|
||||
#define gtk_color_selection_set_has_opacity_control \
|
||||
gtk_color_selection_set_opacity
|
||||
|
||||
#define gtk_dialog_get_content_area(dlg) ((dlg)->vbox)
|
||||
#define gtk_dialog_get_action_area(dlg) ((dlg)->action_area)
|
||||
|
Reference in New Issue
Block a user