summaryrefslogtreecommitdiff
path: root/demos
Commit message (Collapse)AuthorAgeFilesLines
* remove unused variable.Manish Singh2005-07-131-18/+17
| | | | | | 2005-07-13 Manish Singh <yosh@gimp.org> * demos/gtk-demo/iconview_edit.c: remove unused variable.
* Rename this demo.Matthias Clasen2005-07-123-5/+164
| | | | | | | | | 2005-07-12 Matthias Clasen <mclasen@redhat.com> * demos/gtk-demo/iconview.c: Rename this demo. * demos/gtk-demo/iconview_edit.c: Add a demo for icon view editing and drag-and-drop.
* Accept dashes in demo titles.Matthias Clasen2005-07-121-2/+2
| | | | | | 2005-07-12 Matthias Clasen <mclasen@redhat.com> * demos/gtk-demo/geninclude.pl.in: Accept dashes in demo titles.
* change_orientation() should return void, remove unused variable inManish Singh2005-07-071-2/+1
| | | | | | | 2005-07-06 Manish Singh <yosh@gimp.org> * demos/gtk-demo/menus.c: change_orientation() should return void, remove unused variable in do_menus().
* Demonstrate vertical menubarsMatthias Clasen2005-07-051-9/+69
|
* Make it compileMatthias Clasen2005-07-041-5/+16
|
* Make the list of demos scrollable.Matthias Clasen2005-06-281-2/+21
| | | | | | | 2005-06-27 Matthias Clasen <mclasen@redhat.com> * demos/gtk-demo/main.c (create_tree): Make the list of demos scrollable.
* Allow to construct menu tool buttons.Matthias Clasen2005-06-191-6/+41
| | | | | | | | | 2005-06-18 Matthias Clasen <mclasen@redhat.com> * gtk/gtkuimanager.c: Allow to construct menu tool buttons. * demos/gtk-demo/appwindow.c: Demonstrate menu tool buttons constructed with GtkUIManager.
* Set the window icon by name.Matthias Clasen2005-05-251-0/+1
| | | | | | | 2005-05-25 Matthias Clasen <mclasen@redhat.com> * demos/gtk-demo/appwindow.c (do_appwindow): Set the window icon by name.
* Demonstrate image copy-and-paste and DND, and clipboard persistency.Matthias Clasen2005-05-251-10/+208
| | | | | | | 2005-05-25 Matthias Clasen <mclasen@redhat.com> * demos/gtk-demo/clipboard.c: Demonstrate image copy-and-paste and DND, and clipboard persistency.
* Also demonstrate GtkCellRendererProgress.Matthias Clasen2005-05-251-62/+84
| | | | | | | 2005-05-25 Matthias Clasen <mclasen@redhat.com> * demos/gtk-demo/editable_cells.c (create_items_model): Also demonstrate GtkCellRendererProgress.
* Add a demo showing combo box variations.Matthias Clasen2005-05-252-0/+372
| | | | | | | | 2005-05-25 Matthias Clasen <mclasen@redhat.com> * demos/gtk-demo/Makefile.am (demos): * demos/gtk-demo/combobox.c: Add a demo showing combo box variations.
* Add a demo showing all picker widgets.Matthias Clasen2005-05-252-0/+74
| | | | | | | 2005-05-25 Matthias Clasen <mclasen@redhat.com> * demos/gtk-demo/Makefile.am (demos): * demos/gtk-demo/pickers.c: Add a demo showing all picker widgets.
* Fix a typo.Matthias Clasen2005-05-251-1/+1
| | | | | | 2005-05-24 Matthias Clasen <mclasen@redhat.com> * demos/gtk-demo/iconview.c (do_iconview): Fix a typo.
* Also demonstrate GtkCellRenderer::editing-started and separators.Matthias Clasen2005-03-161-2/+31
| | | | | | | 2005-03-16 Matthias Clasen <mclasen@redhat.com> * demos/gtk-demo/editable_cells.c: Also demonstrate GtkCellRenderer::editing-started and separators.
* Use GtkCellRendererCombo (#169607, Mark McLoughlin)Matthias Clasen2005-03-081-42/+80
| | | | | | | 2005-03-08 Matthias Clasen <mclasen@redhat.com> * demos/gtk-demo/editable_cells.c: Use GtkCellRendererCombo (#169607, Mark McLoughlin)
* Remove a C++ comment. (#168531, Paul Cornett)Matthias Clasen2005-02-251-1/+1
| | | | | | | 2005-02-25 Matthias Clasen <mclasen@redhat.com> * demos/testpixbuf.c (main): Remove a C++ comment. (#168531, Paul Cornett)
* Use monospace for the source code view. (#163526, Theerud Lawtrakul)Matthias Clasen2005-01-131-1/+1
| | | | | | | 2005-01-13 Matthias Clasen <mclasen@redhat.com> * demos/gtk-demo/main.c (create_text): Use monospace for the source code view. (#163526, Theerud Lawtrakul)
* Remove the size_prepared callback, to test incremental display.Matthias Clasen2005-01-041-3/+5
| | | | | | | | | 2005-01-04 Matthias Clasen <mclasen@redhat.com> * demos/testpixbuf.c (main): Remove the size_prepared callback, to test incremental display. (new_testrgb_window): Return the drawing area, not the window, since we want to queue draws on the drawing area.
* Use g_fopen().Tor Lillqvist2004-12-052-2/+4
| | | | | | | | | 2004-12-05 Tor Lillqvist <tml@iki.fi> * demos/gtk-demo/main.c (load_file): Use g_fopen(). * demos/gtk-demo/images.c (progressive_timeout): Use g_fopen(). Open png file in binary mode.
* updatedHans Breuer2004-11-212-1/+3
| | | | | | | | | | | | 2004-11-21 Hans Breuer <hans@breuer.org> * gdk/makefile.msc.in gtk/stock-icons/makefile.msc gtk/makefile.msc.in demos/gtk-demo/makefile.msc.in : updated * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_draw_glyphs_transformed() * gdk/win32/gdkgc-win32.c : implement _gdk_windowing_gc_get_foreground() * demos/gtk-demo/rotated_text.c : use G_PI
* Add GdkPangoRenderer, a subclass of PangoRenderer targeting GDK drawables.Owen Taylor2004-11-212-0/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sat Nov 20 15:13:51 2004 Owen Taylor <otaylor@redhat.com> * gdk/gdkpango.[ch]: Add GdkPangoRenderer, a subclass of PangoRenderer targeting GDK drawables. Use to implement the old gdk_draw_layout() and friends. * gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkwindow.c gdk/gdkpixmap.c: Add gdk_draw_glyphs_transformed() gdk_draw_trapezoids() and the corresponding members of GdkDrawableClass. Add a fallback implementation of gdk_draw_trapezoids() in terms of pixbufs. * gdk/gdkwindowing.h gdk/x11/gdkg-x11.h: Add _gdk_windowing_gc_get_foreground() to enable the fallback trapezoid implementation. * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkdisplay-x11.h: Implement draw_glyph_transformed, draw_trapezoids. * gdk/x11/gdkdrawable-x11.[ch]: Add _gdk_x11_drawable_draw_xtrapezoids, _gdk_x11_drawable_draw_xft_glyphs for use of GdkX11Renderer. * gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Implement GDK_TILED, GDK_STIPPLED, GDK_OPAQUE_STIPPLED in the RENDER codepath. * gdk/gdkpango-x11.c: Add GdkX11Renderer... a subclass of PangoXftRenderer that does tiles/stipples and fallback rendering of trapezoids without the RENDER extension. * gdk/gdkpango-x11.c gdk/x11/gdkscreen-x11.[ch] _gdk_x11_renderer_get: Add _gdk_x11_renderer_get() to get a singleton GdkX11Renderer for the screen. * gdk/x11/gdkdrawable-x11.c (get_impl_drawable): Fix a None/NULL confusion. * gtk/gtklabel.[ch] gtk/gtk.symbols: Add gtk_label_set/get_angle(), and an ::angle property. * gtk/gtklabel.c: Remove #if 0'd dead code gtk_label_paint_word(). * gtk/gtktextdisplay.c: Switch to using a GtkTextRenderer subclass of GdkPangoRenderer for drawing. * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Switch to using gtk_attr_shape_new_with_data() to store backreferences to embedded pixmaps and widgets. Leave line_display->shaped_objects around for backwords compatibility. * gdk/gdkpango.[ch] (gdk_pango_context_set_colormap): Describe as deprecated, remove implementation. * gtk/gtkwidget.c (gtk_widget_create_pango_context): Remove call to gdk_pango_context_set_colormap. * demos/gtk-demo/Makefile.am demos/gtk-demo/rotated_text.c: Add a demo showing drawing rotated text. * tests/testgtk.c: Add a rotated-label test, and also a rotated drawing test (differs from demos/gtk-demo/rotated_text by also using a tile)
* Don't include config.h in the examples.Matthias Clasen2004-11-1622-22/+0
| | | | | | 2004-11-16 Matthias Clasen <mclasen@redhat.com> * demos/gtk-demo/*.c: Don't include config.h in the examples.
* Fix many sparse warnings.Matthias Clasen2004-10-281-1/+1
|
* Fix for #118764, David Bordoley:Carlos Garnacho Parro2004-10-261-2/+3
| | | | | | | | | | | | | | | | | 2004-10-25 Carlos Garnacho Parro <carlosg@gnome.org> Fix for #118764, David Bordoley: * gtk/gtkmessagedialog.[ch] (gtk_message_dialog_format_secondary_text), (gtk_message_dialog_format_secondary_format): API additions to create HIG-like dialogs * demos/gtk-demo/dialog.c: Use the new API in the example * docs/reference/gtk/gtk-sections.txt: * docs/reference/gtk/tmpl/gtkmessagedialog.sgml: documented API additions
* Don't leak the frame pixbuf.Matthias Clasen2004-09-221-0/+1
| | | | | | | Wed Sep 22 00:52:44 2004 Matthias Clasen <mclasen@redhat.com> * demos/gtk-demo/pixbufs.c (do_pixbufs): Don't leak the frame pixbuf.
* demos/testpixbuf-save.c Get rid of some unnecessary casts.Manish Singh2004-08-193-10/+12
| | | | | | | | | | Wed Aug 18 17:25:26 2004 Manish Singh <yosh@gimp.org> * demos/testpixbuf-save.c * demos/gtk-demo/hypertext.c: Get rid of some unnecessary casts. * demos/gtk-demo/appwindow.c: Make activate_email and activate_url match the arguments for GtkAboutDialogActivateLinkFunc.
* Adjust to GtkAboutDialog API changes.Matthias Clasen2004-08-131-2/+2
| | | | | | | | | | | Thu Aug 12 21:02:57 2004 Matthias Clasen <maclas@gmx.de> * demos/gtk-demo/appwindow.c (about_cb): Adjust to GtkAboutDialog API changes. * gtk/gtkaboutdialog.h: * gtk/gtkaboutdialog.c (gtk_about_dialog_set_email_hook): (gtk_about_dialog_set_url_hook): Add callback data and destroy notify for language bindings. (#149999, Olivier Andrieu)
* make it compile and more similar to the X11 implementation [backwardHans Breuer2004-08-061-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-08-06 Hans Breuer <hans@breuer.org> * gdk/win32/gdkwindow-win32.c : make it compile and more similar to the X11 implementation [backward compatibility for GDK_WINDOW_TEMP, GDK_INPUT_ONLY (fixes bug #148702), use the *screen* function variants, dont reparent already destroyed] (get_visible_region) : take the win32 part into account (_gdk_windowing_window_destroy) : remove from handle table * gdk/win32/gdkdisplay-win32.c : added gdk_display_(request|supports)_selection_notification () with a currently mostly pointless implementation ;-) * gtk/gtkfilesystemwin32.c (*_to_path) : same changes as on *NIX, plugs memory leak (gtk_file_system_win32_render_icon) : use new GTK_STOCK_DIRECTORY * gtk/makefile.msc.in demos/gtk-demo/makefile.msc.in gtk/stock-icons/makefile.msc tests/makefile.msc : updated * gdk/gdk.def gtk/gtk.def : updated externals * tests/testiconview.c : remove unneeded dirent.h inclusion
* Add clipboard demo.Anders Carlsson2004-07-292-0/+125
| | | | | | | | | 2004-07-29 Anders Carlsson <andersca@gnome.org> * demos/gtk-demo/Makefile.am: * demos/gtk-demo/clipboard.c: (copy_button_clicked), (paste_received), (paste_button_clicked), (do_clipboard): Add clipboard demo.
* Add gdk_draw_rectangle_alpha_libgtk_only which uses XRenderFillRectangleAnders Carlsson2004-07-271-0/+2
| | | | | | | | | | | | | | | | | | | | | 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.
* Remove trailing commas from enumerations. (#148035)Matthias Clasen2004-07-212-14/+2
| | | | | | | | | | | | | Tue Jul 20 22:26:29 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkfilechooserutils.h: * gtk/gtktoolbutton.c: * gtk/gtktoolbar.c: * gtk/gtkicontheme.c: * gtk/gtkcalendar.c: * demos/gtk-demo/ui_manager.c: * demos/gtk-demo/appwindow.c: Remove trailing commas from enumerations. (#148035)
* Use a GtkAboutDialog.Matthias Clasen2004-07-121-2/+95
| | | | * demos/gtk-demo/appwindow.c: Use a GtkAboutDialog.
* Add a simple file browser based on the icon view.Anders Carlsson2004-07-044-1/+362
| | | | | | | | | | | | | | | | | | | 2004-07-04 Anders Carlsson <andersca@gnome.org> * demos/gtk-demo/Makefile.am: * demos/gtk-demo/gnome-fs-directory.png: * demos/gtk-demo/gnome-fs-regular.png: * demos/gtk-demo/iconview.c: (load_pixbufs), (fill_store), (sort_func), (create_store), (item_activated), (up_clicked), (home_clicked), (do_iconview): Add a simple file browser based on the icon view. * gtk/gtk.h: Add gtk/gtkiconview.h * gtk/gtkiconview.c: (gtk_icon_view_layout), (gtk_icon_view_item_new), (gtk_icon_view_item_activated): Fix a few bugs discovered while writing the demo.
* finally also create the correct mask for 'pseudo mime' iconsHans Breuer2004-05-081-7/+15
| | | | | | | | | | | | | | | | | 2004-05-08 Hans Breuer <hans@breuer.org> * gtk/gtkfilesystemwin32.c (extract_icon) : finally also create the correct mask for 'pseudo mime' icons * gdk/win32/gdkwindow-win32.c(show_window_internal) : also take focus_on_map into account * gtk/gtkselection.c : g_message() only with DEBUG_SELECTION * gtk/gtkactiongroup.c gtk/gtkcombobox.c : ... must return a value * gdk/gdk.def gtk/gtk.def demos/gtk-demo/makefile.msc.in : updated
* A new demo.Matthias Clasen2004-04-212-0/+60
| | | | | | | | 2004-04-21 Matthias Clasen <mclasen@redhat.com> * demos/gtk-demo/expander.c (do_expander): A new demo. * demos/gtk-demo/Makefile.am (demos): Add expander.c.
* Fixes #136082 and #135265, patch by Morten Welinder.Federico Mena Quintero2004-03-0621-0/+21
| | | | | | | | | | 2004-03-05 Federico Mena Quintero <federico@ximian.com> Fixes #136082 and #135265, patch by Morten Welinder. * configure.in: Use AC_SYS_LARGEFILE. * */*.c: #include <config.h>
* #ifdef HAVE_FLOCKFILE, not #ifndef HAVE_FLOCKFILE. (#135642, J. AliOwen Taylor2004-02-281-1/+1
| | | | | | | Sat Feb 28 14:48:35 2004 Owen Taylor <otaylor@redhat.com> * demos/gtk-demo/main.c (read_line): #ifdef HAVE_FLOCKFILE, not #ifndef HAVE_FLOCKFILE. (#135642, J. Ali Harlow)
* Protect getc_unlocked() by HAVE_FLOCKFILE in all cases. (#134205, Julio M.Matthias Clasen2004-02-131-1/+1
| | | | | | | Fri Feb 13 01:06:08 2004 Matthias Clasen <maclas@gmx.de> * demos/gtk-demo/main.c (read_line): Protect getc_unlocked() by HAVE_FLOCKFILE in all cases. (#134205, Julio M. Merino Vidal)
* Add entry_completion.cMatthias Clasen2004-01-072-0/+98
| | | | | | | | | Wed Jan 7 23:20:06 2004 Matthias Clasen <maclas@gmx.de> * demos/gtk-demo/Makefile.am (demos): Add entry_completion.c * demos/gtk-demo/entry_completion.c: New demo for GtkEntryCompletion by Anders Carlsson (#130464).
* Make s, S, Control-S, p, P, Control-P, i, I, Control-I testMatthias Clasen2004-01-071-28/+180
| | | | | | | | | Wed Jan 7 02:50:55 2004 Matthias Clasen <maclas@gmx.de> * demos/testpixbuf-save.c: Make s, S, Control-S, p, P, Control-P, i, I, Control-I test gdk_pixbuf_save(), gdk_pixbuf_save_to_buffer() and gdk_pixbuf_save_to_callback() with jpeg, png and ico formats, respectively. Tests #82203.
* Call the do_ functions with the toplevel as argument.Matthias Clasen2003-11-0820-28/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sat Nov 8 23:06:02 2003 Matthias Clasen <maclas@gmx.de> * demos/gtk-demo/main.c (row_activated_cb): Call the do_ functions with the toplevel as argument. * demos/gtk-demo/geninclude.pl.in: Change the signature of GDoDemoFunc to take a widget argument * demos/gtk-demo/ui_manager.c (do_ui_manager): * demos/gtk-demo/tree_store.c (do_tree_store): * demos/gtk-demo/textview.c (do_textview): * demos/gtk-demo/stock_browser.c (do_stock_browser): * demos/gtk-demo/sizegroup.c (do_sizegroup): * demos/gtk-demo/pixbufs.c (do_pixbufs): * demos/gtk-demo/panes.c (do_panes): * demos/gtk-demo/menus.c (do_menus): * demos/gtk-demo/list_store.c (do_list_store): * demos/gtk-demo/images.c (do_images): * demos/gtk-demo/hypertext.c (do_hypertext): * demos/gtk-demo/editable_cells.c (do_editable_cells): * demos/gtk-demo/drawingarea.c (do_drawingarea): * demos/gtk-demo/dialog.c (do_dialog): * demos/gtk-demo/colorsel.c (do_colorsel): * demos/gtk-demo/changedisplay.c (do_changedisplay): * demos/gtk-demo/button_box.c (do_button_box): * demos/gtk-demo/appwindow.c (do_appwindow): Take a widget as argument, and make new windows or dialogs appear on the same screen. (#80388)
* shut up cvsManish Singh2003-10-271-1/+1
|
* Fix some unused variables.Owen Taylor2003-10-231-2/+0
| | | | | | | | | | Tue Oct 21 16:12:51 2003 Owen Taylor <otaylor@redhat.com> * demos/gtk-demo/menus.c (do_menus): Fix some unused variables. * gtk/gtkmain.c (_gtk_get_lc_ctype): Fix an unused variable warning
* enable GTK_DISABLE_DEPRECATED again, (set_interp_type), (main): port overKristian Rietveld2003-10-131-35/+20
| | | | | | | Mon Oct 13 20:21:55 2003 Kristian Rietveld <kris@gtk.org> * demos/testpixbuf-scale.c: enable GTK_DISABLE_DEPRECATED again, (set_interp_type), (main): port over from option menu to GtkComboBox.
* These files still use option menus, so turn off GTK_DISABLE_DEPRECATED toMatthias Clasen2003-10-111-0/+1
| | | | | | | | | Sun Oct 12 00:18:02 2003 Matthias Clasen <maclas@gmx.de> * tests/testtreeview.c: * demos/testpixbuf-scale.c: * tests/prop-editor.c: These files still use option menus, so turn off GTK_DISABLE_DEPRECATED to fix the build.
* Replace GtkItemFactory by GtkUIManager in the intro (again).Matthias Clasen2003-10-101-2/+2
| | | | | | | Fri Oct 10 23:02:58 2003 Matthias Clasen <maclas@gmx.de> * demos/gtk-demo/menus.c: Replace GtkItemFactory by GtkUIManager in the intro (again).
* Deprecate. Ditto.Kristian Rietveld2003-10-103-92/+16
| | | | | | | | | | | | | | | | | | | | | | | | Fri Oct 10 19:10:12 2003 Kristian Rietveld <kris@gtk.org> * gtk/gtkcombo.h: Deprecate. * gtk/gtkoptionmenu.h: Ditto. * gtk/gtkcombobox.c (gtk_combo_box_size_request), (gtk_combo_box_size_allocate): Rework, things behave better now. Still needs some work on requesting enough size when taking the items in the list into account. * gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable deprecated" guards. * gtk/gtkinputdialog.c: ditto. * gtk/gtkitemfactory.c: ditto. * gtk/gtkoptionmenu.c: ditto. * demos/gtk-demo/menus.c: remove the option menu. * demos/gtk-demo/sizegroup.c: replace the option menus with GtkComboBox. * demos/gtk-demo/textview.c: ditto. (A general GtkComboBox demo will be added later on).
* New callback to propertly report radio actions.Matthias Clasen2003-10-071-2/+9
| | | | | | | | | Wed Oct 8 00:06:17 2003 Matthias Clasen <maclas@gmx.de> * demos/gtk-demo/ui_manager.c (activate_radio_action): New callback to propertly report radio actions. * demos/gtk-demo/ui_manager.c (do_ui_manager): Use it here.
* Turn off GTK_DISABLE_DEPRECATED, since this test uses theMatthias Clasen2003-09-263-122/+227
| | | | | | | | | | | | | 2003-09-27 Matthias Clasen <maclas@gmx.de> * tests/testtext.c: Turn off GTK_DISABLE_DEPRECATED, since this test uses the soon-to-be-deprecated GtkItemFactory. * demos/gtk-demo/Makefile.am (demos): Add ui_manager.c, remove item_factory.c * demos/gtk-demo/ui_manager.c: Duplicate of item_factory.c using GtkUIManager instead of GtkItemFactory.