Commit 185bcb40 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

Move docs inline, fixing them on the way. (#143029, Steve Chaplin)

Tue May 25 21:54:00 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkframe.c: Move docs inline, fixing them on the
	way.  (#143029, Steve Chaplin)
parent fb88ec72
Tue May 25 21:54:00 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkframe.c: Move docs inline, fixing them on the
way. (#143029, Steve Chaplin)
2004-05-11 Robert Ögren <gtk@roboros.com>
* gdk/win32/gdkevents-win32.c (propagate): Don't propagate mouse
......
Tue May 25 21:54:00 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkframe.c: Move docs inline, fixing them on the
way. (#143029, Steve Chaplin)
2004-05-11 Robert Ögren <gtk@roboros.com>
* gdk/win32/gdkevents-win32.c (propagate): Don't propagate mouse
......
Tue May 25 21:54:00 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkframe.c: Move docs inline, fixing them on the
way. (#143029, Steve Chaplin)
2004-05-11 Robert Ögren <gtk@roboros.com>
* gdk/win32/gdkevents-win32.c (propagate): Don't propagate mouse
......
Tue May 25 21:54:00 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkframe.c: Move docs inline, fixing them on the
way. (#143029, Steve Chaplin)
2004-05-11 Robert Ögren <gtk@roboros.com>
* gdk/win32/gdkevents-win32.c (propagate): Don't propagate mouse
......
Tue May 25 21:54:55 2004 Matthias Clasen <maclas@gmx.de>
* gtk/tmpl/gtkframe.sgml: Move docs inline.
Wed May 19 23:42:40 2004 Matthias Clasen <maclas@gmx.de>
* gdk/gdk-sections.txt: Add the right include for the "X interaction"
......
......@@ -56,8 +56,6 @@ label can be controlled with gtk_frame_set_label_align().
<!-- ##### FUNCTION gtk_frame_new ##### -->
<para>
Create a new Frame, with optional label @label.
If @label is %NULL, the label is omitted.
</para>
@label:
......@@ -66,9 +64,6 @@ If @label is %NULL, the label is omitted.
<!-- ##### FUNCTION gtk_frame_set_label ##### -->
<para>
Set the text of the label. If @label is %NULL,
the current label, if any, is removed.
</para>
@frame:
......@@ -82,30 +77,23 @@ the current label, if any, is removed.
@frame:
@label_widget:
<!-- # Unused Parameters # -->
@title_widget:
<!-- ##### FUNCTION gtk_frame_set_label_align ##### -->
<para>
Set the alignment of the Frame widget's label. The
default value for a newly created Frame is 0.0.
</para>
@frame: The Frame widget.
@xalign: The position of the label along the top edge
of the widget. A value of 0.0 represents left alignment;
1.0 represents right alignment.
@yalign: The y alignment of the label. Currently ignored.
@frame:
@xalign:
@yalign:
<!-- ##### FUNCTION gtk_frame_set_shadow_type ##### -->
<para>
Set the shadow type for the Frame widget.
</para>
@frame: The Frame widget.
@type: New shadow type.
@frame:
@type:
<!-- ##### FUNCTION gtk_frame_get_label ##### -->
......
......@@ -263,6 +263,15 @@ gtk_frame_get_property (GObject *object,
}
}
/**
* gtk_frame_new:
* @label: the text to use as the label of the frame
*
* Creates a new #GtkFrame, with optional label @label.
* If @label is %NULL, the label is omitted.
*
* Return value: a new #GtkFrame widget
**/
GtkWidget*
gtk_frame_new (const gchar *label)
{
......@@ -297,6 +306,14 @@ gtk_frame_forall (GtkContainer *container,
(* callback) (frame->label_widget, callback_data);
}
/**
* gtk_frame_set_label:
* @frame: a #GtkFrame
* @label: the text to use as the label of the frame
*
* Sets the text of the label. If @label is %NULL,
* the current label is removed.
**/
void
gtk_frame_set_label (GtkFrame *frame,
const gchar *label)
......@@ -320,7 +337,7 @@ gtk_frame_set_label (GtkFrame *frame,
* gtk_frame_get_label:
* @frame: a #GtkFrame
*
* If the frame's label widget is a #GtkLabel, return the
* If the frame's label widget is a #GtkLabel, returns the
* text in the label widget. (The frame will have a #GtkLabel
* for the label widget if a non-%NULL argument was passed
* to gtk_frame_new().)
......@@ -346,7 +363,7 @@ gtk_frame_get_label (GtkFrame *frame)
* @frame: a #GtkFrame
* @label_widget: the new label widget
*
* Set the label widget for the frame. This is the widget that
* Sets the label widget for the frame. This is the widget that
* will appear embedded in the top edge of the frame as a
* title.
**/
......@@ -404,6 +421,18 @@ gtk_frame_get_label_widget (GtkFrame *frame)
return frame->label_widget;
}
/**
* gtk_frame_set_label_align:
* @frame: a #GtkFrame
* @xalign: The position of the label along the top edge
* of the widget. A value of 0.0 represents left alignment;
* 1.0 represents right alignment.
* @yalign: The y alignment of the label. A value of 0.0 aligns under
* the frame; 1.0 aligns above the frame.
*
* Sets the alignment of the frame widget's label. The
* default values for a newly created frame are 0.0 and 0.5.
**/
void
gtk_frame_set_label_align (GtkFrame *frame,
gfloat xalign,
......@@ -453,6 +482,13 @@ gtk_frame_get_label_align (GtkFrame *frame,
*yalign = frame->label_yalign;
}
/**
* gtk_frame_set_shadow_type:
* @frame: a #GtkFrame
* @type: the new #GtkShadowType
*
* Sets the shadow type for @frame.
**/
void
gtk_frame_set_shadow_type (GtkFrame *frame,
GtkShadowType type)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment