diff --git a/docs/reference/gtk/tmpl/.gitignore b/docs/reference/gtk/tmpl/.gitignore index 618a2dd7b1..d1700d03f9 100644 --- a/docs/reference/gtk/tmpl/.gitignore +++ b/docs/reference/gtk/tmpl/.gitignore @@ -10,6 +10,7 @@ gtkradioaction.sgml gtkrecentaction.sgml gtkscalebutton.sgml gtkseparator.sgml +gtkseparatormenuitem.sgml gtktesting.sgml gtktextiter.sgml gtktoggleaction.sgml diff --git a/docs/reference/gtk/tmpl/gtkseparatormenuitem.sgml b/docs/reference/gtk/tmpl/gtkseparatormenuitem.sgml deleted file mode 100644 index d3fcd5f76a..0000000000 --- a/docs/reference/gtk/tmpl/gtkseparatormenuitem.sgml +++ /dev/null @@ -1,40 +0,0 @@ - -GtkSeparatorMenuItem - - -A separator used in menus - - - -The #GtkSeparatorMenuItem is a separator used to group -items within a menu. It displays a horizontal line with a shadow to -make it appear sunken into the interface. - - - - - - - - - - - - - - - -The #GtkSeparatorMenuItem-struct struct contains private data only, and -should be accessed using the functions below. - - - - - -Creates a new #GtkSeparatorMenuItem. - - -@void: -@Returns: a new #GtkSeparatorMenuItem. - - diff --git a/gtk/gtkseparatormenuitem.c b/gtk/gtkseparatormenuitem.c index e59de238f5..d096b5f33c 100644 --- a/gtk/gtkseparatormenuitem.c +++ b/gtk/gtkseparatormenuitem.c @@ -28,6 +28,18 @@ #include "gtkseparatormenuitem.h" #include "gtkalias.h" + +/** + * SECTION:gtkseparatormenuitem + * @Short_description: A separator used in menus + * @Title: GtkSeparatorMenuItem + * + * The #GtkSeparatorMenuItem is a separator used to group + * items within a menu. It displays a horizontal line with a shadow to + * make it appear sunken into the interface. + */ + + G_DEFINE_TYPE (GtkSeparatorMenuItem, gtk_separator_menu_item, GTK_TYPE_MENU_ITEM) static void @@ -41,6 +53,13 @@ gtk_separator_menu_item_init (GtkSeparatorMenuItem *item) { } +/** + * gtk_separator_menu_item_new: + * + * Creates a new #GtkSeparatorMenuItem. + * + * Returns: a new #GtkSeparatorMenuItem. + */ GtkWidget * gtk_separator_menu_item_new (void) {