summaryrefslogtreecommitdiff
path: root/demos
Commit message (Collapse)AuthorAgeFilesLines
* move the ITALIC_COLUMN over to a STYLE_COLUMN which sets the styleKristian Rietveld2006-08-161-16/+12
| | | | | | | | | 2006-08-17 Kristian Rietveld <kris@gtk.org> * demos/gtk-demo/main.c (window_closed_cb), (row_activated_cb), (create_tree): move the ITALIC_COLUMN over to a STYLE_COLUMN which sets the style attribute. Makes drawing the active demos in italic work again.
* Fix 346375Matthias Clasen2006-07-021-1/+4
|
* Clean up APIs: Make async a setting instead of separate calls. CombineAlexander Larsson2006-06-071-1/+1
| | | | | | | | | | | | | | | | | | | 2006-06-07 Alexander Larsson <alexl@redhat.com> * gtk/gtk.symbols: * gtk/gtkprintoperation-private.h: * gtk/gtkprintoperation-unix.c: * gtk/gtkprintoperation.[ch]: Clean up APIs: Make async a setting instead of separate calls. Combine settings like show_dialog, show_preview and pdf_target into an action enum that you pass to gtk_print_dialog_run(). * tests/print-editor.c: * tests/testnouiprint.c: * tests/testprint.c: * demos/gtk-demo/printing.c: Update to new APIs
* Further updates from the GtkPrintContext functions rename.Alexander Larsson2006-05-311-3/+3
| | | | | | | | | | | | | | | 2006-05-31 Alexander Larsson <alexl@redhat.com> * gtk/gtk.symbols: * demos/gtk-demo/printing.c: * tests/print-editor.c: * tests/testnouiprint.c: * tests/testprint.c: * tests/testprintfileoperation.c: Further updates from the GtkPrintContext functions rename. * modules/printbackends/cups/gtkcupsutils.c: Always set requesting-user-name when doing cups requests.
* Display comments in friendly DodgerBlue instead of scary red. (#343444,Matthias Clasen2006-05-311-1/+1
| | | | | | | 2006-05-31 Matthias Clasen <mclasen@redhat.com> * demos/gtk-demo/main.c (main): Display comments in friendly DodgerBlue instead of scary red. (#343444, Carol Spears)
* Fix build errors.Alexander Larsson2006-05-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-05-12 Alexander Larsson <alexl@redhat.com> * gtk/gtkrecentmanager.c: Fix build errors. * gtk/gtk.symbols: * demos/gtk-demo/printing.c: * gtk/gtkprintoperation-win32.c: * gtk/gtkprintoperation.[ch]: * gtk/gtkprintsettings.[ch]: * modules/printbackends/cups/gtkprintbackendcups.c: * modules/printbackends/lpr/gtkprintbackendlpr.c: * modules/printbackends/pdf/gtkprintbackendpdf.c: * tests/print-editor.c: * tests/testnouiprint.c: * tests/testprint.c: * tests/testprintfileoperation.c: Rename functions from nr_of_pages to n_pages, and num_copies to n_copies to match other gtk+ names. * gtk/gtkmenu.c: (gtk_menu_popdown): Only re-set window group on popdown if we set it on popup (i.e. if there is a parent menu shell). Fixed part of bug #340401 * gtk/gtkwindow.c: Add (contruct) property "transient-for" to GtkWindow. This is needed for the fix to bug #340401. * gtk/gtkprintunixdialog.c: Use the transient-for property on construction and populate the dialog with widgets after that. This fixes bug #340401. More n_pages renames.
* Add it here.Matthias Clasen2006-05-112-0/+183
| | | | | | | | 2006-05-11 Matthias Clasen <mclasen@redhat.com> * demos/gtk-demo/Makefile.am (demos): Add it here. * demos/gtk-demo/printing.c (do_printing): Add a GtkPrintOperation demo.
* Small formatting fix.Matthias Clasen2006-04-171-1/+3
| | | | | | | 2006-04-17 Matthias Clasen <mclasen@redhat.com> * demos/gtk-demo/colorsel.c (expose_event_callback): Small formatting fix.
* If major.minor of required and available glib versions are the same, addBehdad Esfahbod2006-01-292-2/+0
| | | | | | | | | 2006-01-28 Behdad Esfahbod <behdad@gnome.org> * configure.in: If major.minor of required and available glib versions are the same, add -DG_DISABLE_DEPRECATED to GLIB_CFLAGS. (bug #328617) * */Makefile.am: Remove hardcoded -DG_DISABLE_DEPRECATED.
* More work on GtkAssistant by Carlos Garnacho:Matthias Clasen2006-01-282-0/+166
| | | | | | | | | | | | 2006-01-28 Matthias Clasen <mclasen@redhat.com> More work on GtkAssistant by Carlos Garnacho: * demos/gtk-demo/Makefile.am: * demos/gtk-demo/assistant.c: Add a GtkAssistant demo. * gtk/gtkassistant.c: Handle focus, several small fixes to the flow computations.
* Don't leak text.Matthias Clasen2005-12-071-0/+2
| | | | | | | 2005-12-07 Matthias Clasen <mclasen@redhat.com> * demos/gtk-demo/iconview_edit.c (set_cell_color): Don't leak text.
* Only set the text if it is not NULL. (#319930, Thomas Klausner)Matthias Clasen2005-10-271-1/+2
| | | | | | | | | | 2005-10-27 Matthias Clasen <mclasen@redhat.com> * demos/gtk-demo/clipboard.c (paste_received): Only set the text if it is not NULL. (#319930, Thomas Klausner) * gtk/gtkselection.c (gtk_selection_data_get_pixbuf): Close the loader before trying to get the pixbuf. (#319930, Thomas Klausner)
* use PACKAGE_VERSION,bump year (#318654)Stefan Kost2005-10-121-2/+3
| | | | | * demos/gtk-demo/appwindow.c: (about_cb): use PACKAGE_VERSION,bump year (#318654)
* 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>