Matthias Clasen
0b3461ff1b
gtk-demo: Don't include config.h needlessly
...
It is not needed here.
2013-05-05 15:38:46 -04:00
Cosimo Cecchi
ce869921ab
Don't use gtk_scrolled_window_add_with_viewport() in tests
...
https://bugzilla.gnome.org/show_bug.cgi?id=693015
2013-02-01 22:58:55 -05:00
Benjamin Otte
ad69528bde
gtk-demo: Remove demo_find_file() function
...
It's not used anymore. With it, the demo-common.h header is not needed
anymore and is removed, too (and all the needless includes).
2013-02-01 17:44:13 +01:00
Matthias Clasen
4e18e5f687
gtk-demo: fix the tool palette demo
...
The palette was confined to its minimal size, when in horizontal mode.
2012-04-27 08:30:05 -04:00
Matthias Clasen
585a6652d5
Use G_SOURCE_CONTINUE/REMOVE
...
Now that GLib provides these macros, we should use them
to make the code more readable.
2012-01-30 19:12:27 -05:00
Benjamin Otte
e77ce71caa
gtk-demo: gtk_widget_render_icon() => gtk_widget_render_icon_pixbuf()
2010-12-15 14:51:26 +01:00
Michael Natterer
3a0afce509
gtk: remove "gboolean homogeneous" from gtk_box_new()
...
Because it's FALSE in virtually all use cases.
2010-10-31 19:22:28 +01:00
Javier Jardón
a9894d4cf4
Use gtk_box_new() instead gtk_[v|h]box_new()
2010-10-30 05:22:58 +02:00
Benjamin Otte
1b170a1a14
gtk-demo: Clean up toolpalette drawing code
...
Fix compile warning and use cairo_paint() instead of querying the widget
size and cairo_fill()ing it.
2010-09-27 20:49:06 +02:00
Javier Jardón
e16f9bc51c
gtk-demo: Use draw signal in toolpalette demo
2010-09-27 00:07:20 +02:00
Javier Jardón
6b3a2fede6
demos/gtk-demo/toolpalette.c: Use accessor functions to access GtkWidget
2010-08-22 18:28:48 +02:00
Javier Jardón
214a023e91
Deprecate widget flag: GTK_WIDGET_VISIBLE
...
Use gtk_widget_get_visible() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-01 07:52:07 +01:00
Javier Jardón
5469695f29
Fix some compilation warnings
...
The warnings was introduced with the changes in commit
a491091e29
2010-01-19 17:01:10 +01:00
Matthias Clasen
7f9b55710a
Some cleanups for the toolpalette demo
2009-11-26 19:41:38 -05:00
Johannes Schmid
3cc1478a29
toolpalette: Added dnd code to the gtk-demo
2009-11-18 10:32:37 +01:00
Murray Cumming
eb76666f1c
GtkToolPalette: Use gtk-toolbar-style and gtk-toolbar-icon-size settings.
...
* gtk/gtksettings.c: (settings_install_property_parser): Handle enums too.
* gtk/gtktoolbar.c (gtk_toolbar_class_init): Move the gtk-toolbar-style and
gtk-toolbar-icon-size settings into GtkSettings because we now use it in
GtkToolPalette too.
* gtk/gtktoolpalette.[h|c]: Add gtk_tool_palette_unset_style() and
gtk_tool_palette_unset_icon_size(), and use the toolbar-style and
icon-size from GtkSettings if these are not set via the set functions.
* demos/gtk-demo/toolpalette.c (on_combo_style_changed),
(do_toolpalette): Add and handle a -1 value to mean the desktop "Default"
toolbar style.
2009-07-16 17:51:55 +02:00
Murray Cumming
a14e05fa59
GtkToolItemGroup now has label and label-widget properties.
...
* demos/gtk-demo/toolpalette.c (load_special_items): Demonstrate
gtk_tool_item_group_set_label_widget().
* gtk/gtktoolitemgroup.[h|c]: Rename the "item-group-name" property to
"label" because that is what it is. Likewise rename the functions.
Add a "label-widget" propert and get/set_label_widget() functions,
based on the same code/API in GtkExpander.
2009-07-14 23:46:49 +02:00
Matthias Clasen
33c4cb76d8
Also flip scrollbars in the toolpalette example
2009-07-14 15:55:12 -04:00
Murray Cumming
ac7b0c91ae
ToolPalette: Implement GtkOrientable.
...
* gtk/gtktoolpalette.[h|c]: Remove gtk_tool_palette_get/set_property(),
implementing GtkOrientable instead.
* gtk/gtktoolitemgroup.c:
* demos/gtk-demo/toolpalette.c: Use gtk_orientable_* instead.
2009-07-14 19:11:20 +02:00
Murray Cumming
d95654fd5f
gtk+/demos/gtk-demo/: Added GtkToolPalette demo.
2009-07-13 18:45:48 +02:00