Fix stupid error introduced last night that was making things decidedly
Sun Jun 24 11:29:35 2001 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error introduced last night that was making things decidedly not work. * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters so that we have getter/setter pairing everywhere it makes sense. (#55767) * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.: Rename gtk_radio_button_group to gtk_radio_button_get_group, add a deprecated compat macro. (#55516) * gtk/gtklabel.[ch]: Add functions gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(), gtk_label_set_label(), which mirror the property API for GtkLabel. Make gtk_label_get_attributes() only reflect the attributes set by gtk_label_set_attributes. * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename from gtk_notebook_set_page().
This commit is contained in:
@ -242,6 +242,28 @@ gtk_misc_set_alignment (GtkMisc *misc,
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_misc_get_alignment:
|
||||
* @misc: a #GtkMisc
|
||||
* @xalign: location to store X alignment of @misc, or %NULL
|
||||
* @yalign: location to store Y alignment of @misc, or %NULL
|
||||
*
|
||||
* Gets the X and Y alignment of the widget within its allocation. See
|
||||
* gtk_misc_set_alignment().
|
||||
**/
|
||||
void
|
||||
gtk_misc_get_alignment (GtkMisc *misc,
|
||||
gfloat *xalign,
|
||||
gfloat *yalign)
|
||||
{
|
||||
g_return_if_fail (GTK_IS_MISC (misc));
|
||||
|
||||
if (xalign)
|
||||
*xalign = misc->xalign;
|
||||
if (yalign)
|
||||
*yalign = misc->yalign;
|
||||
}
|
||||
|
||||
void
|
||||
gtk_misc_set_padding (GtkMisc *misc,
|
||||
gint xpad,
|
||||
@ -280,6 +302,27 @@ gtk_misc_set_padding (GtkMisc *misc,
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_misc_get_padding:
|
||||
* @misc: a #GtkMisc
|
||||
* @xpad: location to store padding in the X direction, or %NULL
|
||||
* @ypad: location to store padding in the Y direction, or %NULL
|
||||
*
|
||||
* Gets the padding in the X and Y directions of the widget. See gtk_misc_set_padding().
|
||||
**/
|
||||
void
|
||||
gtk_misc_get_padding (GtkMisc *misc,
|
||||
gint *xpad,
|
||||
gint *ypad)
|
||||
{
|
||||
g_return_if_fail (GTK_IS_MISC (misc));
|
||||
|
||||
if (xpad)
|
||||
*xpad = misc->xpad;
|
||||
if (ypad)
|
||||
*ypad = misc->ypad;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_misc_realize (GtkWidget *widget)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user