1. 23 Jun, 2001 1 commit
    • Owen Taylor's avatar
      Fixup some problems with text length handling in error cases. · b09d194d
      Owen Taylor authored
      Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* modules/input/gtkimcontextxim.c: Fixup some problems with
      	text length handling in error cases.
      
      	* gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
      	a bit to make test actually warn on attempt to allocation
      	a negative size. (#56101, Matthias Clasen)
      b09d194d
  2. 22 Jun, 2001 2 commits
    • Jonathan Blandford's avatar
      Fix bug noticed by Brian Cameron. (gtk_tree_view_real_expand_row): Fix bug · 7ab5f8c5
      Jonathan Blandford authored
      Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
      	noticed by Brian Cameron.
      	(gtk_tree_view_real_expand_row): Fix bug noticed by Brian
      	Cameron.
      7ab5f8c5
    • Hans Breuer's avatar
      updated externals · f0ee2996
      Hans Breuer authored
      2001-06-22  Hans Breuer  <hans@breuer.org>
      
      	* gdk/gdk.def : updated externals
      
      	* gdk/win32/gdkdrawable-win32.c : corrected some casts
      	in GDK_NOTEs
      
      	* gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
      	to translate coordinates to the internal > 16 bit system
      	Try to handle WM_WINDOWPOSCHANGED to get better performance for
      	when moving/resizing
      
      	* gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
      	and gdk_keymap_get_direction (). The latter is untested for
      	the RTL case
      
      	* gtk/gtk.def : updated externals
      
      	* gtk/gtkmain.c : gtk_get_default_language () should reurn the result
      	from pango_language_from_string (), not an already freed pointer
      
      	* gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be
      	binary (-kb) to be useable on windoze
      f0ee2996
  3. 21 Jun, 2001 3 commits
    • Alexander Larsson's avatar
      Update to new PangoLanguage changes. · c64a3e5b
      Alexander Larsson authored
      2001-06-21  Alexander Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
      	Update to new PangoLanguage changes.
      
      	* gtk/gtkwindow-decorate.c:
      	* gtk/gtkwindow.[ch]:
      	Added setting argument to gtk_window_set_has_frame ()
      c64a3e5b
    • Owen Taylor's avatar
      Handle the case without XKB properly. · d809ceee
      Owen Taylor authored
      Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
      	the case without XKB properly.
      
      	* gtk/gtkrc.c (gtk_rc_set_default_files): Remove
      	unused gtk_rc_auto_parse variable.
      
      	* gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
      	Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
      	longer needed with GdkPixbuf.
      
      	* gtk/gtkrc.c (_gtk_rc_init): Make private.
      d809ceee
    • Tim Janik's avatar
      added gtk_container_child_set_property() and · f1e23c40
      Tim Janik authored
      Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
              gtk_container_child_get_property().
      f1e23c40
  4. 20 Jun, 2001 3 commits
  5. 19 Jun, 2001 3 commits
    • Jonathan Blandford's avatar
      New functions to clear a model. · 8413ee73
      Jonathan Blandford authored
      Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtkliststore.c (gtk_list_store_clear):
      	* gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
      	clear a model.
      8413ee73
    • 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
    • Jonathan Blandford's avatar
      New function to test if a node is expanded. · 07ddd35c
      Jonathan Blandford authored
      Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
      	test if a node is expanded.
      07ddd35c
  6. 18 Jun, 2001 1 commit
  7. 15 Jun, 2001 3 commits
    • Jonathan Blandford's avatar
      Rename gtk_tree_sortable_sort_column_id_set_func. It's much shorter now. · 67f8b5bd
      Jonathan Blandford authored
      
      Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
      	gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
      	* gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
      	Now I can really reorder/sort all Store widgets.  treesorttest
      	seems to just work now.
      	* gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
      	testtreesort worked through a big coincidence all this time.
      	* gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
      	code.
      	* tests/testtreecolumns.c: Big 'ol warning at the top letting
      	people know that this code should never ever ever be copied.
      
      HA!
      
      While everyone else was busy flaming eash other over configuration
      engines, I secretly got sorting completely working with store widgets
      and GtkTreeView.  GtkTreeModelSort, here I come!!!!!
      67f8b5bd
    • Jonas Borgstrm's avatar
      Fixed a small typo, it should be GTK_WINDOW_GROUP_GET_CLASS and not · 6adcae81
      Jonas Borgstrm authored
      2001-06-15  Jonas Borgstrm  <jonas@codefactory.se>
      
      	* gtk/gtkwindow.h: Fixed a small typo, it should be
      	GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
      	on line 134.
      6adcae81
    • Havoc Pennington's avatar
      Docs fixups, and: · 85b23757
      Havoc Pennington authored
      2001-06-14  Havoc Pennington  <hp@redhat.com>
      
              Docs fixups, and:
      
      	* gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
      	GTK_DISABLE_DEPRECATED
      85b23757
  8. 14 Jun, 2001 5 commits
    • Jonathan Blandford's avatar
      Whoops. Forgot this a couple months ago. Now GtkTreeStore sort of sorts. · 426ac9c6
      Jonathan Blandford authored
      Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
      	this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
      	finish it off tonight, though it basically works now when it's a
      	list.  Also, I have a sinking feeling neither GtkTreeStore or
      	GtkListStore actually resort when adding a new item.  I'll look
      	into it.
      426ac9c6
    • Havoc Pennington's avatar
      fix bug identified by warnings I just added to gtktextbuffer · c6046481
      Havoc Pennington authored
      2001-06-14  Havoc Pennington  <hp@redhat.com>
      
      	* demos/gtk-demo/main.c (load_file): fix bug identified by
      	warnings I just added to gtktextbuffer
      c6046481
    • Havoc Pennington's avatar
      fix other typo · a0021967
      Havoc Pennington authored
      2001-06-14  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
      
      	* gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
      
      	* gtk/gtktextbtree.c: don't leak node data all over the place.
      
      	* demos/gtk-demo/main.c (main): create fontify tags for the right
      	buffer
      
      	* gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
      	to mention tags in the same table can't have the same name,
      	suggested by Skip Montanaro
      
      2001-06-11  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning
      	for trying to add two tags with same name to the tag table
      
      	* demos/gtk-demo/main.c (main): fix colors ;-)
      a0021967
    • Owen Taylor's avatar
      Add a GtkWindowGroup struct that allows grouping together multiple windows · cf2fab90
      Owen Taylor authored
      Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
      	that allows grouping together multiple windows so that grabs
      	within that set of windows only affect those windows.
      
      	* gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
      	signal for notification when a widget becomes shadowed
      	by a grab or is no longer shadowed by a grab.
      
      	* gtk/gtkwidget.c (gtk_widget_propagate_state)
      	  gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
      	insenstive widgets to maintain a grab.
      cf2fab90
    • Alexander Larsson's avatar
      Add some example config files that can be used with the URW fonts. · 7d1a049b
      Alexander Larsson authored
      2001-06-14  Alexander Larsson  <alexl@redhat.com>
      
              * docs/README.linux-fb:
      	Add some example config files that can be used with the URW fonts.
      
      	* gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
      	Set up the color ramps for DirectColor mode.
      7d1a049b
  9. 13 Jun, 2001 5 commits
  10. 12 Jun, 2001 2 commits
    • Alexander Larsson's avatar
      New functions. · a20b4599
      Alexander Larsson authored
      2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
      
      	* gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
      	gdk_keymap_get_direction): New functions.
      a20b4599
    • Jonathan Blandford's avatar
      further justify gtk_tree_model_get_flags by adding a second flag for atk. · 5c60d1cf
      Jonathan Blandford authored
      Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
      	gtk_tree_model_get_flags by adding a second flag for atk.
      
      	* gtk/gtktreemodel.c: make cursor behavior interact better with
      	mouse presses.
      5c60d1cf
  11. 11 Jun, 2001 1 commit
  12. 10 Jun, 2001 1 commit
  13. 09 Jun, 2001 1 commit
    • Havoc Pennington's avatar
      add read-only "scroll_offset" property for notification when the layout · 994a8daa
      Havoc Pennington authored
      2001-06-08  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkentry.c (gtk_entry_class_init): add read-only
      	"scroll_offset" property for notification when the layout offsets
      	may have changed
      	(gtk_entry_adjust_scroll): add notify for scroll_offset
      	(gtk_entry_layout_index_to_text_index): function to compensate for
      	preedit string when doing coordinate stuff on the entry's layout
      	(gtk_entry_text_index_to_layout_index): inverse function
      	(gtk_entry_get_layout_offsets): hook to get current position of
      	the layout
      	(gtk_entry_get_layout): hook to get the layout itself.
      
      	* gtk/gtklabel.c (gtk_label_get_layout): new function
      994a8daa
  14. 08 Jun, 2001 9 commits
    • Jonathan Blandford's avatar
      New keybinding. (gtk_tree_view_focus): Fix merge conflict. · a055d062
      Jonathan Blandford authored
      Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
      	keybinding.
      	(gtk_tree_view_focus): Fix merge conflict.
      a055d062
    • Jonathan Blandford's avatar
      new function to clean up cursor handling. · f92ccfc0
      Jonathan Blandford authored
      Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
      	clean up cursor handling.
      
      	Pretty much nailed single selection motion, and multi-selection
      	focus minus the fact that the anchor isn't quite right.
      f92ccfc0
    • Havoc Pennington's avatar
      added this function · 7009511a
      Havoc Pennington authored
      2001-06-08  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
      	function
      
      	* gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
      	this function
      7009511a
    • Alexander Larsson's avatar
      Added compat macros for all old GTK_TYPE_GDK_xxx types. Fixes bug #52892 · 34848237
      Alexander Larsson authored
      2001-06-08  Alex Larsson  <alexl@redhat.com>
      
      	* gtk/gtkcompat.h.in:
      	Added compat macros for all old GTK_TYPE_GDK_xxx types.
      	Fixes bug #52892
      34848237
    • Havoc Pennington's avatar
      had GtkContainerClass as parent still · c9651bfd
      Havoc Pennington authored
      2001-06-08  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
      	parent still
      c9651bfd
    • Havoc Pennington's avatar
      geez, don't call g_list funcs on GSList · 74e7da21
      Havoc Pennington authored
      2001-06-08  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
      	don't call g_list funcs on GSList
      
      	* gtk/gtkwidget.c (gtk_widget_child_focus): replaces
      	gtk_container_focus(), since some widgets have focusable locations
      	which are not other widgets. These widgets should not have to be
      	containers just to manage the focus. For example, GtkHSV is
      	currently a container for no good reason. Also, this cleans
      	up the "if (is_container && is_sensitive && is_drawable)
      	container_focus ()" mess in widget implementations.
      
      	* gtk/gtkcontainer.c (gtk_container_focus): deprecate this
      	function, and have it just call gtk_widget_child_focus().
      
      	* gtk/gtkhsv.c: derive from widget not container
      
      	Throughout: fix to reflect GtkContainer::focus change
      74e7da21
    • Jonathan Blandford's avatar
      warn if row/cols are out of range. Fix bug #55921 · 72ef055b
      Jonathan Blandford authored
      Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
      	range.  Fix bug #55921
      
      	* gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
      	(#55920).
      
      Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
      	range.  Fix bug #55921
      
      	* gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
      	(#55920).
      72ef055b
    • Owen Taylor's avatar
      Add a direction-changed signal, and gdk_keymap_get_current_direction(). · da562f4d
      Owen Taylor authored
      Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkkeys.[ch]: Add a direction-changed signal,
      	and gdk_keymap_get_current_direction().
      
      	* gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
      	  gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
      	the current locked group, use it to set the keymap
      	direction.
      
      	* gtk/gtksettings.c: Add a new gtk-split-cursor setting
      	to determine whether we draw a split cursor or use
      	a jumping cursor based on the current direction.
      
      	* gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
      	Obey the split cursor setting.
      
      Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkimmulticontext.c (activate_cb): Only activate
      	when toggling on, not when toggling off... (#55906)
      
      Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_widget_set_double_buffered):
      	s/gdk_window_begin_paint/gdk_window_begin_paint_region/
      	in docs. (#55812, Vitaly Tishkov)
      da562f4d
    • Anders Carlsson's avatar
      Changed signal name from selection_changed to changed in signal connection · 11699349
      Anders Carlsson authored
      2001-06-08  Anders Carlsson  <andersca@codefactory.se>
      
      	* demos/gtk-demo/main.c (create_tree): Changed signal name from
      	selection_changed to changed in signal connection to GtkTreeSelection,
      	also used g_signal_connectc since GtkTreeSelection is now a GObject.
      11699349