summaryrefslogtreecommitdiff
path: root/gtk/gtkbutton.h
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2003-12-15 00:00:19 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2003-12-15 00:00:19 +0000
commit3fe038b505b3c74820001d8c3025f42a68742278 (patch)
tree1e1dc6206f6db403647305fcb0f7452d1f7ac1b7 /gtk/gtkbutton.h
parentd5da808188249de75911f64d4c8d9e49edd9619c (diff)
downloadgdk-pixbuf-3fe038b505b3c74820001d8c3025f42a68742278.tar.gz
Add new properties, xalign and yalign, with getter and setter
Mon Dec 15 00:56:54 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkbutton.[hc]: Add new properties, xalign and yalign, with getter and setter gtk_button_[sg]et_alignment(), to set the alignment of the child. (#70961, Jody Goldberg)
Diffstat (limited to 'gtk/gtkbutton.h')
-rw-r--r--gtk/gtkbutton.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/gtk/gtkbutton.h b/gtk/gtkbutton.h
index 9810edcf1..c6135b9ee 100644
--- a/gtk/gtkbutton.h
+++ b/gtk/gtkbutton.h
@@ -44,9 +44,8 @@ extern "C" {
#define GTK_IS_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BUTTON))
#define GTK_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_BUTTON, GtkButtonClass))
-
-typedef struct _GtkButton GtkButton;
-typedef struct _GtkButtonClass GtkButtonClass;
+typedef struct _GtkButton GtkButton;
+typedef struct _GtkButtonClass GtkButtonClass;
struct _GtkButton
{
@@ -114,6 +113,12 @@ gboolean gtk_button_get_use_stock (GtkButton *button);
void gtk_button_set_focus_on_click (GtkButton *button,
gboolean focus_on_click);
gboolean gtk_button_get_focus_on_click (GtkButton *button);
+void gtk_button_set_alignment (GtkButton *button,
+ gfloat xalign,
+ gfloat yalign);
+void gtk_button_get_alignment (GtkButton *button,
+ gfloat *xalign,
+ gfloat *yalign);
void _gtk_button_set_depressed (GtkButton *button,