mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-04 21:12:47 -05:00
GTK 3 prep: stop using *nearly* all GTK deprecated functions.
Building with -DGTK_DISABLE_DEPRECATED, we now suffer only one compile failure, for the use of gtk_quit_add() in idle_toplevel_callback_func. That function is apparently removed with no replacement in GTK 3, so I'll need to find a completely different approach to getting toplevel callbacks to run only in the outermost instance of gtk_main(). Also, this change doesn't do anything about the use of *GDK* deprecated functions, because those include the entire family of old-style drawing functions - i.e. the only way to build cleanly with -DGDK_DISABLE_DEPRECATED will be to switch to Cairo drawing.
This commit is contained in:
@ -38,6 +38,8 @@
|
||||
#define GDK_GRAB_SUCCESS GrabSuccess
|
||||
|
||||
#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_dialog_get_content_area(dlg) ((dlg)->vbox)
|
||||
#define gtk_dialog_get_action_area(dlg) ((dlg)->action_area)
|
||||
|
Reference in New Issue
Block a user