1. 25 Apr, 2002 4 commits
    • Kristian Rietveld's avatar
      Fixes #74206. · b4ddb130
      Kristian Rietveld authored
      Thu Apr 25 23:49:01 2002  Kristian Rietveld  <kris@gtk.org>
      
              Fixes #74206.
      
              * gtk/gtktreeprivate.h: add _gtk_tree_view_column_count_special_cells
      
              * gtk/gtktreeview.c (_gtk_tree_view_column_has_editable_cell),
              (_gtk_tree_view_column_get_editable_cell): remove a space which made
              the code look ugly
              (_gtk_tree_view_column_count_special_cells): new function,
              (gtk_tree_view_column_cell_process_action): if there's only one
              activatable cell, the whole column will activate that renderer.
      b4ddb130
    • Kristian Rietveld's avatar
      make the search dialog not scroll horizontally (prolly fixes #74806). · f5510b64
      Kristian Rietveld authored
      Thu Apr 25 23:36:55 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeview.c (gtk_tree_view_search_iter): make the search
              dialog not scroll horizontally (prolly fixes #74806).
      f5510b64
    • Matthias Clasen's avatar
      Avoid a possible division by zero. (#77820) · 82a4dddf
      Matthias Clasen authored
      	* gtk/gtkrange.c (gtk_range_calc_layout): Avoid a possible
      	division by zero.  (#77820)
      82a4dddf
    • Soeren Sandmann's avatar
      use the child's requisition.height, not allocation.height, as width of · c09a9a9f
      Soeren Sandmann authored
      Thu Apr 25 20:24:37 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): use the child's
      	requisition.height, not allocation.height, as width of submenu
      	indicator. (#75948)
      c09a9a9f
  2. 24 Apr, 2002 3 commits
  3. 23 Apr, 2002 2 commits
    • Matthias Clasen's avatar
      Improve docs. (#62359) · 7bb0ea62
      Matthias Clasen authored
      	* gtk/gtktextview.c (gtk_text_view_buffer_to_window_coords):
      	(gtk_text_view_window_to_buffer_coords): Improve docs.  (#62359)
      
      	* gdk-pixbuf/tmpl/gdk-pixbuf-loader.sgml: Updates.  (#79001)
      
      	* gtk/tmpl/gtksocket.sgml: Add link to XEmbed draft.  (#67818)
      
      	* gtk/tmpl/gtkdrawingarea.sgml: Fix a typo.
      
      	* gtk/text_widget.sgml: Complete the fix for #79080.
      7bb0ea62
    • Kristian Rietveld's avatar
      This commit adds a cell_background property for cell renderers. With this · cb3c5cc1
      Kristian Rietveld authored
      Tue Apr 23 18:35:34 2002  Kristian Rietveld  <kris@gtk.org>
      
              This commit adds a cell_background property for cell renderers. With
              this property you can make your TreeView look incredibly ugly.
      
              * gtk/gtkcellrenderer.c: add cell_background, cell_background_gdk and
              cell_background_set properties,
              (set_cell_bg_color): new function,
              (gtk_cell_renderer_get_property), (gtk_cell_renderer_set_property):
              support for new properties,
              (gtk_cell_renderer_render): render a background when set.
      
              * gtk/gtkcellrenderer.h: add cell_background_set and cell_background
              fields.
      
              * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
              when rendering, pass in just the background_area of the cell and not
              the background_area of the entire column.
      cb3c5cc1
  4. 22 Apr, 2002 3 commits
  5. 21 Apr, 2002 1 commit
    • Alexander Larsson's avatar
      Save x and y in window_private. · 398e8373
      Alexander Larsson authored
      2002-04-21  Alexander Larsson  <alla@lysator.liu.se>
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
      	Save x and y in window_private.
      
      	* gtk/gtkplug.c (_gtk_plug_add_to_socket):
      	Move plug window outside the visible area to avoid flashing until
      	the first size_allocate.
      398e8373
  6. 20 Apr, 2002 5 commits
  7. 19 Apr, 2002 6 commits
    • Kristian Rietveld's avatar
      add bug number · 24816820
      Kristian Rietveld authored
      24816820
    • 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
  8. 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
  9. 17 Apr, 2002 2 commits
  10. 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
  11. 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
  12. 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
  13. 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
  14. 12 Apr, 2002 4 commits