GtkDialog buttons don't follow GNOME HIG
Steps to reproduce
- Create an instance of GtkDialog with some buttons and contents
Current behavior
Almost nothing in the dialog's built in widgets have decent margins, looking very out of place compared to all other GTK/GNOME applications.
Expected outcome
Margins should either follow the GNOME HIG, or if that's not possible, the dialog should expose properties to control this.
Version information
Fedora 33 with gtk3-3.24.29-1.fc33.x86_64.
Additional information
There are a bunch of style properties that might be able to fix this. Their defaults are very small, and evidently Adwaita doesn't override these with something more in line with the HIG. And if I've understood things correctly, applications should generally not mess around with style properties.
The HIG states "Follow the layout guidelines when designing the content of windows." but mentions nothing about how to get the rest of the dialog in compliance.
Some guidance and/or clarification in the documentation would be welcome.
Simple example:
#!/usr/bin/python3
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
dlg = Gtk.Dialog(title="Test Dialog")
dlg.add_button("_Cancel", Gtk.ResponseType.CANCEL)
dlg.add_button("_OK", Gtk.ResponseType.OK)
content = dlg.get_content_area()
vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=12)
vbox.show()
content.pack_start(vbox, expand=False, fill=False, padding=0)
label = Gtk.Label(label="Please enter some stuff here:")
label.show()
vbox.pack_start(label, expand=False, fill=False, padding=0)
entry = Gtk.Entry()
entry.show()
vbox.pack_start(entry, expand=False, fill=False, padding=0)
dlg.run()