diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2006-01-30 15:39:23 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-01-30 15:39:23 +0000 |
commit | 49eda9aaa79e6fbdf8a0d9cfa91a8598946020a9 (patch) | |
tree | 72e99954defcfed5e08833667c83034ecb47f8ac /docs/tools | |
parent | 0f61ac62a8a328be53189823e19bd51f8588838f (diff) | |
download | gtk+-49eda9aaa79e6fbdf8a0d9cfa91a8598946020a9.tar.gz |
Add GtkLinkButton to gallery
Diffstat (limited to 'docs/tools')
-rw-r--r-- | docs/tools/widgets.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c index f271ccdf04..b8086aa6e0 100644 --- a/docs/tools/widgets.c +++ b/docs/tools/widgets.c @@ -184,6 +184,19 @@ create_check_button (void) } static WidgetInfo * +create_link_button (void) +{ + GtkWidget *widget; + GtkWidget *align; + + widget = gtk_link_button_new_with_label ("http://www.gtk.org", "Link Button"); + align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0); + gtk_container_add (GTK_CONTAINER (align), widget); + + return new_widget_info ("link-button", align, SMALL); +} + +static WidgetInfo * create_entry (void) { GtkWidget *widget; @@ -885,6 +898,7 @@ get_all_widgets (void) retval = g_list_prepend (retval, create_icon_view ()); retval = g_list_prepend (retval, create_image ()); retval = g_list_prepend (retval, create_label ()); + retval = g_list_prepend (retval, create_link_button ()); retval = g_list_prepend (retval, create_menubar ()); retval = g_list_prepend (retval, create_message_dialog ()); retval = g_list_prepend (retval, create_notebook ()); |