1. 19 Apr, 2002 5 commits
    • Kristian Rietveld's avatar
      add _gtk_tree_view_column_autosize · 3e0a1a51
      Kristian Rietveld authored
      Fri Apr 19 23:38:16 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeprivate.h: add _gtk_tree_view_column_autosize
      
              * gtk/gtktreeview.c: privately export _gtk_tree_view_column_autosize,
              and add a small note about that function,
              (gtk_tree_view_button_press): check for double click and
              "not having an autosize" column before autosizing the column,
      
              * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_min_width):
              call _gtk_tree_view_column_autosize to update autosized column width
              (gtk_tree_view_column_set_max_width): ditto
      3e0a1a51
    • Matthias Clasen's avatar
      Remove some files whose content is either obsolete or has been moved · 76145121
      Matthias Clasen authored
      	* TODO, TODO.xml, README.nanox, docs/Changes-1.2.txt,
      	docs/Changes-2.0.txt, docs/gtk-config.txt, docs/debugging.txt,
      	gdk/TODO: Remove some files whose content is either obsolete or
      	has been moved elsewhere.
      
      	* Makefile.am, gtk+.spec.in, docs/Makefile.am: Remove references
      	to these files.
      76145121
    • Kristian Rietveld's avatar
      cancel editing if tree_view->priv->edited_column != NULL (fixes #76066) · ae89375b
      Kristian Rietveld authored
      Fri Apr 19 21:31:04 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeview.c (gtk_tree_view_row_changed): cancel editing
              if tree_view->priv->edited_column != NULL (fixes #76066)
      ae89375b
    • Kristian Rietveld's avatar
      subtract TREE_VIEW_HEADER_HEIGHT from allocation->height to get the real · a1f3d61d
      Kristian Rietveld authored
      Fri Apr 19 21:06:39 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeview.c (gtk_tree_view_size_allocate): subtract
              TREE_VIEW_HEADER_HEIGHT from allocation->height to get the real
              size for the tree (fixes #72729),
              (gtk_tree_view_real_start_editing): correct cell_area->y for
              scrolling due to gtk_tree_view_real_set_cursor (fixes #75687)
      a1f3d61d
    • Kristian Rietveld's avatar
      rename last_single_clicked{,_2} to last_button_press{,_2}, as the latter · d3a12949
      Kristian Rietveld authored
      Fri Apr 19 16:30:09 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeprivate.h, gtk/gtktreeview.c: rename
              last_single_clicked{,_2} to last_button_press{,_2}, as the latter
              is a more sane name.
      
              * gtk/gtktreeview.c (gtk_tree_view_button_press): use ->priv->anchor
              instead of ->priv->cursor, check for the anchor at another place, as
              you can go in edit mode without having an anchor.
      d3a12949
  2. 18 Apr, 2002 2 commits
    • Matthias Clasen's avatar
      s/<!>/<!-- -->/g throughout the documentation to bring the produced · 1f75708d
      Matthias Clasen authored
      	* gtk/gtkitemfactory.c:
      	* gtk/gtkiconfactory.c:
      	* gtk/gtkwidget.c:
      	* gtk/gtkstyle.c:
      	* gtk/gtkrc.c:
      	* gtk/gtktreeviewcolumn.c:
      	* gtk/gtkdialog.c:
      	* gtk/gtktreemodel.c: s/<!>/<!-- -->/g throughout the
      	documentation to bring the produced Docbook closer to XML.
      
      	* gdk/tmpl/rgb.sgml:
      	* gdk/tmpl/general.sgml:
      	* gtk/tmpl/gtktogglebutton.sgml:
      	* gtk/tmpl/gtkaccellabel.sgml:
      	* gtk/tmpl/gtkradiobutton.sgml:
      	* gtk/tmpl/gtktreemodel.sgml:
      	* gtk/tmpl/gtkwidget.sgml:
      	* gtk/tmpl/gtkimage.sgml:
      	* gtk/tmpl/gtktooltips.sgml:
      	* gtk/tmpl/gtksignal.sgml:
      	* gtk/tmpl/gtkcombo.sgml:
      	* gtk/tmpl/gtkdnd.sgml:
      	* gtk/tmpl/gtksocket.sgml:
      	* gtk/tmpl/gtkdrawingarea.sgml:
      	* gtk/tmpl/gtkobject.sgml:
      	* gtk/tmpl/gtkpaned.sgml:
      	* gtk/tmpl/gtkmain.sgml: s/<!>/<!-- -->/g throughout the
      	documentation to bring the produced Docbook closer to XML.
      1f75708d
    • Tor Lillqvist's avatar
      gdk-pixbuf/Makefile.am (uninstall-libtool-import-lib) Fix typo, thanks to · 40d637ec
      Tor Lillqvist authored
      2002-04-18  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk-pixbuf/Makefile.am (uninstall-libtool-import-lib)
      	* gdk/Makefile.am (uninstall-libtool-import-lib): Fix typo,
      	thanks to David Sterba for noticing.
      
      	* gtk/gtkmain.h
      	* gtk/gtkmain.c (gtk_init_abi_check, gtk_init_check_abi_check): In
      	GTK+ 2.0 the GtkWindow struct actually is the same size in gcc on
      	Win32 whether compiled with -fnative-struct or not. Unfortunately
      	this wan't noticed until now. So, from now on, check some other
      	struct, too, for which the use of -fnative-struct still
      	matters. GtkBox is one such.
      40d637ec
  3. 17 Apr, 2002 2 commits
  4. 16 Apr, 2002 3 commits
    • Kristian Rietveld's avatar
      fix docs · 3140315f
      Kristian Rietveld authored
      Wed Apr 17 00:21:36 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreestore.c (gtk_tree_store_insert_before): fix docs
      3140315f
    • Kristian Rietveld's avatar
      check ->priv->cursor and ->priv->anchor rowrefs before removing · 8fbac80b
      Kristian Rietveld authored
      Tue Apr 16 17:28:21 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): check
              ->priv->cursor and ->priv->anchor rowrefs before removing
              node->children from the rbtree. Also check the
              ->priv->last_single_clicked and ->priv->last_single_clicked_2 rowrefs
              (I think I really need to rename those two someday).
      8fbac80b
    • Tim Janik's avatar
      don't install/change accelerators from locked accel groups. · b0d72c4d
      Tim Janik authored
      Tue Apr 16 07:53:49 2002  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmenu.c (gtk_menu_key_press): don't install/change accelerators
              from locked accel groups.
      
              * gtk/gtkwidget.c (_gtk_widget_get_accel_path): export whether the
              accel path is from a locked accel group.
      b0d72c4d
  5. 15 Apr, 2002 1 commit
    • Jonathan Blandford's avatar
      include internal children when doing focus. · 3e886418
      Jonathan Blandford authored
      Mon Apr 15 15:41:56 2002  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtkcontainer.c (gtk_container_focus): include internal
      	children when doing focus.
      	(gtk_container_get_all_children): new static function to include
      	internal children when making a list of them.
      3e886418
  6. 14 Apr, 2002 2 commits
    • Kristian Rietveld's avatar
      add _gtk_tree_view_column_get_editable_cell and · 54db0fc9
      Kristian Rietveld authored
      Sun Apr 14 16:56:59 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeprivate.h: add _gtk_tree_view_column_get_editable_cell and
              _gtk_tree_view_column_get_neighbor_sizes
      
              * gtk/gtktreeviewcolumn.c (struct _GtkTreeViewColumnCellInfo): add
              real_width field,
              (_gtk_tree_view_column_get_editable_cell): implement,
              (gtk_tree_view_column_cell_process_action): fill info->real_width
              (_gtk_tree_view_column_get_neighbor_sizes): implement
      
              * gtk/gtktreeview.c (gtk_tree_view_button_press): make the "editable
              widget" show up with the same size as the actual cell, so it doesnt
              cover the complete column if there are any other cells in that column.
      54db0fc9
    • Abigail Brady's avatar
      Fix typo in message. · 2b350816
      Abigail Brady authored
      2002-04-14  Abigail Brady  <morwen@fuzzle.org>
      
      	* gtk/gtkfilesel.c: Fix typo in message.
      
      	* po/en_GB.po: Update British translation.
      2b350816
  7. 13 Apr, 2002 2 commits
    • Havoc Pennington's avatar
      create the target pixbuf AFTER filling in width/height, so that passing in · 4bd76958
      Havoc Pennington authored
      2002-04-13  Havoc Pennington  <hp@pobox.com>
      
      	* gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): create
      	the target pixbuf AFTER filling in width/height, so that
      	passing in -1 for width/height will work.
      4bd76958
    • Kristian Rietveld's avatar
      Fixes #75510 · 2666ab46
      Kristian Rietveld authored
      Sat Apr 13 22:49:45 2002  Kristian Rietveld  <kris@gtk.org>
      
              Fixes #75510
      
              * gtk/gtktreeselection.c (gtk_tree_selection_get_selected): make this
              function work correctly and more sane
      
              * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): remove
              node->children from rbtree before emitting GtkTreeSelection::changed
      
      Sat Apr 13 17:15:12 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_init): dont set
              the mode to GTK_CELL_RENDERER_MODE_EDITABLE by default,
              (gtk_cell_renderer_text_class_init): for some reason our default for
              editable was TRUE, of course this is FALSE.
              (gtk_cell_renderer_text_set_property): update mode when editable
              has been changed.
      2666ab46
  8. 12 Apr, 2002 4 commits
  9. 11 Apr, 2002 1 commit
    • Owen Taylor's avatar
      Export private _gtk_menu_shell_activate() to encapsulate cut-and-paste · 03498ba2
      Owen Taylor authored
      Sat Apr  6 06:57:00 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmenushell.[ch] gtk/gtkmenuitem.c: Export
              private _gtk_menu_shell_activate() to encapsulate
              cut-and-paste code.
      
              * gtk/gtkmenubar.c: Select the first item on the menu bar
              for F10 rather than acting as if the user pressed <Alt>F
              to select the file manager.
      03498ba2
  10. 09 Apr, 2002 4 commits
    • Owen Taylor's avatar
      Fix problems with HandleBox and focusing - #78232 · c9d9db0f
      Owen Taylor authored
      Tue Apr  9 19:01:28 2002  Owen Taylor  <otaylor@redhat.com>
      
              Fix problems with HandleBox and focusing - #78232
      
      	* gtk/gtkwidget.c (gtk_widget_translate_coordinates): Handle
      	GtkHandleBox / GnomeDock style window heirarchy / widget
      	heirarchy disconnects. :-(.
      
      	* gtk/gtkcontainer.c: Handle failures from
      	gtk_widget_translate_coordinates (Focusing is not right, but at
      	least it doesn't go into infinite loops.)
      c9d9db0f
    • Owen Taylor's avatar
      Always set the ALLOC_NEEDED and REQUEST_NEEDED flags up the hierarchy, · eb721363
      Owen Taylor authored
      Tue Apr  9 18:34:58 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkcontainer.c (_gtk_container_queue_resize): Always
              set the ALLOC_NEEDED and REQUEST_NEEDED flags up the hierarchy,
              even if we aren't currently in a resize container... we need
              this to properly handle size changes to widgets that are
              being moved from one heirarchy to another. (#78226)
      eb721363
    • Kristian Rietveld's avatar
      Fixes #78110 · 64e33eb6
      Kristian Rietveld authored
      Tue Apr  9 21:41:24 2002  Kristian Rietveld  <kris@gtk.org>
      
              Fixes #78110
      
              * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
              add override_browse_mode argument and implement,
              (gtk_tree_selection_unselect_path): always unselect the path,
              (toplevel): update uses of _gtk_tree_selection_internal_select_node
      
              * gtk/gtktreeview.c: update uses of
              _gtk_tree_selection_internal_select_node
      
              * gtk/gtktreeprivate.h (_gtk_tree_selection_internal_select_node):
              update prototype
      
      Tue Apr  9 21:39:44 2002  Kristian Rietveld  <kris@gtk.org>
      
              Fixes #77862
      
              * gtk/gtktreeprivate.h: add _gtk_tree_view_column_has_editable_cell
      
              * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_has_editable_cell):
              new function
      
              * gtk/gtktreeview.c (gtk_tree_view_button_press): send cell event
              on first click when cell isn't editable
      
      Tue Apr  9 21:37:31 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreedatalist.c (_gtk_tree_data_list_check_type): add some
              types which were missing and useful to use (fixes #77870)
      64e33eb6
    • Anders Carlsson's avatar
      Initialize error to NULL. · 2e85b314
      Anders Carlsson authored
      002-04-09  Anders Carlsson  <andersca@gnu.org>
      
      	* gtk/gtkfilesel.c (open_new_dir): Initialize error to NULL.
      2e85b314
  11. 08 Apr, 2002 2 commits
    • Manish Singh's avatar
      really revert testgtk.c · 4862c90b
      Manish Singh authored
      2002-04-08  Manish Singh  <yosh@gimp.org>
      
              * tests/testgtk.c: really revert testgtk.c
      4862c90b
    • Kristian Rietveld's avatar
      check the return value of _gtk_tree_view_find_node and return if it's · 18dfabc1
      Kristian Rietveld authored
      Mon Apr  8 20:28:54 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeselection.c (gtk_tree_selection_select_path),
              (gtk_tree_selection_unselect_path),
              (gtk_tree_selection_path_is_selected): check the return value of
              _gtk_tree_view_find_node and return if it's TRUE. This makes those
              functions work somewhat saner on non-expanded trees.
      18dfabc1
  12. 05 Apr, 2002 3 commits
    • Kristian Rietveld's avatar
      free anchor row reference after unselecting the selection (fixes #76272) · 6d4655b0
      Kristian Rietveld authored
      Fri Apr  5 18:28:56 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): free
              anchor row reference after unselecting the selection (fixes #76272)
      
      Fri Apr  5 18:27:48 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): only return
              when we don't have to open all children (fixes #75736)
      
      Fri Apr  5 18:24:24 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear): unref
              cellrenderer after clearing the attributes of the renderer (fixes
              #75592)
      6d4655b0
    • Jonathan Blandford's avatar
      implement. (gtk_tree_view_move_cursor_up_down): check for focus · 8c114fa6
      Jonathan Blandford authored
      Fri Apr  5 05:55:14 2002  Jonathan Blandford  <jrb@gnome.org>
      
      	* gtk/gtktreeview.c (gtk_tree_view_grab_focus): implement.
      	  (gtk_tree_view_move_cursor_up_down): check for focus
      	  (gtk_tree_view_move_cursor_page_up_down): ditto
      	  (gtk_tree_view_move_cursor_left_right): ditto
      	  (gtk_tree_view_move_cursor_start_end): ditto
      	  (gtk_tree_view_real_select_all): ditto
      	  (gtk_tree_view_real_unselect_all): ditto
      	  (gtk_tree_view_real_select_cursor_row): ditto
      	  (gtk_tree_view_real_toggle_cursor_row): ditto
      	  (gtk_tree_view_real_expand_collapse_cursor_row): ditto
      	  (gtk_tree_view_real_select_cursor_parent): ditto
      	  (gtk_tree_view_real_start_interactive_search): ditto
      
      	* gtk/gtktreeviewcolumn.c: grab focus
      8c114fa6
    • Alexander Larsson's avatar
      Fix undefined variable typo. Patch from Simon Floery <simon.floery@gmx.at> · c744f44f
      Alexander Larsson authored
      2002-04-05  Alex Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkkeyboard-fb.c (write_string):
      	Fix undefined variable typo.
      	Patch from Simon Floery <simon.floery@gmx.at>
      c744f44f
  13. 04 Apr, 2002 4 commits
    • Tim Janik's avatar
      fix segfault upon NULL return from gdk_utf8_to_string_target(). · cca4abf4
      Tim Janik authored
      Fri Apr  5 01:06:15 2002  Tim Janik  <timj@gtk.org>
      
              * gdk/x11/gdkwindow-x11.c (set_text_property): fix segfault
              upon NULL return from gdk_utf8_to_string_target().
      
              * gdk/x11/gdkselection-x11.c (gdk_utf8_to_string_target): fix
              return value comment to mention NULL returns upon EMFILE.
      cca4abf4
    • Soeren Sandmann's avatar
      revert accidentally commited change to testgtk.c · e61fd79f
      Soeren Sandmann authored
      Thu Apr  4 22:35:42 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* tests/testgtk.c (menu_items): revert accidentally commited
      	change to testgtk.c
      e61fd79f
    • Soeren Sandmann's avatar
      Fix problem with menu titles being clipped (#75948) · 3c52eba0
      Soeren Sandmann authored
      Thu Apr  4 22:28:08 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem with menu
      	titles being clipped (#75948)
      3c52eba0
    • Tor Lillqvist's avatar
      Fix some bugs, and introduce a minor feature. · abda40ed
      Tor Lillqvist authored
      2002-04-04  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/gdkrgb.c: Fix some bugs, and introduce a minor feature.
      
      	(gdk_rgb_convert_4_pack): New function, for 16-color (4 bits per
      	pixel) static visuals (fixes #858).
      
      	(gdk_rgb_convert_gray4_pack, gdk_rgb_convert_gray4_d_pack): Fix
      	same bugs in both functions: Odd start coordinate (partial byte)
      	was not handled correctly. Also a partial final byte was not
      	handled correctly.
      
      	(gdk_rgb_do_colormaps): Use G_N_ELEMENTS.
      	(gdk_rgb_create_info): For pseudocolor visuals, use the 2x2x2
      	colorcube only for depths 3 and 4. For static color, use it for
      	depths 3..7 like before. (Depth 5..7 pseudocolor probably never
      	occurs on X11. It doesn't normally occur on Win32 either, but
      	there is experimental code in gdkvisual-win32.c to let the user
      	restrict the size of palette used.)
      	(gdk_rgb_init): Set gdk_rgb_verbose if the GDK_DEBUG_GDKRGB flag
      	is set.
      	(gdk_rgb_select_conv): Use gdk_rgb_convert_8 also for depths 5, 6
      	and 7 (see above). Use gdk_rgb_convert_4_pack for 4 bits per pixel
      	static color.
      abda40ed
  14. 02 Apr, 2002 2 commits
  15. 01 Apr, 2002 1 commit
    • Kristian Rietveld's avatar
      add check for y > tree_view->priv->height (fixes #76974) · 30896669
      Kristian Rietveld authored
      Mon Apr  1 22:20:24 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): add
              check for y > tree_view->priv->height (fixes #76974)
      
      Mon Apr  1 22:19:39 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): get
              the stamp changes right this time
      
      Mon Apr  1 22:13:24 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreemodel.c (gtk_tree_row_reference_free): only
              disconnect the ref callbacks when model == proxy (Thanks go to
              Manuel Clos Crespo for the remote debugging)
      30896669
  16. 30 Mar, 2002 2 commits