]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Stop using GtkDialog (for most purposes) in GTK 3!
authorSimon Tatham <anakin@pobox.com>
Mon, 31 Aug 2015 14:45:18 +0000 (15:45 +0100)
committerSimon Tatham <anakin@pobox.com>
Mon, 31 Aug 2015 14:45:18 +0000 (15:45 +0100)
commitdc11417aeeec0735071cf98347af6f9616ba6a2e
tree8c957f13cf840b2fbdd0c74b9b1c59680510a0e9
parent749b0fdda01dc7837302bbcc0f577e8d397cc0e6
Stop using GtkDialog (for most purposes) in GTK 3!

They've now deprecated gtk_dialog_get_action_area, because they really
want a dialog box's action area to be filled with nothing but buttons
controlled by GTK which end the dialog with a response code. But we're
accustomed to putting all sorts of other things in our action area -
non-buttons, buttons that don't end the dialog, and sub-widgets that
do layout - and so I think it's no longer sensible to be trying to
coerce our use cases into GtkDialog.

Hence, I'm introducing a set of wrapper functions which equivocate
between a GtkDialog for GTK1 and GTK2, and a GtkWindow with a vbox in
it for GTK3, and I'll lay out the action area by hand.

(Not everything has sensible layout and margins in the new GTK3 system
yet, but I can sort that out later.)

Because the new functions are needed by gtkask.c, which doesn't link
against gtkdlg.c or include putty.h, I've put them in a new source
file and header file pair gtkmisc.[ch] which is common to gtkask and
the main GTK edifice.
Recipe
unix/gtkask.c
unix/gtkdlg.c
unix/gtkmisc.c [new file with mode: 0644]
unix/gtkmisc.h [new file with mode: 0644]