diff options
author | Anders Carlsson <andersca@gnome.org> | 2004-07-27 21:58:09 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@src.gnome.org> | 2004-07-27 21:58:09 +0000 |
commit | 564ab37a07137d99b40cbddf89f7f28c2085ef05 (patch) | |
tree | 3d6da8d7ccc0c004415150eac2b4ee496aa9335a /demos | |
parent | c5541ca6c834475a8f44819c46293c4d4ccb222f (diff) | |
download | gtk+-564ab37a07137d99b40cbddf89f7f28c2085ef05.tar.gz |
Add gdk_draw_rectangle_alpha_libgtk_only which uses XRenderFillRectangle
2004-07-27 Anders Carlsson <andersca@gnome.org>
* demos/gtk-demo/iconview.c: (do_iconview):
* gdk/gdkdrawable.h:
* gdk/linux-fb/gdkdrawable-fb2.c:
(gdk_draw_rectangle_alpha_libgtk_only):
* gdk/win32/gdkdrawable-win32.c:
(gdk_draw_rectangle_alpha_libgtk_only):
* gdk/x11/gdkdrawable-x11.c: (gdk_x11_draw_image),
(get_impl_drawable), (gdk_x11_draw_pixbuf),
(gdk_draw_rectangle_alpha_libgtk_only):
Add gdk_draw_rectangle_alpha_libgtk_only which uses
XRenderFillRectangle on X11. It's stubbed out on the
Win32 and fb backends.
* gtk/gtkiconview.c:
(gtk_icon_view_paint_rubberband):
Use gdk_draw_rectangle_alpha_libgtk_only here.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/iconview.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/gtk-demo/iconview.c b/demos/gtk-demo/iconview.c index 56e74da745..b9f1dc6c23 100644 --- a/demos/gtk-demo/iconview.c +++ b/demos/gtk-demo/iconview.c @@ -320,6 +320,8 @@ do_iconview (GtkWidget *do_widget) fill_store (store); icon_view = gtk_icon_view_new_with_model (GTK_TREE_MODEL (store)); + gtk_icon_view_set_selection_mode (GTK_ICON_VIEW (icon_view), + GTK_SELECTION_MULTIPLE); g_object_unref (store); /* Connect to the "clicked" signal of the "Up" tool button */ |