summaryrefslogtreecommitdiff
path: root/demos/gtk-demo
Commit message (Collapse)AuthorAgeFilesLines
* Rename GtkMenuMerge to GtkUIManager.Matthias Clasen2003-08-251-93/+122
|
* Namespace the enum values properly. Sorry about the resize grip trouble,Matthias Clasen2003-08-241-6/+6
| | | | | | | | | | | | 2003-08-25 Matthias Clasen <maclas@gmx.de> * gtk/gtkactiongroup.h (GtkActionGroupEntryType): Namespace the enum values properly. Sorry about the resize grip trouble, Owen. (#120621) * gtk/gtkactiongroup.c: * demos/gtk-demo/appwindow.c: * tests/testmerge.c: * tests/testactions.c: Use new GtkActionGroupEntryType enum.
* A model-view separation for menus and toolbars, using the EggMenu code byMatthias Clasen2003-08-241-115/+119
| | | | | | | | | | | | | | | | | | | | | | | 2003-08-24 Matthias Clasen <maclas@gmx.de> * gtk/gtkaction.[ch]: * gtk/gtktoggleaction.[ch]: * gtk/gtktoggleactionprivate.h: * gtk/gtkradioaction.[ch]: * gtk/gtkactiongroup.[ch]: * gtk/gtkmenumerge.[ch]: A model-view separation for menus and toolbars, using the EggMenu code by James Henstridge. * gtk/gtk.h: Include new headers. * gtk/Makefile.am: Add new files. * tests/testactions.c: Test for actions. * tests/testmerge.c: Test for menu merging. * tests/merge-[123].ui: Test data for testmerge. * tests/Makefile.am: Add testactions and testmerge. * demos/gtk-demo/appwindow.c: Use GtkMenuMerge to construct the menubar and toolbar.
* Hide the resize grip when maximized or fullscreen.Matthias Clasen2003-08-071-0/+16
| | | | | | 2003-08-08 Matthias Clasen <maclas@gmx.de> * demos/gtk-demo/appwindow.c (do_appwindow): Hide the resize grip when maximized or fullscreen.
* Add a "Hypertext" demo.Matthias Clasen2003-08-053-2/+318
|
* Use g_setenv() instead of putenv().Matthias Clasen2003-08-021-2/+2
|
* Merged from stable.Kristian Rietveld2003-07-121-4/+2
| | | | | | | | | Sat Jul 12 16:08:32 2003 Kristian Rietveld <kris@gtk.org> Merged from stable. * demos/gtk-demo/editable_cells.c (cell_edited): fixup bad code (#115784, Owen Taylor).
* Patch from James Henstridge to update to automake-1.7 (#109542)Owen Taylor2003-05-061-31/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue May 6 16:50:52 2003 Owen Taylor <otaylor@redhat.com> Patch from James Henstridge to update to automake-1.7 (#109542) * autogen.sh: update to call newer tools. * configure.in: various updates, to use M4 macros to put variables that change each release at the top. Use AC_HELP_STRING to format help strings. Use AC_CONFIG_COMMANDS to generate gdkconfig.h. * Makefile.am: require Automake 1.7. Remove gdk-2.0.pc and gtk+-2.0.pc on uninstall. Pass --enable-gtk-doc to configure during distcheck. * docs/reference/*/Makefile.am: simplify to use the gtk-doc.make makefile fragment. * */Makefile.am: don't use STRIP_BEGIN/STRIP_END. Use BUILT_SOURCES where appropriate. Build generated files in builddir rather than srcdir. Fix uninstall and distclean targets to satisfy distcheck. === * gdk/*/Makefile.am: Remove the hacks to get gdkenumtypes.h built first, since we are now using BUILT_SOURCES. * gdk/Makefile.am: Remove an outdated comment about gdk_headers. * demos/gtk-demo/Makefile.am: Fix srcdir != buildd problem with geninclude.pl. * configure.in: Update versions to 2.3.0.
* Remove geninclude.pl from CVS and don't dist it either, it is generated.Owen Taylor2003-04-212-164/+0
| | | | | | | | Mon Apr 21 18:42:51 2003 Owen Taylor <otaylor@redhat.com> * demos/gtk-demo/Makefile.am demos/gtk-demo/geninclude.pl: Remove geninclude.pl from CVS and don't dist it either, it is generated. (#108970, Rich Kinder)
* Only use files from the current directory if it looks like the srcdir.Matthias Clasen2003-04-021-1/+2
| | | | | | | 2003-04-03 Matthias Clasen <maclas@gmx.de> * demos/gtk-demo/main.c (demo_find_file): Only use files from the current directory if it looks like the srcdir. (#109357)
* Fix NULL/FALSE confusion (#107648, Morten Welinder)Matthias Clasen2003-03-061-1/+1
| | | | | | | | | | 2003-03-06 Matthias Clasen <maclas@gmx.de> * gtk/gtktextmark.c (gtk_text_mark_get_buffer): * gtk/gtkeditable.c (gtk_editable_get_chars): * gtk/gtkctree.c (gtk_ctree_find_node_ptr): * demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion (#107648, Morten Welinder)
* demos/gtk-demo/main.c demos/gtk-demo/tree_store.c gdk/x11/gdkscreen-x11.cManish Singh2003-02-282-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Feb 27 17:44:24 2003 Manish Singh <yosh@gimp.org> * demos/gtk-demo/main.c * demos/gtk-demo/tree_store.c * gdk/x11/gdkscreen-x11.c * gtk/gtkcellrenderertoggle.c * gtk/gtkcolorsel.c * gtk/gtkdnd.c * gtk/gtkeditable.c * gtk/gtkentry.c * gtk/gtkmenu.c * gtk/gtkmenubar.c * gtk/gtkmenuitem.c * gtk/gtkmenushell.c * gtk/gtkrc.c * gtk/gtksettings.c * gtk/gtkstyle.c * gtk/gtktextbuffer.c * gtk/gtktextview.c * gtk/gtktreeviewcolumn.c * tests/testgtk.c * tests/testtext.c * tests/testtreeedit.c * tests/testtreefocus.c * tests/testtreeview.c: remove unnecessary G_OBJECT() casts.
* demos/pixbuf-demo.c demos/testpixbuf.c remove deprecated gtk_timeout_*Manish Singh2003-02-011-1/+1
| | | | | | | | Fri Jan 31 17:45:22 2003 Manish Singh <yosh@gimp.org> * demos/pixbuf-demo.c * demos/testpixbuf.c * demos/gtk-demo/pixbufs.c: remove deprecated gtk_timeout_* usage.
* Explicitely draw an opaque rectangle using the background color ratherDaniel Elstner2003-01-301-1/+26
| | | | | | | | | | | | 2003-01-30 Daniel Elstner <daniel.elstner@gmx.net> * gtk/gtkcolorsel.c (palette_paint): Explicitely draw an opaque rectangle using the background color rather than relying on gdk_window_clear_area(), so that the palette works properly with pixmap themes. * demos/gtk-demo/colorsel.c: Install an "expose_event" handler to fill the drawing area in the background color.
* Use octal escapes rather than literal UTF-8.Owen Taylor2002-12-071-2/+2
| | | | | | | | Fri Dec 6 19:00:59 2002 Owen Taylor <otaylor@redhat.com> * demos/gtk-demo/testview.c tests/testgtk.c tests/testtext.c tests/testtextbuffer.c: Use octal escapes rather than literal UTF-8.
* Deprecation cleanupManish Singh2002-10-131-2/+2
| | | | | | | | | | Sun Oct 13 16:55:49 2002 Manish Singh <yosh@gimp.org> * gtk/gtkdnd.c gtk/gtkradiobutton.[ch]: Deprecation cleanup * gtk/Makefile.am: Added disable deprecation flags * demos/pixbuf-init.c demos/gtk-demo/changedisplay.c: minor clean up
* - Replace GdkPointerHooks with a multihead-safe GdkDisplayPointerHooks,Owen Taylor2002-10-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Oct 7 15:10:00 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkdisplay.[ch] gdk/gdkinternals.h gdk/gdkwindow.[ch] gdk/linux-fb/gdkwindow-fb.c gdk/win32/gdkwindow-win32.c gdk/x11/gdkwindow-x11.c: - Replace GdkPointerHooks with a multihead-safe GdkDisplayPointerHooks, leave GdkPointerHooks around for singlehead. - Add gdk_display_get_pointer() to get the pointer location with the screen it is on. * gdk/gdk.def gdk/gdkdisplay.[ch] gdk/gdkscreen.[ch]: Change gdk_screen_get_window_at_pointer() to gdk_display_get_window_at_pointer(). * gtk/gtktreeview.c demos/gtk-demo/changedisplay.c tests/testgtk.c: Use gdk_display_get_window_at_pointer(), not gdk_screen_get_window_at_pointer(). * gtk/gtkcolorsel.c: Fix grabbing color to be multihead safe. * gtk/gtkwidget.c: Allow gtk_widget_push_colormap (NULL). since it is useful for writing code that doesn't know the dcurrent state but needs a clean colormap. * gtk/gtkrc.c: When loading the settings for a particular screen, only reset toplevels on that screen. * gtk/gtkiconfactory.h: Fix #ifdef GTK_MULTIHEAD_SAFE that should have been #ifndef GTK_MULTIHEAD_SAFE.
* Adjustments for recent gdk-pixbuf changes.Matthias Clasen2002-10-031-1/+1
|
* add deprecation compile flagsManish Singh2002-09-2910-52/+52
| | | | | | | | | | | | Sun Sep 29 14:22:47 2002 Manish Singh <yosh@gimp.org> * contrib/gdk-pixbuf-xlib/Makefile.am demos/Makefile.am demos/gtk-demo/Makefile.am: add deprecation compile flags * demos/testanimation.c demos/testpixbuf-save.c demos/testpixbuf.c demos/gtk-demo/*.c gdk-pixbuf/gdk-pixbuf-animation.c gdk-pixbuf/gdk-pixbuf.c: minor cleanups, getting rid of unnecessary casts
* Missed file:Owen Taylor2002-08-041-0/+627
| | | | | | | Thu Aug 1 19:09:39 2002 Owen Taylor <otaylor@redhat.com> * demos/gtk-demo/changedisplay.c: New demo for window migration between different displays and screens.
* New demo for window migration between different displays and screens.Owen Taylor2002-08-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Aug 1 19:09:39 2002 Owen Taylor <otaylor@redhat.com> * demos/gtk-demo/changedisplay.c: New demo for window migration between different displays and screens. * gtk/gtkrc.c gtkstyle.[ch]: Add _gtk_style_init_for_settings(), so that gtkrc.c can initialize the styles it creates for the right display. * gdk/gdkdisplaymanager.c (gdk_screen_get_default) * gtk/gtksettings.c (gtk_settings_get_default) * gtk/gtkstyle.c (gtk_style_init): Handle absence of a default screen. * gdk/x11/gdkmain-x11.c (_gdk_windowing_set_default_display): Handle display == NULL.x * gdk/gdkdisplay.c (gdk_display_dispose): Free the event queue. * gdk/x11/gdkevents-x11.c gdk/x11/gdkdisplay-x11.c: Remove the event source when closing a display. * gdk/gdkdisplay.[ch]: Add a ::closed signal, dispose() isn't convenient enough by itself. * gdk/x11/gdkevents-x11.c (gdk_xsettings_watch_cb): Create foreign windows for watch windows if there isn't an existing window, instead of installing a global filter. * gdk/x11/gdkscreen-x11.c gdk/x11/gdkprivate-x11.h gdk/x11/gdkevents-x11.c (_gdk_x11_events_uninit_screen): Clean up the xsettings_client when we are done with it. * gdk/x11/gdkevents-x11.c (_gdk_events_init): Remove excess call to _gdk_x11_events_init_screen()
* Fix typo in earlier patch.Owen Taylor2002-05-161-1/+1
| | | | | | | Thu May 16 15:44:15 2002 Owen Taylor <otaylor@redhat.com> * demos/gtk-demo/editable_cells.c (cell_edited): Fix typo in earlier patch.
* Fixes for #78258Owen Taylor2002-05-162-4/+4
| | | | | | | | | | | | | | | | Thu May 16 14:51:14 2002 Owen Taylor <otaylor@redhat.com> Fixes for #78258 * gtk/gtkrbtree.c demos/gtk-demo/editable-cells.c: Fix some 64-bit warning problems. (Patch from Matthias Clasen.) * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew_helper): Surround a bunch of debug code with G_ENABLE_DEBUG. * configure.in demos/gtk-demo/main.c: Replace #ifndef G_OS_WIN32 with proper #ifdef HAVE_FLOCKFILE.
* just run perl on the geninclude script manuallyjacob berkman2002-05-151-1/+1
| | | | | | | 2002-05-15 jacob berkman <jacob@ximian.com> * demos/gtk-demo/Makefile.am (demos.h): just run perl on the geninclude script manually
* Subsitute in @PERL@ instead of hardcoded /usr/bin/perl. (#78355, GarethOwen Taylor2002-05-141-1/+1
| | | | | | | | | | | | | | | Tue May 14 19:53:15 2002 Owen Taylor <otaylor@redhat.com> * demos/gtk-demo/geninclude.pl.in configure.in: Subsitute in @PERL@ instead of hardcoded /usr/bin/perl. (#78355, Gareth Pearce. Fix based on patch from Matthias Clasen) * gdk/Makefile.am: Patch from Daniel Elstner to use glib-mkenums instead of makeenums.pl. * gdk/{x11,linux-fb,win32}/Makefile.am: Hack to get gdkenumtypes.h built first.
* This commit adds stock icon functionality to GtkCellRendererPixbuf whichKristian Rietveld2002-04-221-25/+6
| | | | | | | | | | | | | | | | Mon Apr 22 19:24:29 2002 Kristian Rietveld <kris@gtk.org> This commit adds stock icon functionality to GtkCellRendererPixbuf which is totally cool. * gtk/gtkcellrendererpixbuf.h: add some fields * gtk/gtkcellrendererpixbuf.c: add finalize method, add some properties, add some stock icon rendering code. * demos/gtk-demo/stock_browser.c: modified to use the stock icon stuff in the cellrendererpixbuf instead of its own stock icon rendering code.
* Update version to 2.0.0Owen Taylor2002-03-051-6/+6
| | | | | | | | | | | | | | | | 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-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 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
* 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-252-5/+17
| | | | | | | | | | | | | | | 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
* 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-2014-130/+92
| | | | | | * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_* in favor of g_signal_*, gtk_object_* in favor of g_object_*.
* 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