Add volume button to gallery
svn path=/trunk/; revision=18014
This commit is contained in:
parent
5962480827
commit
8491b71a8c
@ -1,3 +1,7 @@
|
||||
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:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
BIN
docs/reference/gtk/images/volumebutton.png
Normal file
BIN
docs/reference/gtk/images/volumebutton.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
@ -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>
|
||||
|
@ -911,6 +911,19 @@ create_image (void)
|
||||
return new_widget_info ("image", vbox, SMALL);
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user