diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-07-06 02:10:32 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-07-06 02:10:32 +0000 |
commit | 0b6c3f54974234f04835911c8846f304401bd4e4 (patch) | |
tree | 31134c5b98e9719c4ab4a6c052bb894bc5a10390 /gtk/gtkdialog.c | |
parent | d69aa7e9c1a07fc5188555038c2bffc4ee3ea24d (diff) | |
download | gtk+-0b6c3f54974234f04835911c8846f304401bd4e4.tar.gz |
Patch from Gregory Merchan to add gtk_button_box_set_secondary(), which
Thu Jul 5 21:53:46 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
Patch from Gregory Merchan to add
gtk_button_box_set_secondary(), which separates
the child into a separate group from the normal
buttons. (#56331)
* gtk/gtkdialog.c: Make help buttons secondary by
default.
* gtk/gtkbbox.c: Added a child property "secondary".
* gtk/testgtk.c: Turn on the help button for the
color selector to check that it properly appears
as secondary.
Diffstat (limited to 'gtk/gtkdialog.c')
-rw-r--r-- | gtk/gtkdialog.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c index 18b28df3bf..4dba60f1b5 100644 --- a/gtk/gtkdialog.c +++ b/gtk/gtkdialog.c @@ -514,7 +514,10 @@ gtk_dialog_add_action_widget (GtkDialog *dialog, gtk_box_pack_end (GTK_BOX (dialog->action_area), child, - FALSE, TRUE, 0); + FALSE, TRUE, 0); + + if (response_id == GTK_RESPONSE_HELP) + gtk_button_box_set_child_secondary (GTK_BUTTON_BOX (dialog->action_area), child, TRUE); } /** |