diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2007-06-03 05:34:56 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-06-03 05:34:56 +0000 |
commit | 8491b71a8c38cde175e07e51e48dc8fbebd1c3a1 (patch) | |
tree | afbfe875c46cc75a51da2cdc1eef06040b22849a | |
parent | 5962480827922f6423c6617c66a78c704daf874f (diff) | |
download | gdk-pixbuf-8491b71a8c38cde175e07e51e48dc8fbebd1c3a1.tar.gz |
Add volume button to gallery
svn path=/trunk/; revision=18014
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | docs/reference/ChangeLog | 6 | ||||
-rw-r--r-- | docs/reference/gtk/Makefile.am | 1 | ||||
-rw-r--r-- | docs/reference/gtk/images/volumebutton.png | bin | 0 -> 2038 bytes | |||
-rw-r--r-- | docs/reference/gtk/visual_index.xml | 3 | ||||
-rw-r--r-- | docs/tools/widgets.c | 14 |
6 files changed, 28 insertions, 0 deletions
@@ -1,5 +1,9 @@ 2007-06-03 Matthias Clasen <mclasen@redhat.com> + * docs/tools/widgets.c: Add a volume button + +2007-06-03 Matthias Clasen <mclasen@redhat.com> + * gtk/gtkradiobutton.c: * gtk/gtkradiomenuitem.c: Fix doc typos. diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 282238a23..798780fbf 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,9 @@ +2007-06-03 Matthias Clasen <mclasen@redhat.com> + + * gtk/Makefile.am: + * gtk/visual_index.xml: + * gtk/images/volumebutton.png: Volume button image + 2007-06-01 Matthias Clasen <mclasen@redhat.com> * gdk/gdk-sections.txt: Add new composited window api diff --git a/docs/reference/gtk/Makefile.am b/docs/reference/gtk/Makefile.am index 79fdf292c..451bc8012 100644 --- a/docs/reference/gtk/Makefile.am +++ b/docs/reference/gtk/Makefile.am @@ -313,6 +313,7 @@ HTML_IMAGES = \ $(srcdir)/images/statusbar.png \ $(srcdir)/images/toggle-button.png \ $(srcdir)/images/toolbar.png \ + $(srcdir)/images/volumebutton.png \ $(srcdir)/images/window.png # Extra options to supply to gtkdoc-fixref diff --git a/docs/reference/gtk/images/volumebutton.png b/docs/reference/gtk/images/volumebutton.png Binary files differnew file mode 100644 index 000000000..bdf96ce54 --- /dev/null +++ b/docs/reference/gtk/images/volumebutton.png diff --git a/docs/reference/gtk/visual_index.xml b/docs/reference/gtk/visual_index.xml index c6dc17eab..085645156 100644 --- a/docs/reference/gtk/visual_index.xml +++ b/docs/reference/gtk/visual_index.xml @@ -50,6 +50,9 @@ <link linkend="GtkPaned"> <inlinegraphic fileref="panes.png" format="PNG"></inlinegraphic> </link> + <link linkend="GtkVolumeButton"> + <inlinegraphic fileref="volumebutton.png" format="PNG"></inlinegraphic> + </link> <link linkend="GtkPageSetupUnixDialog"> <inlinegraphic fileref="pagesetupdialog.png" format="PNG"></inlinegraphic> </link> diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c index dc90b86cf..46fa68a1d 100644 --- a/docs/tools/widgets.c +++ b/docs/tools/widgets.c @@ -912,6 +912,19 @@ create_image (void) } static WidgetInfo * +create_volume_button (void) +{ + GtkWidget *button, *widget; + + button = gtk_volume_button_new (); + gtk_scale_button_set_value (GTK_SCALE_BUTTON (button), 33); + /* Hack: get the private dock */ + widget = GTK_SCALE_BUTTON (button)->plus_button->parent->parent->parent; + gtk_widget_show_all (widget); + return new_widget_info ("volumebutton", widget, ASIS); +} + +static WidgetInfo * create_assistant (void) { GtkWidget *widget; @@ -981,6 +994,7 @@ get_all_widgets (void) retval = g_list_prepend (retval, create_recent_chooser_dialog ()); retval = g_list_prepend (retval, create_page_setup_dialog ()); retval = g_list_prepend (retval, create_print_dialog ()); + retval = g_list_prepend (retval, create_volume_button ()); return retval; } |