1. 25 Sep, 2001 8 commits
    • Havoc Pennington's avatar
      use gtk_text_iter_can_insert · 1a26412d
      Havoc Pennington authored
      2001-09-25  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextview.c (gtk_text_view_key_press_event): use
      	gtk_text_iter_can_insert
      
      	* gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
      
      	* gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
      	 (gtk_text_iter_can_insert): new function to fix #60282, should
      	also fix msw's "can paste into empty buffer" bug.
      
      	* gtk/gtktexttag.c (gtk_text_tag_event): change type check for
      	"event object,"  #59091
      
      	* gtk/gtktextbtree.c: indentation fixes
      
      	* gtk/gtktextiter.c (find_by_log_attrs): fixes
      1a26412d
    • Owen Taylor's avatar
      ue Sep 25 12:41:17 2001 Owen Taylor <otaylor@redhat.com> · 0c3be554
      Owen Taylor authored
      	* configure.in: Version 1.3.9, interface age 0, binary age 0.
      
      	* configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
      
      	* NEWS: Updates.
      
      Mon Sep 24 11:59:09 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
      	function for drawing cursors between gtkentry/gtklabel/gtktextview.
      	Should this be public? It has a bit of an odd interface, but
      	custom editing widgets probably should be using it.
      	Function will draw with wider width for taller cursors, and
      	draws a little indicator arrow to indicate directoin for split
      	cursors.
      
      	* gtk/gtktextview.c: Add a "cursor_color" property.
      
      	* gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
      	gtk_text_layout_draw().
      
      	* gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
      	_gtk_draw_insertion_cursor().
      
      Tue Sep 25 11:22:23 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
      	the behavior where you could turn family_set (etc) back on
      	and get back the values you had before.
      
      	* demos/gtk-demo/stock_browser.c (id_to_macro): Use
      	g_string_ascii_up() rather than looping through the
      	string ourself.
      0c3be554
    • Jonathan Blandford's avatar
      Removed (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, · efae27a3
      Jonathan Blandford authored
      Tue Sep 25 15:32:44 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeviewcolumn.c
      	(gtk_tree_view_column_set_cell_renderer): Removed
      	(gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0);  Fixes 61012.
      
      	* gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
      	Patch from Detlef Reichl
      efae27a3
    • Havoc Pennington's avatar
      Add tests for line separators, addresses bug #57428 · 5c15d1df
      Havoc Pennington authored
      2001-09-25  Havoc Pennington  <hp@redhat.com>
      
      	* tests/testtextbuffer.c (line_separator_tests): Add tests for
      	line separators, addresses bug #57428
      5c15d1df
    • Jonathan Blandford's avatar
      Make a GtkCellEditable (get_widget_window_size): Change to let it honor · 92841cb9
      Jonathan Blandford authored
      Tue Sep 25 12:34:42 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtkentry.c: Make a GtkCellEditable
      	(get_widget_window_size): Change to let it honor size_allocate
      	when a CellEditable.
      
      	* gtk/gtktreeview.c: M-x clean-line-ends.  Lots of focus and
      	editable changes.
      	(gtk_tree_view_set_cursor): Now you can set the cursor
      	horizontally, as well as start editing.
      
      	* gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
      	code to look more like the other check buttons.
      
      	* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
      	Change the way we calculate cell size.
      
      	* gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
      
      	* demos/gtk-demo/sizegroup.c: Add mnemonics.
      
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
      	Fix logic.
      
      	* gtk/gtkcellrenderertext.c: Change to be editable.
      
      	* gtk/gtkcellrenderertoggle.c: Change to be activatable.
      
      	* test/testtreesort.c: Fix misspelling
      
      	* test/testreecolumns.c: Add mnemonics.
      
      	* test/testreeedit.c: New test program.
      92841cb9
    • Stanislav Visnovsky's avatar
      More updates. · 8a2d408d
      Stanislav Visnovsky authored
      2001-09-25  Stanislav Visnovsky  <visnovsky@nenya.ms.mff.cuni.cz>
      
      	* sk.po: More updates.
      8a2d408d
    • Havoc Pennington's avatar
      Put notes in gtk_window_set_has_frame(), etc. docs about how these are not · b3b97e8b
      Havoc Pennington authored
      2001-09-25  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
      	etc. docs about how these are not going to do what you want for
      	the X/win32 ports. Futile attempt to avoid a FAQ...
      b3b97e8b
    • James Henstridge's avatar
      add marshal function types. · 80e87c94
      James Henstridge authored
      2001-09-24  James Henstridge  <james@daa.com.au>
      
      	* gtk/gtkmarshal.list (VOID): add marshal function types.
      
      	* gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
      	GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
      	GTK_TYPE_POINTER.
      	(gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
      	with no-op copy/free functions.
      
      	* gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
      	GtkCTreeNode get_type function.
      80e87c94
  2. 24 Sep, 2001 4 commits
    • Havoc Pennington's avatar
      Get rid of the newline-that-could-not-be-deleted; buffers may now be · 1e3b62fd
      Havoc Pennington authored
      2001-09-24  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
      	gtktextlayout.c:
      	Get rid of the newline-that-could-not-be-deleted; buffers may
      	now be zero-length. Much easier to fix than expected, once
      	I figured out the right way to do it. However, there are
      	various subtle bugs introduced by this that will have to get
      	sorted out. Please use bugzilla.
      1e3b62fd
    • Owen Taylor's avatar
      Don't wait for a response back from the window manager if our size hasn't · 7837ddcd
      Owen Taylor authored
      Mon Sep 24 15:09:08 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
      	response back from the window manager if our size hasn't changed
      	since we won't get a response back from the window manager;
      	there was code in there to do this, but it was in the wrong
      	place so if the hints change and the size didn't we'd expect
      	a response.
      
      	Also, optimize the position-only-changed case by running
      	the resize queue immediately, and clean up some comments
      	for the changes.
      7837ddcd
    • Owen Taylor's avatar
      Add a compat macro that got lost. · 540f15dc
      Owen Taylor authored
      Mon Sep 24 12:48:25 2001  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtknotebook.h: Add a compat macro that got lost.
      
              * gtk/gtktreestore.c: Doc fixes.
      
              * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
              leak for windows that receive events after being destroyed.
              (#60863, Joshua N. Pritikin)
      
              * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
              rather than gtk_container_queue_resize().
      
              * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
              gtk_container_queue_resize, gtk_container_queue_resize_widgets,
              gtk_container_child_composite_name. (#60217.)
      540f15dc
    • Owen Taylor's avatar
      Updates for removed/renamed functions. · 1048e513
      Owen Taylor authored
      Mon Sep 24 12:43:45 2001  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtk-sections.txt: Updates for removed/renamed functions.
      1048e513
  3. 23 Sep, 2001 1 commit
  4. 22 Sep, 2001 4 commits
    • Hans Breuer's avatar
      fix compat macros for gtk_menu_<prepend|insert> · b0c7f0ff
      Hans Breuer authored
      2001-09-22  Hans Breuer  <hans@breuer.org>
      
      	* gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
      b0c7f0ff
    • Kristian Rietveld's avatar
      weight value should be an int · be317eb2
      Kristian Rietveld authored
      Sat Sep 22 16:50:34 2001  Kristian Rietveld  <kristian@planet.nl>
      
              * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
              weight value should be an int
      
      Sat Sep 22 15:17:41 2001  Kristian Rietveld  <kristian@planet.nl>
      
              * gtk/gtkmenu.c (gtk_menu_select_item): move most code
              to gtk_menu_scroll_item_visible(). Only call
              gtk_menu_scroll_item_visible() if the menu widget has been
              realized. Fixes bug #55310.
      be317eb2
    • Stanislav Visnovsky's avatar
      Updated Slovak translation. · b03796ed
      Stanislav Visnovsky authored
      2001-09-22  Stanislav Visnovsky  <visnovsky@nenya.ms.mff.cuni.cz>
      
      	* sk.po: Updated Slovak translation.
      b03796ed
    • Havoc Pennington's avatar
      don't pass key press to IM context if cursor isn't in an editable · bb209e1e
      Havoc Pennington authored
      2001-09-21  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
      	key press to IM context if cursor isn't in an editable location;
      	bug #58425, patch from Hidetoshi Tajima
      bb209e1e
  5. 21 Sep, 2001 9 commits
    • Havoc Pennington's avatar
      Bug #60862 · b7eec02f
      Havoc Pennington authored
      2001-09-21  Havoc Pennington  <hp@redhat.com>
      
              Bug #60862
      
      	* gtk/gtktextbtree.c (gtk_text_btree_node_destroy):
      	(_gtk_text_btree_unref): fix up mark memory management
      
      	* gtk/gtktextmark.c (mark_segment_delete_func): ditto
      b7eec02f
    • Havoc Pennington's avatar
      don't try to handle alignment here, because it's done by PangoLayout after · 615b641a
      Havoc Pennington authored
      2001-09-20  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
      	try to handle alignment here, because it's done by PangoLayout
      	after we set the layout width. Fix from Dov.
      615b641a
    • Hans Breuer's avatar
      GtkRcStyle::parse has a GtkSettings parameter now. Pass it through · ed7aefc3
      Hans Breuer authored
      2001-09-21  Hans Breuer  <hans@breuer.org>
      
      	* src/pixbuf-rc-style-c :  GtkRcStyle::parse has a GtkSettings
      	parameter now. Pass it through theme_parse_file () to use it
      	gtk_rc_find_pixmap_in_path ()
      
      	* src/pixbuf-draw.c : the font field from GtkStyle is private
      	now, use accessor gtk_style_get_font ()
      
      	* makefile.msc : compile on win32, use it if you have a _real_
      	fast computer or want to see gtk in slow motion :-)
      ed7aefc3
    • Matthias Clasen's avatar
      io-xpm.c (xpm_extract_color): Rewritten to handle · f3a65f61
      Matthias Clasen authored
      xpm colormap entries more thoroughly. (#59939)
      f3a65f61
    • Hans Breuer's avatar
      updated externals · 293d7877
      Hans Breuer authored
      2001-09-21  Hans Breuer  <hans@breuer.org>
      
      	* gdk/gdk.def :
      	* gtk/gtk.def : updated externals
      
      	* gtk/gtkmain.h : define get_gtk_win32_directoty ()
      	* gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
      	Also handle that Win32 pathes cann't be hard-coded
      
      	* gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
      	module, themes etc directory calculations
      
      	* gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
      	>16 bit right. The size limit within Win9x appears _not_ to be 32767
      	but slightly smaller ...
      
      	* gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid
      	>16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
      
      	* gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
      
      	* gdk/win32/gdkevents-win32.c : some tweaking to get better expose
      	handling. I'm not sure if it is better now, but at least not worse
      
      	* gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
      
      	* gdk/win32/gdkwin32.h : reflect recent API restrictions
      293d7877
    • Hans Breuer's avatar
      updated externals · 35953cae
      Hans Breuer authored
      2001-09-21  Hans Breuer  <hans@breuer.org>
      
      	* gdk-pixbuf.def : updated externals
      
      	* makefile.msc : generate gdk-pixbuf-enum-types.[hc]
      35953cae
    • Matt Wilson's avatar
      set radio_menu_item->group to NULL after removing it from the list, as it · 65c0e1fe
      Matt Wilson authored
      2001-09-21  Matt Wilson  <msw@redhat.com>
      
      	* gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
      	radio_menu_item->group to NULL after removing it from the list, as
      	it is no longer in the group. (#60869)
      
      	* gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
      65c0e1fe
    • Havoc Pennington's avatar
      add variables and checks for specific versions of dependencies. Previously · 85b43351
      Havoc Pennington authored
      2001-09-20  Havoc Pennington  <hp@pobox.com>
      
      	* configure.in (PANGO_REQUIRED_VERSION)
      	(ATK_REQUIRED_VERSION): add variables and checks for specific
      	versions of dependencies. Previously we didn't verify the
      	Pango or ATk versions.
      
      2001-09-09  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/gtktextiter.c: fool with indentation
      	(gtk_text_iter_in_range): add g_return_if_fail
      85b43351
    • Joshua N Pritikin's avatar
      Fix ref count on new tag to be 1. Update doc. (#60836) · bd30ca18
      Joshua N Pritikin authored
      	* gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
      	ref count on new tag to be 1.  Update doc.  (#60836)
      bd30ca18
  6. 20 Sep, 2001 11 commits
    • Owen Taylor's avatar
      On OSF, apparently fseek() works in some on-demand way, so the fseek · 405c3b09
      Owen Taylor authored
      Thu Sep 20 17:22:48 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* io-tiff.c (gdk_pixbuf__tiff_image_load): On OSF, apparently fseek()
      	works in some on-demand way, so the fseek gdk_pixbuf_new_from_file() doesn't
      	work here since we are using the raw file descriptor. So, we call lseek()
      	on the fileno(f) before using it. (#60840).
      405c3b09
    • Owen Taylor's avatar
      Remove unnecessary call to gdk_image_new_bitmap(). · 0989d8ed
      Owen Taylor authored
      Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
      	call to gdk_image_new_bitmap().
      0989d8ed
    • Owen Taylor's avatar
      Use the current day, as well as the current month and year. · a1f5f7ee
      Owen Taylor authored
      Thu Sep 20 15:31:35 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcalendar.c (gtk_calendar_init): Use the current
      	day, as well as the current month and year.
      a1f5f7ee
    • Owen Taylor's avatar
      Automatically set set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554) · ea77d8d7
      Owen Taylor authored
      Thu Sep 20 15:10:30 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkdialog.c (gtk_dialog_init): Automatically set
      	set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
      ea77d8d7
    • Kristian Rietveld's avatar
      a35654e9
    • Kristian Rietveld's avatar
      get rid of it, · d6d27da1
      Kristian Rietveld authored
      Thu Sep 20 18:00:56 2001  Kristian Rietveld  <kristian@planet.nl>
      
              * tests/testgtk.c (struct OptionMenuItem): get rid of it,
      
              (build_option_menu): add func argument, connect ::changed
              signal to option menu instead of connecting the ::activate
              signal to the menu items,
      
              (toplevel): get rid of RADIOMENUTOGGLED macro,
      
              (list_toggle_sel_mode), (clist_toggle_sel_mode),
              (ctree_toggle_line_style), (ctree_toggle_expander_style),
              (ctree_toggle_justify), (ctree_toggle_sel_mode),
              (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
              use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
      
              (notebook_type_changed): merged standard_notebook(),
              notabs_notebook(), scrollable_notebook() and borderless_notebook()
              into notebook_type_changed()
      
              (create_list), (create_ctree), (create_notebook),
              (create_progress_bar): changed OptionMenuItem arrays into
              gchar * arrays. Removed "Extended" item where used.
      
              Fixes bug #59885
      d6d27da1
    • Sven Neumann's avatar
      configure.in gdk/Makefile.am gtk/Makefile.am gtk/gtkselection.c · b728e2ea
      Sven Neumann authored
      2001-09-20  Sven Neumann  <sven@gimp.org>
      
      	* configure.in
      	* gdk/Makefile.am
      	* gtk/Makefile.am
      	* gtk/gtkselection.c
      	* gtk/gtktreeview.c
      	* gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
      b728e2ea
    • James Henstridge's avatar
      same change as in pango, so that flags types are registered as flags · 6adbb34d
      James Henstridge authored
      2001-09-20  James Henstridge  <james@daa.com.au>
      
      	* Makefile.am (gdk-pixbuf-enum-types.c): same change as in pango,
      	so that flags types are registered as flags rather than enums (not
      	that there are any flags here at the moment).
      6adbb34d
    • Owen Taylor's avatar
      Add a missing pango_layout_iter_free (). · 52dd93c4
      Owen Taylor authored
      Thu Sep 20 11:19:42 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
      	a missing pango_layout_iter_free ().
      52dd93c4
    • Owen Taylor's avatar
      Small warning cleanups. · 483fca5e
      Owen Taylor authored
      Thu Sep 20 11:03:51 2001  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
              gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
      
              * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
              the function definition so we don't accidentally rely on
              the compat #define from gtk_radio_menu_item_group.
              (#60782, Jeff Franks)
      483fca5e
    • Kristian Rietveld's avatar
      returned incorrect values for top, right and bottom due to cut-and-paste · 1e99d62d
      Kristian Rietveld authored
      Thu Sep 20 16:51:02 2001  Kristian Rietveld  <kristian@planet.nl>
      
              * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
              incorrect values for top, right and bottom due to cut-and-paste
              bug. Pointed out by Vitaly Tishkov, fixes bug #59008
      1e99d62d
  7. 19 Sep, 2001 3 commits
    • Owen Taylor's avatar
      Set _NET_WM_PID and WM_CLIENT_MACHINE properties on each window, not just · d9b794af
      Owen Taylor authored
      Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
      	_NET_WM_PID and WM_CLIENT_MACHINE properties on each
      	window, not just on the client leader. (#58463)
      d9b794af
    • Owen Taylor's avatar
      Add missing cast. · 1513d3aa
      Owen Taylor authored
      Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
      
      	* gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
      	non-public _gtk_menu_item_set_placement.
      
      	* gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
      1513d3aa
    • Owen Taylor's avatar
      Fix propagated (flags && GDK_COLOR_WRITEABLE) typo. (#59723) · 5a2659c2
      Owen Taylor authored
      Wed Sep 19 16:16:38 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c
                gdk/linux-fb/gdkcolor-fb.c:
              Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
      	(#59723)
      5a2659c2