1. 19 Jul, 2004 1 commit
    • Matthias Clasen's avatar
      Make GtkCellView public, since people seem to have uses for it, it is · fe842a54
      Matthias Clasen authored
      2004-07-19  Matthias Clasen  <mclasen@redhat.com>
      
      	Make GtkCellView public, since people seem to have uses for it,
      	it is clean API and we were just conservative in not making it
      	public initially. At the same time, get rid of GtkCellViewMenuItem,
      	which doesn't have any function which can't be served by a
      	GtkMenuItem with a GtkCellView child.
      
      	* gtk/gtk.h: Include gtkcellview.h
      
      	* gtk/Makefile.am (gtk_public_h_sources):
      
      	* gtk/Makefile.am (gtk_private_h_sources):
      	(gtk_c_sources): Remove gtkcellviewmenuitem.[hc]
      	* gtk/gtkcombobox.c: Replace all uses of GtkCellViewMenuItem by
      	GtkMenuItem with a GtkCellView child.
      
      	* gtk/gtkcellviewmenuitem.[hc]: Removed.
      fe842a54
  2. 16 Jul, 2004 1 commit
  3. 12 Jul, 2004 1 commit
    • Matthias Clasen's avatar
      New widget: GtkAboutDialog. · 4ed4ccc7
      Matthias Clasen authored
      2004-07-12  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkaboutdialog.h:
      	* gtk/gtkaboutdialog.c: New widget: GtkAboutDialog.
      
      	* gtk/Makefile.am (gtk_public_h_sources, gtk_c_sources):
      	* gtk/gtk.h: Add GtkAboutDialog. (#109435, Paolo Borelli,
      	patch by Matthias Clasen)
      4ed4ccc7
  4. 04 Jul, 2004 1 commit
    • Anders Carlsson's avatar
      Add a simple file browser based on the icon view. · 57f0d6a2
      Anders Carlsson authored
      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.
      57f0d6a2
  5. 12 May, 2004 1 commit
  6. 23 Oct, 2003 1 commit
    • Owen Taylor's avatar
      gtk/gtkfilechooserutils.c gtk/gtkfilechooserprivate.[ch]: Basic framework · b3bae3b4
      Owen Taylor authored
      Wed Oct 22 23:20:04 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkfilechooser.[ch] gtk/gtkfilefilter.[ch]
              gtk/gtkfilechooserwidget.[ch] gtk/gtkfilechooserdialog.[ch]:
              gtk/gtkfilechooserutils.c gtk/gtkfilechooserprivate.[ch]:
              Basic framework for the new file selector widget.
      
              * gtk/gtkfilechooserdefault.[ch] gtk/gtkcellrenderersep.[ch]
              gtk/gtkfilechooserentry.[ch] gtk/gtkfilesystemmodel.[ch]:
              Initial implementation of the GtkFileChooser user interface.
      
              * gtk/gtkfilesystemunix.[ch]: GtkFileSystem implementation
              for Unix files.
      
              * configure.in gtk/Makefile.am gtk/xdgmime: Build code
              for freedesktop.org MIME system on Unix.
      
              * tests/testfilechooser.c: Test program for GtkFileChooser
      
              * tests/prop-editor.c: Add support for properties on interfaces.
      b3bae3b4
  7. 26 Sep, 2003 1 commit
    • Kristian Rietveld's avatar
      Landing the new ComboBox. Note that only gtkcombobox.h and · c920afd9
      Kristian Rietveld authored
      Fri Sep 26 23:49:44 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Landing the new ComboBox. Note that only gtkcombobox.h and
      	gtkcomboboxentry.h are public.
      
      	* gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
      	gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch]: new files.
      
      	* gtk/Makefile.am, gtk/gtk.h: adding the new files.
      
      	* tests/testcombo.c: and a new test.
      
      	* tests/Makefile.am: adding the new test.
      c920afd9
  8. 25 Aug, 2003 1 commit
  9. 24 Aug, 2003 2 commits
    • Owen Taylor's avatar
      Remove reference to gtkresizegrip.h. · b374ae3f
      Owen Taylor authored
      Sun Aug 24 17:14:44 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtk.h: Remove reference to gtkresizegrip.h.
      b374ae3f
    • Matthias Clasen's avatar
      A model-view separation for menus and toolbars, using the EggMenu code by · e7e39565
      Matthias Clasen authored
      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.
      e7e39565
  10. 11 Jul, 2003 1 commit
    • Kristian Rietveld's avatar
      Landing GtkTreeModelFilter and the completion code. (Test program and · edef7d00
      Kristian Rietveld authored
      Fri Jul 11 14:32:43 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Landing GtkTreeModelFilter and the completion code. (Test program
      	and documentation will follow next week).
      
      	* gtk/gtkcellayout.[ch], gtk/gtkentrycompletion.[ch],
      	gtk/gtktreemodelfilter.[ch], gtk/gtkentryprivate.h: new files.
      
      	* gtkentry.[ch]: added gtk_entry_{get,set}_completion, wrote
      	necessary code to hook up completion.
      
      	* gtktreeviewcolumn.c: made GtkTreeViewColumn implement the new
      	GtkCellLayout interface.
      
      	* gtkmarshalers.list: added BOOLEAN:OBJECT,BOXED.
      
      	* gtk/gtk.h, gtk/Makefile.am, po/POTFILES.in: all updated for the new
      	source files.
      edef7d00
  11. 02 Jul, 2003 2 commits
    • Owen Taylor's avatar
      Implement a loader for named themed icon based on from gnome-desktop · a72aed4e
      Owen Taylor authored
      Wed Jul  2 18:00:56 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkicontheme.[ch]: Implement a loader for
              named themed icon based on from gnome-desktop library
              by Alex Larsson.
      
              * gtk/gtkiconthemeparser.[ch]: .ini file parsing code
              from gnome-desktop.
      
              * gtk/gtkiconfactory.[ch]: Add
              gtk_icon_source_set/get_icon_name() to allow stock icons
              to be based off of named theme icons.
      
              * gtk/gtkiconfactory.c: Rework sources so that the source
              is *either* a pixbuf, or a filename, or an icon name,
              instead of the pixbuf/filename mix it was before. Put a
              workaround for get_pixbuf() so that it can return the
              filename pixbuf, e.g, for render_icon().
      
              * gtk/gtkiconfactory.c: Make the default setup use
              themed icons, and add builtin icons to the default
              icon theme for all the standard pixbufs, so we
              don't rely on actually having an icon theme on disk.
      
              * gtk/gtkrc.c: Add support for @"icon-name" to specify
              a themed icon for a stock icon source.
      
              * tests/Makefile.am test/testicontheme.c: Add a test
              program from gnome-desktop.
      
              * gdk/x11/gdkevents-x11.c gtk/gtksettings.c: Add
              Net/IconThemeName / gtk-icon-theme-name setting.
      
              * gtk/gtkiconfactory.c (ensure_cache_up_to_date): Actually
              update the icon cache serial so we don't continually
      
              * gtk/gtkwidget.c: Fix a couple of references in doc comments
              to ::direction_set that should have been to ::direction-changed
      a72aed4e
    • Soeren Sandmann's avatar
      Add new toolbar headers · 26698473
      Soeren Sandmann authored
      Wed Jul  2 15:42:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtk.h: Add new toolbar headers
      
      	* tests/testtoolbar.c: new file
      
      	* tests/Makefile.am (noinst_PROGRAMS): Add testtoolbar.c
      
      	* gtk/gtkexpander.c (gtk_expander_class_init): Make it compile
      
      Tue Jul  1 22:49:25 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtktoolbar.c:
      	(gtk_toolbar_remove_tool_item): Fix bug where list is changed
      	inside a for loop (pointed out by Morten Welinder).
      	(gtk_toolbar_focus_home_or_end): Minor formatting change
      
      	Comments from Owen:
      
      	* gtk/gtktoolbutton.c: remove copy of elide_underscores(). Use
      	gtk_toolbar_elide_underscores instead.
      
      	* gtk/gtktoolbar.c: rename signal from focus_ends to
      	focus_home_or_end.
      	(_gtk_toolbar_elide_underscores): export this as an internal
      	function.
      	(gtk_toolbar_move_focus): add comment explaining difference to
      	gtk_toolbar_focus();
      	(gtk_toolbar_list_children_in_focus_order): Make TAB_FORWARD and
      	TAB_BACKWARD focus the right widgets in RTL mode
      
      	* gtk/gtktoolbutton.c (gtk_tool_button_new): Change to take
      	"label" and "icon" parameters
      
      	* gtk/gtktoolbutton.[ch]: remove icon_set property.
      26698473
  12. 01 Jul, 2003 1 commit
  13. 13 Nov, 2001 1 commit
    • Tim Janik's avatar
      added gtkaccelmap.sgml. other updates. · d07573c0
      Tim Janik authored
      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.
      d07573c0
  14. 19 Oct, 2001 1 commit
  15. 08 Sep, 2001 1 commit
  16. 23 Aug, 2001 1 commit
    • Owen Taylor's avatar
      [ Patch from Sebastian Wilhelmi, 52790 ] · a2d60d44
      Owen Taylor authored
      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.
      a2d60d44
  17. 21 Aug, 2001 1 commit
  18. 19 Jun, 2001 1 commit
    • Tim Janik's avatar
      fix PROP_EVENTS. · 5ebd1d02
      Tim Janik authored
      Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
      
              * gtk/Makefile.am:
              * gtk/gtk.h: disabled GtkPacker compilation.
      
              * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
      
              * gtk/gtknotebook.c:
              * gtk/gtktable.c:
              * gtk/gtkbox.c: ported this over to child properties.
      
              * gtk/gtksettings.c: fetch class properties via
              g_object_class_list_properties().
      
              * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
              child arg interface. use gobjectnotifyqueue.c for child property
              notification.
      
              * gtk/gtkwidget.[hc]: provide necessary means for container child
              properties, i.e. ::child_notify signal,
              gtk_widget_freeze_child_notify(),
              gtk_widget_child_notify(),
              gtk_widget_thaw_child_notify().
      
              * tests/testgtk.c: removed inferior property handling code, for
              property editing, a generic module should be used, and GLE
              coincidentally fullfills that purpose.
      
              * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
              needs to be adapted to g_object_class_list_properties() before this
              builds again.
      5ebd1d02
  19. 18 May, 2001 1 commit
    • Owen Taylor's avatar
      Remove reallocate-redraws property. This is something that only a widget · 50512ddc
      Owen Taylor authored
      Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcontainer.c: Remove reallocate-redraws property.
      	This is something that only a widget writer would ever want
      	to change.
      
      	* gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
      	gtk_signal_emit_by_name().
      
      	* gtk/gtkviewport.c: Fix some warnings.
      
      	* gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
      	allowing the requisitions of multiple widgets to be grouped
      	together.
      
      	* tests/testgtk.c: Add GtkSizeGroup test
      
      	* demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
      
      	* demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
      	warnings.
      
      	* configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
      50512ddc
  20. 03 May, 2001 1 commit
    • Owen Taylor's avatar
      Add dependency on Atk for accessibility support. · 42cc312d
      Owen Taylor authored
      Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
      
              * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
      	dependency on Atk for accessibility support.
      
      	* configure.in **/Makefile.am: Major reworking of substituted
      	variables for CFLAGS/LIBS to make a lot more sane and
      	keep the the compile/link lines a bit shorter.
      
      	* gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
      42cc312d
  21. 01 Apr, 2001 1 commit
    • Tim Janik's avatar
      got rid of gtk_widget_popup(), a function that bad needs to be nuked, not · 770938bf
      Tim Janik authored
      Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
              bad needs to be nuked, not just deprecated.
      
              * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use
              gtk_widget_popup().
      
              * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
      
              * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
              widget.
      
              * docs/Changes-2.0.txt: updates.
      770938bf
  22. 18 Mar, 2001 1 commit
    • Tim Janik's avatar
      added rc-style argument GtkSpinButton::shadow_type. removed · ac68581f
      Tim Janik authored
      Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkspinbutton.[hc]: added rc-style argument
              GtkSpinButton::shadow_type.
              removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
              and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
              rc-style settings.
      
              * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
      
              * gtk/gtkwidget.c: quark cleanups.
      
              * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
              scanner with appropriate configuration, renamed GtkRcStyleClass.clone
              to create_rc_style() (we don't do cloning in standard OO sense).
              added per rc style properties.
      
              * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
              property values and for caching those. some cleanups.
      
              * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
      
              * gtk/gtksettings.[hc]: new file for global rc-file properties
              (at least currently, should get extended to support X properties
              and other communication mechanisms).
      
              * gtk/gtkwidget.[hc]: added style property support:
              (gtk_widget_class_install_style_property_parser): install style
              property pspec with parser function for rc-file values other
              than LONG, DOUBLE or STRING.
              (gtk_widget_class_install_style_property): same as above without
              parser (parsers are going to be needed quite infrequently).
              (gtk_widget_style_get_property): retrive style property value.
              (gtk_widget_style_get_valist): same as above with varargs support,
              has NOCOPY semantics.
              (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
      ac68581f
  23. 15 Mar, 2001 1 commit
    • Havoc Pennington's avatar
      Delete. · 872efdd9
      Havoc Pennington authored
      2001-03-14  Havoc Pennington  <hp@redhat.com>
      
              * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
      
      	* gtk/gtk.h: remove gtkdata.h
      
      	* gtk/Makefile.am: remove gtkdata
      
      	* gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
      	not "disconnect" on the adjustments.
      
      	* gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
      	GtkData
      
      	* gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
      	not GtkData
      
      	* configure.in: handle case where X render exists, but Pango lacks
      	Xft support.
      
      2001-03-14  Havoc Pennington  <hp@redhat.com>
      
      	* Makefile.am (gdk-pixbuf-marshal.c): Use different temporary file
      	from gdk-pixbuf-marshal.h, fixes parallel makes.
      
      2001-03-14  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtk-docs.sgml: remove gtkdata, gtktreemodelsimple
      
      	* gtk/gtk.types: remove gtk_data_get_type
      872efdd9
  24. 21 Feb, 2001 1 commit
    • Alexander Larsson's avatar
      Added new menu separator item. The drawing and size handling is still done · e1e093fa
      Alexander Larsson authored
      2001-02-21  Alexander Larsson  <alexl@redhat.com>
      
              * gtk/gtkseparatormenuitem.[ch]:
      	Added new menu separator item. The drawing and size handling
      	is still done in GtkMenuItem, but the API is a bit more sane.
      
      	* gtk/Makefile.am:
      	Add gtkseparatormenuitem.[ch].
      
      	* gtk/gtk.h:
      	Add gtkseparatormenuitem.h.
      
      	* gtk/gtkentry.c:
      	* gtk/gtkmenufactory.c:
      	* gtk/gtktextview.c:
      	Use the new API for menu separators.
      
      	* demos/gtk-demo/menus.c (create_menu):
      	Add some GtkSeparatorMenuItem demo code.
      e1e093fa
  25. 17 Feb, 2001 1 commit
    • Jonathan Blandford's avatar
      removed gtk_*_store_get, and moved to GtkTreeModel. · b10825d5
      Jonathan Blandford authored
      Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
      	gtk_*_store_get, and moved to GtkTreeModel.
      
      	* gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
      
      	* gtk/Makefile.am: remove gtktreemodelmapping.[ch]
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
      	set the func.
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
      	freeze/thaw notify between setting all the properties for a cell.
      
      	* gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
      b10825d5
  26. 16 Feb, 2001 1 commit
    • Alexander Larsson's avatar
      New files. Implement GtkTreeModelMapping. · 29f16cc6
      Alexander Larsson authored
      2001-02-16  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/gtktreemodelmapping.[ch]:
      	New files. Implement GtkTreeModelMapping.
      
      	* gtk/Makefile.am:
      	Add gtktreemodelmapping.[ch].
      
      	* gtk/gtk.h:
      	Add gtktreemodelmapping.h
      
      	* gtk/treestoretest.c:
      	Test the GtkTreeModelMapping
      29f16cc6
  27. 13 Feb, 2001 1 commit
    • Havoc Pennington's avatar
      fix bug where it always set the foreground, even if we were only using a · 2097d764
      Havoc Pennington authored
      2001-02-12  Havoc Pennington  <hp@pobox.com>
      
      	* gdk/gdkpango.c (gdk_pango_get_gc): fix bug where
      	it always set the foreground, even if we were only using
      	a stipple.
      	(gdk_draw_layout_line_with_colors): new function, allow
      	override colors
      	(gdk_draw_layout_with_colors): new function, allow override
      	colors
      	(gdk_pango_layout_line_get_clip_region): function to get the clip
      	region for a logical text range
      	(gdk_pango_layout_get_clip_region): get the clip region for a
      	logical text range
      
      	* gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
      	(gdk_colormap_new): fix call to gdk_colormap_sync() so it has
      	the right number of arguments.
      
      	* gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
      	enhance the function to check that node data corresponds to a
      	view still belonging to the tree.
      
      	* gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the
      	GtkTreePath
      	(gtk_tree_view_inserted): ditto
      	(gtk_tree_view_child_toggled): ditto
      
      	* gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
      	simplify this code.
      
      	* gtk/gtkcellrenderertext.c (get_layout): fix leak of
      	a PangoAttrList
      
      	* demos/gtk-demo/main.c (load_file): Fix leak of a GString
      
      	* gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
      
      	* gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
      	size in the size request
      	(gtk_menu_bar_size_allocate): consider toggle size here
      
      	* gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
      	that displays a widget in the toggle slot
      
      	* gtk/testgtk.c: test GtkImageMenuItem
      
      	* gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
      
      	* gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
      	request and allocation
      
      	* gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
      
      	* gtk/gtkcheckmenuitem.c
      	(gtk_check_menu_item_toggle_size_request): ditto
      2097d764
  28. 04 Feb, 2001 2 commits
    • Tim Janik's avatar
      HELL! premature insanity, back out old rc-data changes. · 55fca1cf
      Tim Janik authored
      HELL!
      premature insanity, back out old rc-data changes.
      55fca1cf
    • Tim Janik's avatar
      removed gtk_signal_init() compat define. · 89a0a894
      Tim Janik authored
      Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/gtksignal.h: removed gtk_signal_init() compat define.
      
              * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
              GTypeDebugFlags debug_flags and pass it on to g_type_init ();
              deprecated this function.
      
              * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
              argument.
      
      Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
      
      Sun Feb  4 07:59:57 2001  Tim Janik  <timj@gtk.org>
      
              * gdk-pixbuf.h: DOH! don't include glib/gobject.h but glib-object.h,
              we finally need the gobject->gruntime rename.
      
              * *.c: scratched calls to g_type_init(), there's simply no point in
              doing that, use gtk_init().
      89a0a894
  29. 26 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      adapt to handle PangoColor · ef4356b5
      Havoc Pennington authored
      2001-01-26  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
      
      	* gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
      	not offset by TREE_VIEW_HEADER_HEIGHT
      	(gtk_tree_view_tree_to_widget_coords): fix to not offset by
      	TREE_VIEW_HEADER_HEIGHT
      
      	* configure.in (included_loaders): for me, --with-included-loaders
      	generates the error "the specified loader yes does not exist",
      	i.e. the arg defaults to "yes", so change test for value ""
      	to test for value "yes", and include all loaders in that case.
      
      	* gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
      
      	* gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
      	handle TREE_VIEW_VERTICAL_SEPARATOR
      	(gtk_tree_view_bin_expose): fix to consider the row offset as
      	pointing halfway into vertical separator.
      	(gtk_tree_view_draw_node_focus_rect): ditto
      
      	* gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
      	--gtk-debug=updates, which causes gdk_window_set_debug_updates
      	(TRUE) to be called.
      
      	* gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
      	debug mode where the invalid region is colored in on invalidate,
      	so you can see the flicker and know whether your redraw code is
      	doing a good job.
      
      	* gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in
      	tree window coordinates (clip rect is in tree window coords)
      
      	* gtk/Makefile.am: add gtktreednd.[hc]
      
      	* gtk/gtkliststore.c: implement gtktreednd interfaces.
      
      	* gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
      	drag-and-drop data operations on a model (so we can set up tree
      	drag-and-drop automatically)
      
      	* gtk/testgtk.c: Add a window to change sensitivity in the
      	GtkLabel test; add a way to change the entry frame in GtkEntry
      	test
      
      	* gtk/gtkentry.c (gtk_entry_set_has_frame):
      	(gtk_entry_get_has_frame): new functions to remove the frame
      	around an entry
      	(gtk_entry_size_request): shrink requisition if no frame
      	(gtk_entry_draw_focus): don't draw frame if no frame
      
      	* gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
      	checks inside a cell renderer
      	(gtk_default_draw_option): ditto for options
      
      	* gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
      	children from the alignment, not the button
      	(gtk_tree_view_column_init): ref/sink the column, to emulate
      	GObject refcounting.
      
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
      
      	* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
      	Use theme functions to draw the toggles
      
      	* gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
      
      	* gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
      	GdkPangoAttrEmbossed to use in rendering insensitive text
      
      	* gdk/gdkpango.c (gdk_draw_layout_line): render new properties
      
      	* gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
      	using new GDK features
      ef4356b5
  30. 04 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      Rename some stuff: · c020b3b4
      Havoc Pennington authored
      2001-01-04  Havoc Pennington  <hp@redhat.com>
      
              Rename some stuff:
      
      	s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
      
      	s/GtkModelSimple/GtkTreeModelSimple/g;
      	s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
      	s/gtk_model_simple/gtk_tree_model_simple/g;
      	s/gtkmodelsimple/gtktreemodelsimple/g;
      
      	s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
      
      	s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
      	s/column_set_col_type/column_set_sizing/g;
      
      	s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
      	s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
      
      	s/GtkCellRendererType/GtkCellRendererState/g;
      
      	* gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
      	(gtk_cell_renderer_toggle_class_init): change "state" property to
      	"active", to match GtkToggleButton
      	(gtk_cell_renderer_toggle_get_active): new function, bug
      	40269
      	(gtk_cell_renderer_toggle_set_active): new function
      	(gtk_cell_renderer_toggle_set_property): route changes to toggle
      	state through gtk_cell_renderer_set_active
      c020b3b4
  31. 12 Nov, 2000 1 commit
    • Owen Taylor's avatar
      Make parent_class static. · dfba2269
      Owen Taylor authored
      Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcellrenderertextpixbuf.c: Make parent_class
      	static.
      
      Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
      	gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c:
      	Add support for positioning the cursor within the preedit string.
      
      Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktextview.c: Check for bindings after passing
      	events to im context filter.
      
      Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktextlayout.c (add_preedit_attrs): Handle
      	empty attribute lists properly.
      
      Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/queryimmodules.c (main): Return non-zero exit
      	status if errors were encountered querying any
      	modules.
      
      Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
      	don't include gtkthemes.h.
      
      	* gtk/testgtk.c gtk/testtext.c: Set environment variables
      	to point
      
      	* gtk/Makefile.am: Add new .c and .h files, build
      	gtk-query-immodules and use it to create a gtk.immodules
      	file for use of test programs.
      
      	* gtk/gtkpreview.c: remove extra blank line.
      
      Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table):
      	Add the ability to add extra tables beyond the default
      	one, and also the ability to have compose sequences
      	that are prefixes of other compose sequences.
      
      	* gtk/gtkimcontextsimple.c: Export a preedit string which
      	consists of possible candidates for keystrokes that have
      	been entered but not yet committed.
      
      	* gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
      	gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
      
      	* gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems):
      	Add a function to add input-method switching menu items
      	to a menu.
      
      	* gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
      	when switching input methods.
      
      	* gtk/gtkimcontextsimple.[ch]: Change the format of
      	the compose table to allow compose tables of different
      	lengths / sequence.
      
      Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkimmodule.[ch]: Support routines for loading
      	GtkIMContext implementations dynamically at runtime.
      
      	* gtk/queryimmodules.c: Program to query the available
      	input modules and write the results into a file.
      
      	* gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
      	extra config options "im_module_file" (cache file for
      	input method modules), and "im_module_path" - path
      	to look for modules when generating cache file.
      
      	This doesn't scale.
      
      Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the
      	generic	code from gtkthemes into a new abstraction
      	GtkModule which has the logic for implementing
      	a loadable module which implements a number of
      	GObject types.
      
      Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkeditable.[ch]: Convert GtkEditable from
      	a class into an interface
      
      	* gtk/gtkoldeditable.[ch]: Move the old editable
      	implementation into here, so legacy widgets can
      	still rely on the implemenation. GtkOldEditable
      	exports GtkEditable. Make selection handling
      	code use new text conversion functions (and
      	handle UTF-8 as a side-effect). Use GtkClipboard
      	for CLIPBOARD.
      
      	* gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
      	Adopt to match above changes.
      
      	* gtk/gtkentry.[ch]: Implement GtkEditable directly,
      	avoid GtkOldEditable implementation. Restructure
              to reduce number of places that modify state directly.
      	Move to GtkBindingSet. Display the preedit string.
      	Queue recomputation of PangoLayout and scroll position
      	to improve effiency of doing complex changes naively.
      	Add a menu with cut/copy/paste and input method selection.
      
      Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
      	to set preedit string and attributes; display preedit string by
      	inserting string and attributes at cursor when creating the
      	GtkTextLineDisplay.
      
      	* gtk/gtktextlayout.c: Move all conversions between byte
      	positions in PangoLayout and GtkTextIter into new functions
      	line_display_iter_to_index/index_to_iter that properly
      	handle the preedit string.
      
      	* gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
      	it to return const char * (eventually will end up
      	as GCONST char *, most likely.)
      
      	* gtk/gtktextview.[ch]: Handle the preedit string, call
      	gtk_im_context_reset() as necessary, add a menu to switch
      	input methods.
      
      	* gtk/gtktextlayout.[ch]: Remove useless
      	gtk_text_layout_get_log_attrs() function.
      dfba2269
  32. 09 Nov, 2000 1 commit
    • Jonathan Blandford's avatar
      added more fields to allow more interesting iterators. Also, made the · c97d57eb
      Jonathan Blandford authored
      Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
      	allow more interesting iterators.  Also, made the lifecycle of
      	iterators more explicit.
      
      	* gtk/gtktreemodelsort.[ch]: New model for sorting.
      
      	* gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
      	types.
      c97d57eb
  33. 20 Oct, 2000 1 commit
    • Havoc Pennington's avatar
      create some stock buttons with the default accel group (create_image): · 1c9f0c0b
      Havoc Pennington authored
      2000-10-04  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/testgtk.c (create_buttons): create some stock buttons
      	with the default accel group
      	(create_image): test some new GtkImage features
      	(make_message_dialog): test GtkMessageDialog
      	(create_modal_window): fix someone's bizzarro indentation
      
              * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement
      	GTK_WIN_POS_CENTER_ON_PARENT.
      	Add "destroy with parent" setting, which means the window goes
      	away with its transient parent.
      	(gtk_window_get_default_accel_group): get the default accel group
      	for the window.
      	(gtk_window_set_destroy_with_parent): set/unset destroy with
      	parent flag
      	(gtk_window_read_rcfiles): invalidate icon set caches
      	after reloading rcfiles
      
      	* gtk/gtkenums.h (GtkWindowPosition): add
      	GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog
      	on its parent window when the dialog is mapped for the first time.
      
              * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add
      	a simple message dialog class
      
      	* gtk/gtkdialog.c (gtk_dialog_init): Connect delete event
      	handler to emit response signal, and maybe later it would
      	honor a hide_on_delete flag - though that isn't there yet.
      	Set border width on the vbox to 2, so we get some padding.
      	Use a button box for the action area.
      	(gtk_dialog_key_press): synthesize a delete event if Esc
      	is pressed and the GtkWidget key press handler didn't
      	handle the escape key.
      	(gtk_dialog_new_with_buttons): new function creates a dialog
      	with some default buttons in it.
      	(gtk_dialog_add_action_widget): add an activatable widget
      	as a button in the dialog - you can also add a non-activatable
      	widget by accessing the action area directly.
      	(gtk_dialog_add_button): add a simple button - stock ID or
      	label - to the action area
      	(gtk_dialog_response): emit response signal
      	(gtk_dialog_run): block waiting for the dialog, return
      	the response. Override normal delete_event behavior, so that
      	delete_event does nothing inside gtk_dialog_run().
      
      	* gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
      	emitted when an action widget is clicked or the dialog gets
      	delete_event
      
      	* gtk/gtk.h: add gtkmessagedialog.h
      
      	* gtk/Makefile.am: add gtkmessagedialog.[hc]
      
      2000-10-20  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtk-sections.txt: Add dialog docs
      1c9f0c0b
  34. 17 Oct, 2000 1 commit
    • 7's avatar
      Added user docs. · 10e9727a
      7 authored
      2000-10-17    <jrb@redhat.com>
      
      	* gtk/gtktreemodel.c: Added user docs.
      
      	* gtk/gtk.h: remove gtktreedatalist.h.
      10e9727a
  35. 06 Oct, 2000 1 commit
    • Jonathan Blandford's avatar
      Replaced with GTK_TREE_SELECTION_OLD to prevent conflict with · 6b6e6763
      Jonathan Blandford authored
      2000-10-05  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
      	GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
      	* gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
      	* gtk/gtktreeselection.[ch]: Replaced
      	"node_selected"/"node_unselected" signal with "selection_changed"
      	signal.
      6b6e6763
  36. 26 Sep, 2000 1 commit
    • Havoc Pennington's avatar
      Move more text widget headers into the private header list · e8597130
      Havoc Pennington authored
      2000-09-26  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/Makefile.am (gtk_private_h_sources): Move more text widget
      	headers	into the private header list
      
      	* Makefile.am (pkgconfig_DATA): install pkg-config files
      
      	* configure.in: add pkg-config files
      
      	* gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
      
      	* gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
      	outstanding icon caches on theme change.
      
      	* gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three
      	important types:
      
      	(GtkIconSource): Specification for creating a pixbuf
      	appropriate for a direction/state/size triplet from
      	a source pixbuf or filename
      
      	(GtkIconSet): List of GtkIconSource objects that are used to
      	create the "same" icon (e.g. an OK button icon), and cache for
      	rendered icons
      
      	(GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
      	up the icon set for a given stock ID.  GTK maintains a stack of
      	GtkIconFactory to search, and applications or libraries can add
      	additional icon factories on top of the stack
      
              * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse
      	the set of GtkIconSource specified for a given stock ID into
      	a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the
      	RcStyle, under the specified stock ID.
      
      	* gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
      	render_icon used to derive a GdkPixbuf from a GtkIconSource.
      	This allows people to theme how prelight, insensitive, etc. are
      	done.
      
      	(gtk_style_lookup_icon_set): Look up a stock ID in the list of
      	icon factories for a style, and return the resulting
      	icon set if any.
      
      	(gtk_style_render_icon): Render an icon using the render_icon
      	method in the GtkStyleClass.
      
      	* gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon):
      	Use the style for a given widget to look up a stock ID, get the
      	icon set, and render an icon using the render_icon method
      	of the style
      
      	* gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
      	(contains information about a stock item), the built-in stock item
      	IDs, and functions to add/lookup stock items.
      
      	* gtk/stock-icons/*: Stock icons that come with GTK
      
      	* gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
      	a button based on a GtkStockItem
      	(gtk_button_new_accel): Takes a uline string and accel group, and
      	installs the accelerator.
      
      	* gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
      	image-display widget.
      e8597130
  37. 14 Sep, 2000 1 commit
    • Owen Taylor's avatar
      Add gtkclipboard.[ch · 5fea6944
      Owen Taylor authored
      Thu Sep 14 12:43:30 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtk.h gtk/Makefile.am: Add gtkclipboard.[ch
      5fea6944