diff options
author | Javier Jardón <jjardon@gnome.org> | 2011-04-11 22:33:38 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2011-04-11 22:33:38 +0100 |
commit | 1f50a4d0114e74c26a5281dedf5f5df0cf54e793 (patch) | |
tree | e58866d22af275640eb2a5cb9a24d45aea6b83df /gtk/gtkhseparator.c | |
parent | 1f9f5e8890bd63ec76258b61a15d21af202db14a (diff) | |
download | gtk+-1f50a4d0114e74c26a5281dedf5f5df0cf54e793.tar.gz |
Move documentation to inline comments: GtkHSeparator
Diffstat (limited to 'gtk/gtkhseparator.c')
-rw-r--r-- | gtk/gtkhseparator.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gtk/gtkhseparator.c b/gtk/gtkhseparator.c index edbc0c96a3..49b31d0b9b 100644 --- a/gtk/gtkhseparator.c +++ b/gtk/gtkhseparator.c @@ -30,6 +30,25 @@ #include "gtkorientable.h" +/** + * SECTION:gtkhseparator + * @Short_description: A horizontal separator + * @Title: GtkHSeparator + * @See_also: #GtkSeparator + * + * The #GtkHSeparator widget is a horizontal separator, used to group the + * widgets within a window. It displays a horizontal line with a shadow to + * make it appear sunken into the interface. + * + * <note> + * The #GtkHSeparator widget is not used as a separator within menus. + * To create a separator in a menu create an empty #GtkSeparatorMenuItem + * widget using gtk_separator_menu_item_new() and add it to the menu with + * gtk_menu_shell_append(). + * </note> + */ + + G_DEFINE_TYPE (GtkHSeparator, gtk_hseparator, GTK_TYPE_SEPARATOR) static void @@ -44,6 +63,13 @@ gtk_hseparator_init (GtkHSeparator *hseparator) GTK_ORIENTATION_HORIZONTAL); } +/** + * gtk_hseparator_new: + * + * Creates a new #GtkHSeparator. + * + * Returns: a new #GtkHSeparator. + */ GtkWidget * gtk_hseparator_new (void) { |