summaryrefslogtreecommitdiff
path: root/gtk/gtkbbox.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-07-06 02:10:32 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-07-06 02:10:32 +0000
commit0b6c3f54974234f04835911c8846f304401bd4e4 (patch)
tree31134c5b98e9719c4ab4a6c052bb894bc5a10390 /gtk/gtkbbox.h
parentd69aa7e9c1a07fc5188555038c2bffc4ee3ea24d (diff)
downloadgtk+-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/gtkbbox.h')
-rw-r--r--gtk/gtkbbox.h35
1 files changed, 22 insertions, 13 deletions
diff --git a/gtk/gtkbbox.h b/gtk/gtkbbox.h
index 5ac286e799..8a7853f783 100644
--- a/gtk/gtkbbox.h
+++ b/gtk/gtkbbox.h
@@ -66,28 +66,37 @@ struct _GtkButtonBoxClass
GtkType gtk_button_box_get_type (void) G_GNUC_CONST;
-GtkButtonBoxStyle gtk_button_box_get_layout (GtkButtonBox *widget);
-void gtk_button_box_set_layout (GtkButtonBox *widget,
- GtkButtonBoxStyle layout_style);
+GtkButtonBoxStyle gtk_button_box_get_layout (GtkButtonBox *widget);
+void gtk_button_box_set_layout (GtkButtonBox *widget,
+ GtkButtonBoxStyle layout_style);
+void gtk_button_box_set_child_secondary (GtkButtonBox *widget,
+ GtkWidget *child,
+ gboolean is_secondary);
#ifndef GTK_DISABLE_DEPRECATED
#define gtk_button_box_set_spacing gtk_box_set_spacing
#define gtk_button_box_get_spacing gtk_box_get_spacing
-void gtk_button_box_set_child_size (GtkButtonBox *widget,
- gint min_width, gint min_height);
-void gtk_button_box_set_child_ipadding (GtkButtonBox *widget, gint ipad_x, gint ipad_y);
-void gtk_button_box_get_child_size (GtkButtonBox *widget,
- gint *min_width, gint *min_height);
-void gtk_button_box_get_child_ipadding (GtkButtonBox *widget, gint *ipad_x, gint *ipad_y);
+void gtk_button_box_set_child_size (GtkButtonBox *widget,
+ gint min_width,
+ gint min_height);
+void gtk_button_box_set_child_ipadding (GtkButtonBox *widget,
+ gint ipad_x,
+ gint ipad_y);
+void gtk_button_box_get_child_size (GtkButtonBox *widget,
+ gint *min_width,
+ gint *min_height);
+void gtk_button_box_get_child_ipadding (GtkButtonBox *widget,
+ gint *ipad_x,
+ gint *ipad_y);
#endif
/* Internal method - do not use. */
void _gtk_button_box_child_requisition (GtkWidget *widget,
- int *nvis_children,
- int *width,
- int *height);
-
+ int *nvis_children,
+ int *nvis_secondaries,
+ int *width,
+ int *height);
#ifdef __cplusplus
}
#endif /* __cplusplus */