summaryrefslogtreecommitdiff
path: root/demos
Commit message (Collapse)AuthorAgeFilesLines
* Update version to 2.0.0Owen Taylor2002-03-052-12/+12
| | | | | | | | | | | | | | | | Tue Mar 5 15:47:54 2002 Owen Taylor <otaylor@redhat.com> * configure.in test/makefile.msc **.pc.in **/*.am: Update version to 2.0.0 * gtk/Makefile.am (MAINTAINERCLEANFILES): Add stamp files. * configure.in (GDK_PIXBUF_VERSION): Require GLib 2.0.0, Pango, Atk, 1.0.0. * m4macros/gtk-2.0.m4: Default to 2.0.0 as the minimum version.
* const fixHavoc Pennington2002-03-041-2/+2
| | | | | | 2002-03-02 Havoc Pennington <hp@pobox.com> * demos/gtk-demo/editable_cells.c (cell_edited): const fix
* Fixes for uninstalled operation with module suffixes other than .so and inOwen Taylor2002-03-032-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sat Mar 2 23:08:23 2002 Owen Taylor <otaylor@redhat.com> Fixes for uninstalled operation with module suffixes other than .so and in general for platforms like AIX where the module suffix isn't predictable. (#72185, problems reported by Miroslaw Dobrzanski-Neumann) * modules/input/Makefile.am (gtk.immodules): Query .la files rather than shared objects in .libs when creating the uninstalled gtk.immodules file. * gtk/gtkmain.c (_gtk_find_module): Look for .la files after looking for the normal soname extension to handle cases where the soname extension isn't predictable, like AIX. * gtk/gtkthemes.c (gtk_theme_engine_load): Don't call g_module_build_path... leave that to gtk_rc_find_module_in_path. * demos/gtk-demo/main.c (main) demos/pixbuf-init.c (pixbuf_init): tests/testgtk.c (test_init): tests/testtext.c (test_init) tests/testdnd.c (test_init): Point gdk-pixbuf to .la files rather than poking in .libs for .so files. * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Remove .libs from GDK_PIXBUF_MODULEDIR.
* new fileHans Breuer2002-02-271-0/+80
| | | | | | | | | | | | | | | | | | | | | 2002-02-27 Hans Breuer <hans@breuer.org> * demos/gtk-demo/makefile.msc.in : new file * gdk-pixbuf/gtk-pixbuf.rc.in : new file to include version resource * gdk-pixbuf/makefile.msc : create and use gdk-pixbuf.res * gdk/win32/gdkkeys-win32.c : handle undefined LANG_URDU, (gdk_keyval_name) : fix endless looping * gtk/gtkfilesel.c : translate_win32_path() static * gtk/queryimmodules : print_escaped(), query_module() static * gtk/makefile.msc.in : added gtkkeyhash, build gtk-win32.res * gtk/stock-icons/makefile.msc : regenerated from directory listing (almost all filenames changed)
* Fixes for AIX compilation from Miroslaw Dobrzanski-Neumann, #72182.Owen Taylor2002-02-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | Fri Feb 22 18:36:45 2002 Owen Taylor <otaylor@redhat.com> Fixes for AIX compilation from Miroslaw Dobrzanski-Neumann, #72182. * demos/gtk-demo/main.c gtk/gtktreeview.c gtk/gtktoolbar.c gtk/gtkpaned.c gtk/gtkobject.c gtk/gtkcontainer.c gtk/gtkcolorsel.c gtk/gtkcellrender.c gdk/x11/xsettings-client.h: Squash trailing commas on enumerations. * gdk/gdktypes.h: Drop GDK_RELEASE_MASK to 1 << 30 instead of 1 << 31 to work around AIX compiler problem. (C standard seems to imply that compiler is required to use an unsigned type for the enum value in this case.) * gdk/gdkpixbuf-drawable.c: Fix lvalue casts. * gtk/gtkwindow.h: Fix use of enum types for bitfields ... compilers may choose to use a signed type for bitfields.
* screenshots of examples.Matthias Clasen2002-02-211-0/+1
| | | | | | | | | * docs/tutorial/images/*.png: screenshots of examples. * docs/tutorial/gtk-tut.sgml: remove deprecated widgets, add screenshots, fix chapters 1-4 for GTK+ 2.0. * demos/gtk-demo/Makefile.am (INCLUDES): add -DGDK_PIXBUF_DISABLE_DEPRECATED.
* More work on #71430.Matthias Clasen2002-02-161-0/+1
| | | | | | | | | | | | * examples/*/Makefile (CFLAGS): add deprecation guards. * docs/tutorial/gtk-tut.sgml, examples/*/*.c: make most examples deprecation-clean; the major offenders right now are the examples that make heavy use of completely deprecated or broken widgets: list, tree, text, pixmap, paned and progressbar. These will have to be redone from scratch. * demos/Makefile.am (INCLUDES): add -DGDK_PIXBUF_DISABLE_DEPRECATED.
* XCopyArea with subwindow_mode = IncludeInferiors. (#70999)Owen Taylor2002-02-091-2/+2
| | | | | | | | | | | Sat Feb 9 00:16:31 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): XCopyArea with subwindow_mode = IncludeInferiors. (#70999) * demos/testpixbuf-save.c (configure_cb): Fix a minor memory management problem.
* isspace -> g_ascii_isspace Remove gdki8n.h include. Remove <ctype.h>Darin Adler2002-02-081-7/+6
| | | | | | | | | | | | | | | | | | | | | | | * demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace * gdk/x11/gdkim-x11.c: Remove gdki8n.h include. * gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include. * gdk/x11/gdkmain-x11.c: Remove <ctype.h> include. * gtk/fnmatch.c: Remove <ctype.h> include. * gtk/gtkaccelgroup.c: Remove <ctype.h> include. * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper -> g_unichar_toupper, toupper -> g_unichar_totile * gtk/gtkbindings.c: Remove <ctype.h> include. * gtk/gtkfontsel.c: Remove <ctype.h> include. * gtk/gtkiconfactory.c: Remove <ctype.h> include. * gtk/gtkinputdialog.c: Remove <ctype.h> include. * gtk/gtklabel.c: Remove <ctype.h> include. * gtk/gtkmain.c: Remove <ctype.h> include. * gtk/gtkmenu.c: Remove <ctype.h> include. * gtk/gtkoldeditable.c: Remove <ctype.h> include. * gtk/gtkrc.c: Remove <ctype.h> include. * gtk/gtktextbtree.c: Remove <ctype.h> include. * gtk/gtktextiter.c: Remove <ctype.h> include. * gtk/gtktextsegment.c: Remove <ctype.h> include.
* Optimize exposes of partial insensitive images.Havoc Pennington2002-01-291-6/+41
| | | | | | | | | | | | | | | Tue Jan 29 18:50:59 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkimage.c (gtk_image_expose): Optimize exposes of partial insensitive images. 2002-01-24 Havoc Pennington <hp@redhat.com> * gtk/gtkimage.c (gtk_image_expose): create insensitive version of the image regardless of storage type, #63305 * demos/gtk-demo/images.c: add toggle button to demonstrate that GtkImage makes its contents insensitive
* fix a load of open line ends (cell_edited): modified patch from German PooKristian Rietveld2002-01-193-51/+59
| | | | | | | | | | | | | | | Sat Jan 19 20:49:41 2002 Kristian Rietveld <kris@gtk.org> * demos/gtk-demo/editable_cells.c: fix a load of open line ends (cell_edited): modified patch from German Poo Caaman~o to fix up old_text declaration and free the memory (do_editable_cells): unref the model after creating the treeview * demos/gtk-demo/list_store.c: fix a load of open line ends, (add_columns): set the sort column id, so we can sort * demos/gtk-demo/tree_store.c: fix a load of open line ends, (do_tree_store): unref the model after creating the treeview
* Append EXEEXT to ../gdk-pixbuf/gdk-pixbuf-csource.Tor Lillqvist2002-01-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | 2002-01-01 Tor Lillqvist <tml@iki.fi> * demos/Makefile.am (test-inline-pixbufs.h): Append EXEEXT to ../gdk-pixbuf/gdk-pixbuf-csource. 2001-12-31 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Improved error handling. (gdk_win32_hdc_get,gdk_win32_hdc_release): Silence gcc -Wall. * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image): Silence gcc -Wall. Use GDK_IS_PIXMAP_IMPL_WIN32 instead of GDK_IS_PIXMAP in one more place. * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Silence gcc -Wall. * gtk/Makefile.am (libgtk_win32_1_3_la_LDFLAGS): Add -lwsock32.
* Remove assorted G_OBJECT casts where unnecessary.Sebastian Wilhelmi2001-12-134-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-12-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gdk-pixbuf-animation.c, gdk-pixbuf-loader.c, gdk-pixpuf.c, io-gif-animation.c, io-gif.c, io-tiff.c, test-loaders.c: Remove assorted G_OBJECT casts where unnecessary. * gdk-pixbuf-loader.c: Call g_object_ref and g_object_unref instead of gdk_pixbuf_animation_ref and gdk_pixbuf_animation_unref resp. * gdk-pixbuf-csource.c, io-bmp.c, io-gif-animation.c, io-ico.c, io-jpeg.c, io-png.c, io-pnm.c, io-ras.c, io-tga.c, io-wbmp.c, io-xbm.c, io-xpm.c, test-gdk-pixbuf.c: Dito for gdk_pixbuf_ref and gdk_pixbuf_unref. * Makefile.am, pixops/Makefile.am: Compile everything with -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED * gdk-pixdata.c: Use g_ascii_strup() instead of g_strup(). * io-xpm.c: Use g_ascii_strcasecmp() instead of g_strcasecmp(). * demos/testpixbuf-drawable.c, demos/testpixbuf-save.c, demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref resp.
* added new keyboard shortcut 'a' which adds alpha to the pixbuf; re-loadMichael Natterer2001-12-111-6/+109
| | | | | | | | 2001-12-11 Michael Natterer <mitch@gimp.org> * demos/testpixbuf-save.c: added new keyboard shortcut 'a' which adds alpha to the pixbuf; re-load the saved pixbuf and pixel-by-pixel compare it with the original one.
* gtk/gtkmain.c g_module_symbol takes a gpointer *, not just a gpointer.Manish Singh2001-12-051-1/+1
| | | | | | | | | | | | | 2001-12-04 Manish Singh <yosh@gimp.org> * gtk/gtkmain.c * gtk/queryimmodules.c: g_module_symbol takes a gpointer *, not just a gpointer. * gtk/gtkwidget.c (gtk_widget_push_composite_child): minor cosmetic correction to docs. * demos/gtk-demo/item_factory.c: add GTK_WINDOW() cast
* Minor fix.Jonathan Blandford2001-12-041-2/+2
| | | | | | | | | | | | | | | | | | Tue Dec 4 18:38:35 2001 Jonathan Blandford <jrb@redhat.com> * demos/gtk-demo/main.c: (create_tree): Minor fix. * docs/tree-column-sizing.txt: Update * gtk/gtkrbtree.[ch]: Massive work to support validation. * gtk/gtktreemodel.c: Doc fixes. * gtk/gtktreeview.c: Incremental reflow added. * gtk/gtktreeviewcolumn.c: ditto * gtk/gtktreeviewcolumn.h: ditto itty bitty ChangeLog entry. Big 'ol changes.
* fix typoKristian Rietveld2001-11-282-3/+1
| | | | | | | | | Wed Nov 28 22:20:44 2001 Kristian Rietveld <kristian@planet.nl> * demos/gtk-demo/editable_cells.c: fix typo * demos/gtk-demo/list_store.c (add_columns): remove call to gtk_tree_view_column_set_clickable which didn't make sense
* demos/pixbuf-demo.c M_PI -> G_PI.Tor Lillqvist2001-11-253-10/+22
| | | | | | | | | | | | | | | 2001-11-26 Tor Lillqvist <tml@iki.fi> * demos/pixbuf-demo.c * demos/gtk-demo/pixbufs.c: M_PI -> G_PI. * demos/gtk-demo/main.c (read_line): No flockfile() or getc_unlocked() on Win32. 2001-11-25 Tor Lillqvist <tml@iki.fi> * configure.in * acconfig.h: As we now use GDir, no need to check for dirent.h.
* Version 1.3.11 Require GLib-1.3.11, Pango-0.22, ATK-0.7. Restore toGTK_1_3_11Owen Taylor2001-11-237-132/+198
| | | | | | | | | | | | | | | | | | Thu Nov 22 15:01:03 2001 Owen Taylor <otaylor@redhat.com> * Version 1.3.11 * configure.in (ATK_REQUIRED_VERSION): Require GLib-1.3.11, Pango-0.22, ATK-0.7. * tests/prop-editor.c (property_widget): Restore to working as well as it did before. * gtk/gtklistitem.h: Mark deprecated since it is an integral part of GtkList. * demos/gtk-demo/demo-common.h: New header file, for a common functions not important to the meat of the demos. * demos/gtk-demo/main.c (demo_ifind_file): Add a utility function to search for a file used by the demo. * demos/*.c: Use demo_find_file.
* demos/gtk-demo/appwindow.c reduce compiler warningsSven Neumann2001-11-162-2/+2
| | | | | | | 2001-11-16 Sven Neumann <sven@gimp.org> * demos/gtk-demo/appwindow.c * demos/gtk-demo/menus.c: reduce compiler warnings
* Remove unused callback to make things compile withOwen Taylor2001-11-161-66/+0
| | | | | | | | Thu Nov 15 19:47:09 2001 Owen Taylor <otaylor@redhat.com> * demos/gtk-demo/main.c (button_press_event_cb): Remove unused callback to make things compile with gtk_tree_view_path_at_pos_change().
* added gtkaccelmap.sgml. other updates.Tim Janik2001-11-133-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Nov 12 23:06:38 2001 Tim Janik <timj@gtk.org> * added gtkaccelmap.sgml. other updates. Mon Nov 12 23:08:37 2001 Tim Janik <timj@gtk.org> * gtk/maketypes.awk: fix type utils generation on unix. * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator registry. * gtk/gtkaccelgroup.[hc]: major API/implementation revamp: removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default, gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry, gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove, gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object. introduced ::accel_changed signal for change notification, and gtk_accel_group_connect/disconnect to connect closures to accel groups. made gtk_accel_group_attach/detach and gtk_accel_group_activate private functions. deprecated gtk_accel_group_ref/unref. * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention to accel group changed notification and basically operate on closures. removed gtk_accel_label_get_accel_object and gtk_accel_label_set_accel_object. introduced gtk_accel_label_set_accel_closure, and for convenience, gtk_accel_label_set_accel_widget. * gtk/gtkitemfactory.[hc]: removed accelerator propagation code which mostly moved into gtkaccelmap.[hc]. removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_* and gtk_item_factory_print_func. * gtk/gtkmain.c: call _gtk_accel_map_init(). * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(), that associates an accelerator path with menu items, through which persistent accelerator settings on menu items are enabled. * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator paths of menu item can be default constructed to allow installation of accelerators on menu items that don't come with an accelerator binding by default. * gtk/gtksettings.c: fix STRING type rc settings by special casing them appropriately in the parser. * gtk/gtksignal.[hc]: allow a class function offset of 0 for gtk_signal_newv(). * gtk/gtkwidget.[hc]: accelerator API revamp. removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal, gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and gtk_widget_(un)lock_accelerators. accelerators maintained through gtk_widget_add/remove_accelerator() are not runtime changable now, the correct sequence to setup a widget for runtime changable accelerators is now: gtk_accel_map_add_entry(accel_path, key, mods); _gtk_widget_set_accel_path(widget, accel_path, accel_group); * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel group changes (as well as mnemonic changes) through the new signal ::accels_changed. Sat Nov 10 12:08:56 2001 Tim Janik <timj@gtk.org> * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle GString->string conversions.
* wacky easter eggHavoc Pennington2001-11-061-0/+87
| | | | | | 2001-11-06 Havoc Pennington <hp@redhat.com> * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
* expose the child widgets in here (gtk_text_view_realize): set parentHavoc Pennington2001-11-061-35/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-11-05 Havoc Pennington <hp@redhat.com> * gtk/gtktextview.c (gtk_text_view_paint): expose the child widgets in here (gtk_text_view_realize): set parent window of child widgets (gtk_text_view_size_request): use child req to decide whether to invalidate layout, not widget->requisition * gtk/gtktextdisplay.c (render_layout_line): set shaped_width_pixels for NULL shape objects, so that we properly draw the "missing pixbuf/widget" thing (render_layout_line): don't draw the widget here (gtk_text_layout_draw): pass out a list of widgets that need exposing * demos/gtk-demo/textview.c (insert_text): add demo of child widgets * gtk/gtktextlayout.c (add_child_attrs): remove debug spew * gtk/gtktextdisplay.c (render_layout_line): remove debug spew * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add scroll offsets (gtk_text_view_value_changed): poke new X and Y into child allocations
* Set a reasonable default height for the window.Owen Taylor2001-11-022-18/+57
| | | | | | | | | | | | | | | | | | | | | | Thu Nov 1 19:18:34 2001 Owen Taylor <otaylor@redhat.com> * demos/gtk-demo/stock_browser.c (do_stock_browser): Set a reasonable default height for the window. * demos/gtk-demo/stock_browser.c (id_to_macro): Fix bug where subsequent '-' weren't converted to '_'. (#59550, Matthias Clasen) * demos/gtk-demo/appwindow.c (menu_items): Don't right justify the Help menu - just include a comment on how to do it. (#63539, Marius Andreiana) * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't list GTK_ICON_SIZE_INVALID. * demos/gtk-demo/stock_browser.c: Show the biggest available size, not a fixed size. (Often reported, including #63539, Marius Andreiana)
* Anders Carlsson suggested to use G_N_ELEMENTS hereKristian Rietveld2001-10-261-3/+1
| | | | | | | Fri Oct 26 18:27:11 2001 Kristian Rietveld <kristian@planet.nl> * demos/gtk-demo/list_store.c (create_model): Anders Carlsson suggested to use G_N_ELEMENTS here
* Version 1.3.10, require GLib 1.3.10.GTK_1_3_10Owen Taylor2001-10-251-2/+2
| | | | | | | | | Wed Oct 24 11:36:33 2001 Owen Taylor <otaylor@redhat.com> * configure.in (GTK_MICRO_VERSION): Version 1.3.10, require GLib 1.3.10. * NEWS: updates.
* Remove handle_box from App demo.Jonathan Blandford2001-10-221-13/+2
| | | | | | | | | | | | | | | | | Mon Oct 22 14:08:26 2001 Jonathan Blandford <jrb@redhat.com> * demos/gtk-demo/appwindow.c: Remove handle_box from App demo. * gtk/gtktreeview.c (size_allocate): Move to a different drawing system. Instead of having a window the size of the tree, we have a window the size of widget->allocation, and simply draw with the offset. (coords_are_over_arrow): ditto. Move to window coordinates. (do_prelight): ditto (do_unprelight): ditto * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): Minor fix from Kristian Rietveld to fix unsorted case.
* at Oct 20 19:38:16 2001 Owen Taylor <otaylor@redhat.com>Owen Taylor2001-10-2020-291/+240
| | | | | | * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_* in favor of g_signal_*, gtk_object_* in favor of g_object_*.
* Call setlocale (LC_ALL, ""). (#60606)Owen Taylor2001-10-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Oct 10 12:48:38 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, ""). (#60606) * gtk/gtkmain.c (gtk_disable_setlocale): Add function to disable calling setlocale (LC_ALL, ""). * gtk/gtkmain.c (gtk_set_locale): Indicate in the docs that this function is not typically useful. * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}: Automatically initialize GDK for the current locale on gdk_init(). Don't reset locale to C when XSupportsLocale() fails. * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove useless checks for UTF-8 locale breakage that mattered only for X. * examples/calendar/calendar.c tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to gtk_set_locale(). * gtk/gtkiconfactory.c gtk/gtkitemfactory.c: gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
* remove unused enumHavoc Pennington2001-10-081-8/+0
| | | | | | | | | | 2001-10-08 Havoc Pennington <hp@pobox.com> * demos/gtk-demo/stock_browser.c: remove unused enum * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node): pass the current selection state of the node in to the user selection func
* gdk-pixbuf/gdk-pixbuf-io.c gdk-pixbuf/gdk-pixbuf-private.hSven Neumann2001-10-052-1/+9
| | | | | | | | | | | | | | | | | | | | | | 2001-10-05 Sven Neumann <sven@gimp.org> * gdk-pixbuf/gdk-pixbuf-io.c * gdk-pixbuf/gdk-pixbuf-private.h * gdk-pixbuf/gdk-pixbuf.c * gdk-pixbuf/gdk-pixbuf.h * gdk-pixbuf/io-jpeg.c * gdk-pixbuf/io-png.c: changed GDK_PIXBUF_ERROR_BAD_OPTION_VALUE to GDK_PIXBUF_ERROR_BAD_OPTION to we can use it for bad keys too. Added new public API gdk_pixbuf_get_option() to retrieve key/value pairs set by an image loader. Added support for saving and reading PNG tEXt chunks in PNG images. * demos/testpixbuf-save.c * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk feature. * gdk-pixbuf/tmpl/gdk-pixbuf.sgml: adapt to changes in GDK_PIXBUF_ERROR enum.
* add editable_cells.c, list_store.c and tree_store.cKristian Rietveld2001-10-029-67/+1332
| | | | | | | | | | | | | | | | | | | | | | Tue Oct 2 20:18:32 2001 Kristian Rietveld <kristian@planet.nl> * demos/gtk-demo/Makefile.am: add editable_cells.c, list_store.c and tree_store.c * demos/gtk-demo/appwindow.c: remove tearoff item from File menu, put menubar and toolbar in handle boxes. * demos/gtk-demo/genincude.pl: various changes to support trees * demos/gtk-demo/main.c: various changes to support trees * demos/gtk-demo/stock_browser.c: changed name of demo to Stock Item and Icon Browser, so geninclude.pl doesn't see it as child * demos/gtk-demo/editable_cells.c: new file/demo * demos/gtk-demo/list_store.c: new file/demo * demos/gtk-demo/tree_store.c: new file/demo
* add demo of passing non-stock label in to gtk_dialog_new_with_buttonsHavoc Pennington2001-09-271-0/+2
| | | | | | | | | | | | | | | | 2001-09-26 Havoc Pennington <hp@redhat.com> * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo of passing non-stock label in to gtk_dialog_new_with_buttons * gtk/gtktextview.c (cursor_blinks): disable cursor blink when debugging updates * gtk/gtktextiter.h: comment about how GtkTextIter struct contents are private * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't exist, fall back to mnemonic label, not plain label, bug #61184
* ue Sep 25 12:41:17 2001 Owen Taylor <otaylor@redhat.com>GTK_1_3_9Owen Taylor2001-09-251-8/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: Version 1.3.9, interface age 0, binary age 0. * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5. * NEWS: Updates. Mon Sep 24 11:59:09 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared function for drawing cursors between gtkentry/gtklabel/gtktextview. Should this be public? It has a bit of an odd interface, but custom editing widgets probably should be using it. Function will draw with wider width for taller cursors, and draws a little indicator arrow to indicate directoin for split cursors. * gtk/gtktextview.c: Add a "cursor_color" property. * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to gtk_text_layout_draw(). * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use _gtk_draw_insertion_cursor(). Tue Sep 25 11:22:23 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore the behavior where you could turn family_set (etc) back on and get back the values you had before. * demos/gtk-demo/stock_browser.c (id_to_macro): Use g_string_ascii_up() rather than looping through the string ourself.
* Make a GtkCellEditable (get_widget_window_size): Change to let it honorJonathan Blandford2001-09-252-11/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Sep 25 12:34:42 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtkentry.c: Make a GtkCellEditable (get_widget_window_size): Change to let it honor size_allocate when a CellEditable. * gtk/gtktreeview.c: M-x clean-line-ends. Lots of focus and editable changes. (gtk_tree_view_set_cursor): Now you can set the cursor horizontally, as well as start editing. * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing code to look more like the other check buttons. * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size): Change the way we calculate cell size. * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller. * demos/gtk-demo/sizegroup.c: Add mnemonics. * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs. Fix logic. * gtk/gtkcellrenderertext.c: Change to be editable. * gtk/gtkcellrenderertoggle.c: Change to be activatable. * test/testtreesort.c: Fix misspelling * test/testreecolumns.c: Add mnemonics. * test/testreeedit.c: New test program.
* don't use BUILT_SOURCES as its broken in automake 1.4, add explicit objectTim Janik2001-09-191-2/+1
| | | | | | | | | | | | Wed Sep 19 02:50:40 2001 Tim Janik <timj@gtk.org> * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES as its broken in automake 1.4, add explicit object rule to generate this. * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles. get rid of uneccessary stamps, group stuff more logically, and build sources due to object rules. fix srcdir!=builddir.
* demos/gtk-demo/main.c (setup_default_icon): Use a shapedMatthias Clasen2001-09-141-1/+6
| | | | icon instead of one with ugly white background.
* demos/gtk-demo/stock_browser.c (id_to_macro): make the uppercasing work. ↵Matthias Clasen2001-09-141-2/+1
| | | | (#59550)
* Update to use the new g_boxed_type_register_static API.Alex Larsson2001-09-101-3/+1
| | | | | | | | | | | | 2001-09-10 Alex Larsson <alexl@redhat.com> * demos/gtk-demo/stock_browser.c: * gdk/gdkcolor.c: * gdk/gdkcursor.c: * gdk/gdkevents.c: * gdk/gdkrectangle.c: * gtk/gtktypeutils.c: Update to use the new g_boxed_type_register_static API.
* Removed 'fill' attribute. It was silly b/c that was a property of the cellJonathan Blandford2001-09-081-14/+44
| | | | | | | | | | | | | | | | | Fri Sep 7 20:45:29 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}): Removed 'fill' attribute. It was silly b/c that was a property of the cell renderer, anyway. (gtk_tree_view_column_render): Actually render the packed renderers. * doc/tree-column-sizing.txt: initial devel documentation. * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug. * gtk/gtkcellrenderertextpixbuf.[ch]: removed. * tests/testtreefocus.c: fix up to reflect above changes. * tests/testtreeview.c: ditto * demos/gtk-demo/stock_browser.c: ditto
* Make gdkx.h the only installed header from gdk/x11. All structures inOwen Taylor2001-09-072-20/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Sep 7 11:51:44 2001 Owen Taylor <otaylor@redhat.com> Make gdkx.h the only installed header from gdk/x11. All structures in gdk/x11 are opaque. * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h: Don't install gdk{drawable,pixmap,window}-x11.h. * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, GdkVisualClass into C files. * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static. * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c, gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c} Add public functions to replace previously exported direct structure access. gdk_x11_colormap_get_{xdisplay,xcolormap} gdk_x11_cursor_get_{xdisplay,xcursor}, gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage}, gdk_x11_gc_get_{xdisplay,ximage} * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo, GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals. Fix a number of variables and functions that were exported "accidentally" from GDK. * gdk/**.[ch]: gdk => _gdk for gdk_visual_init, gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data, gdk_event_notify, gdk_queued_events, gdk_queued_tail, gdk_event_new, gdk_events_queue, gdk_events_unqueue, gdk_event_queue_find_first, gdk_event_queue_remove_link, gdk_event_queue_append, gdk_event_button_generate, gdk_debug_flags, gdk_default_filters, gdk_parent_root. * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}: gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window, gdk_use_xshm, gdk_input_ignore_core. * gdk/x11/xsettings-common.h (xsettings_list_insert): Add #defines to namespace functions into the private _gdk_ namespace. * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window () to replace gdk_parent_root exported variable. Adjust and deprecate GDK_ROOT_PARENT(). * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix GDK_ROOT_PARENT usage, remove includes of port-specific headers. * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, gdk_input_devices, _gdk_input_windows, gdk_init_input_core. * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c} docs/Changes-2.0.txt: Remove gdk_wm_protocols, gdk_wm_delete_window functions, gdk_wm_take_focus, use gdk_atom_intern() instead. * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h} gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h} gtk/gtkselection.c Unexport gdk_selection_property, just use gdk_atom_intern ("GDK_SELECTION"). * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, GdkVisualprivate, gdk_x11_gc_flush. Make a number of public exports of variables into functions to increase encapsulation. * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, move to gdkinternals.h. Add gdk_device_get_core_pointer (). * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, gdk_error_warnings. * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h} docs/Changes-2.0.txt: s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen() s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow() Add gdk_x11_get_default_xdisplay(). * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, Don't export gdk_progclass, move --class command line option and handling to common portion of GDK. Miscellaneous fixes: * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix g_return_val_if_fail that should have been g_return_if_fail. * gdk/gdkinternals.h gdk/gdkprivate.h: Move gdk_synthesize_window_state() to the semi-public gdkprivate.h. * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded X11 dependency. * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: Remove unused gdk_key_repeat_disable/restore. * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def: Remove unused gdk_null_window_warnings variable. * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox; it can be retrieved from the repository; it is too far from functional to be worth having people check out; it would be easier to start from scratch, I suspect. * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID(). * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: Fix some accidentally global variables and unused global variables. * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: Fix some accidentally global variables and unused global variables. Add some space for future expansion to multihead. * gdk/gdkdrawable.h: Add four reserved function pointers for future expansion of GdkDrawableClass. * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer where we can put a GdkScreen * later.
* add default iconHavoc Pennington2001-08-291-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-08-28 Havoc Pennington <hp@pobox.com> * demos/gtk-demo/main.c (setup_default_icon): add default icon * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): warning fix (gtk_radio_button_new_with_label): warning fix * gtk/gtkdnd.c: used some random GtkImage private structs, update to reflect GtkImage changes * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check whether the hint is supported, just always set the icon. A task list might want to use it even if the WM doesn't, and the WM may change over time. Also, XDeleteProperty() if list == NULL. * gtk/gtkwindow.c (gtk_window_set_icon_list) (gtk_window_get_icon_list) (gtk_window_set_icon) (gtk_window_get_icon) (gtk_window_set_default_icon_list) (gtk_window_get_default_icon_list): new functions * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet * gtk/gtkimage.c: Implement property support, bug #59408 * gtk/gtkcontainer.c (gtk_container_add): make the warning message on reparent-without-removing-first a bit more helpful. Let's just destroy this FAQ.
* demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_objectMatthias Clasen2001-08-281-9/+11
| | | | instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
* gdk-pixbuf/test-loaders.c (test_loader): Catch errors at close time.Matthias Clasen2001-08-281-10/+6
| | | | | | gdk-pixbuf/test-loaders.c (main): Remove C++ comments. demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf only in response to an area_prepared signal.
* Fix to use GtkSelectionMode. ditto ditto ditto.Jonathan Blandford2001-08-272-2/+2
| | | | | | | | | Mon Aug 27 15:28:56 2001 Jonathan Blandford <jrb@redhat.com> * tests/testtreefocus.c (main): Fix to use GtkSelectionMode. * tests/treestoretest.c (make_window): ditto * demos/gtk-demo/main.c (create_tree): ditto * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
* Use autoconf 2.13/2.50 compat macro.Owen Taylor2001-08-271-1/+1
| | | | | | | | | | | | | | | | | | | Sun Aug 26 20:00:00 2001 Owen Taylor <otaylor@redhat.com> * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat macro. (patch from ERDI Gergo <cactus@cactus.rulez.org>, #58920) * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change interface to be a standard setter from gtk_menu_item_right_justify. (gtk_menu_item_get_right_justified): a getter to go with the setter * gtk/gtkmenuitem.h: Add a deprecated compat macro for gtk_menu_item_right_justify. * demos/gtk-demo/menus.c tests/testgtk.c: Switch to gtk_menu_item_set_right_justified.
* Deprecate gtk_menu_bar_append/prepend/insert, forgot to do this when weOwen Taylor2001-08-231-3/+3
| | | | | | | | | | | | | | | | | | Thu Aug 23 19:10:01 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate gtk_menu_bar_append/prepend/insert, forgot to do this when we deprecated gtk_menu_append/prepend/insert. * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated compat macros. * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being renamed by compat macro. * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(), gtk_font_selection_dialog_get_font(). (Suggested by Vitaly Tishkov, #59383)
* [ Patch from Sebastian Wilhelmi, 52790 ]Owen Taylor2001-08-237-11/+5
| | | | | | | | | | | | | | | | | | | | | Wed Aug 22 19:15:39 2001 Owen Taylor <otaylor@redhat.com> [ Patch from Sebastian Wilhelmi, 52790 ] * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: Move compatibility macros from g[dt]kcompat.h to within #ifndef G[DT]K_DISABLE_DEPRECATED in each file. * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h. * demos/Makefile.am demos/gtk-demo/Makefile.am docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED. * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c, testpixbuf.c}: Fix usages of deprecated functions.
* Sun Aug 19 01:44:44 2001 Jonathan Blandford <jrb@redhat.com>>Jonathan Blandford2001-08-191-4/+0
| | | | | | | | | | | | | | | | | * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell. * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column. (_gtk_tree_view_find_node): If *node is NULL, *tree should be NULL too. * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref column/renderers. * tests/testtreecolumns.c: ditto * tests/testtreefocus.c: ditto * tests/testtreesort.c: ditto * tests/testtreeview.c: ditto * tests/treestoretest.c: ditto