1. 19 Jul, 2003 1 commit
    • Soeren Sandmann's avatar
      only redraw tabs on focus in/out. · 52de946c
      Soeren Sandmann authored
      Sat Jul 19 12:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtknotebook.c (gtk_notebook_focus_in|out): only redraw tabs
      	on focus in/out.
      52de946c
  2. 18 Jul, 2003 9 commits
    • Matthias Clasen's avatar
      Add authentication icon. · a314e4c2
      Matthias Clasen authored
      a314e4c2
    • Matthias Clasen's avatar
      New function. (#64562) · 1fd4cd2f
      Matthias Clasen authored
      2003-07-19  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkbbox.h:
      	* gtk/gtkbbox.c (gtk_button_box_get_child_secondary): New function. (#64562)
      1fd4cd2f
    • Soeren Sandmann's avatar
      Fix C99 declaration · 0c8511d2
      Soeren Sandmann authored
      Sat Jul 19 00:18:40 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkwindow.c (gtk_window_set_default_icon): Fix C99
      	declaration
      
      	* gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): new function
      	(gtk_widget_real_focus_{in|out}_event): queue shallow draws
      	instead of full draws.
      0c8511d2
    • Matthias Clasen's avatar
      Add properties decorated and gravity. (#80234) · 7fa902f6
      Matthias Clasen authored
      2003-07-18  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkwindow.c: Add properties decorated and gravity.  (#80234)
      7fa902f6
    • Matthias Clasen's avatar
      Add a new keybinding signal, move_viewport. (gtk_text_view_move_viewport): · eaae0a6b
      Matthias Clasen authored
      2003-07-18  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktextview.c (gtk_text_view_class_init): Add a new keybinding signal, move_viewport.
      	(gtk_text_view_move_viewport): New function which implements the move_viewport functionality.
      	(gtk_text_view_move_cursor_internal): If the cursor is not visible, move the viewport. (#78669)
      
      	* gtk/gtkenums.h (GtkScrollStep): New enumeration, used for move_viewport argument.
      
      	* gtk/gtkstatusbar.c (gtk_statusbar_class_init): Add a has_resize_grip property.  (#111779)
      
      	* gtk/gtkwindow.h:
      	* gtk/gtkwindow.c (gtk_window_set_default_icon): New method.  (#95816)
      
      	* gtk/gtkmessagedialog.h:
      	* gtk/gtkmessagedialog.c (gtk_message_dialog_add_buttons): New method.
      	(#65501, Sebastian Rittau)
      eaae0a6b
    • Soeren Sandmann's avatar
      use gtk_widget_queue_resize_noredraw(). · 1a7bac8d
      Soeren Sandmann authored
      Fri Jul 18 20:06:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtktextview.c (changed_handler): use
      	gtk_widget_queue_resize_noredraw().
      1a7bac8d
    • Jody Goldberg's avatar
      fix cut-n-paste-o · b42280f7
      Jody Goldberg authored
      
      2003-07-16  Jody Goldberg <jody@gnome.org>
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_focus) : fix cut-n-paste-o
      b42280f7
    • Soeren Sandmann's avatar
      Add this API. · 5171637f
      Soeren Sandmann authored
      Fri Jul 18 19:55:50 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkwidget.c (gtk_widget_queue_resize_no_redraw): Add this
      	API.
      5171637f
    • Soeren Sandmann's avatar
      By popular request give toolbuttons a border. · 80560b9d
      Soeren Sandmann authored
      Fri Jul 18 18:43:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	By popular request give toolbuttons a border.
      
      	* gtk/gtktoolitem.c
      	(gtk_tool_item_size_allocate):
      	(gtk_tool_item_size_request): don't request and allocate a border
      	around the child
      
      	* gtk/gtktoolbutton.c
      	(gtk_tool_button_size_allocate):
      	(gtk_tool_button_size_request): remove these functions
      
      	* gtk/gtktoolbar.c
      	(gtk_toolbar_size_request):
      	(gtk_toolbar_size_allocate): request and allocate a border if we
      	have a shadow.
      80560b9d
  3. 17 Jul, 2003 4 commits
    • Kristian Rietveld's avatar
      Merged from stable. · e733ed3e
      Kristian Rietveld authored
      Thu Jul 17 19:24:51 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Merged from stable.
      
      	Fixes issues pointed out by Morten Welinder in #115140.
      
      	* gtk/gtktreeview.c (gtk_tree_view_size_request): fix comment,
      	(do_validate_rows): update validated_area with a logic OR instead
      	of a bitwise OR,
      	(validate_rows_handler): make the if statement match the one in
      	validate_rows(), so we don't leak the timeout.
      e733ed3e
    • Kristian Rietveld's avatar
      Merged from stable. · fd9992d8
      Kristian Rietveld authored
      Thu Jul 17 19:12:02 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Merged from stable.
      
      	* gtk/gtktreeview.c (gtk_tree_view_remove_widget): the treeview
      	should only grab focus back if the "cell_editable" widget still
      	has focus. (Fixes #110104, testcase provided by Marco Pesenti
      	Gritti).
      fd9992d8
    • Kristian Rietveld's avatar
      Merged from stable. · c400b654
      Kristian Rietveld authored
      Thu Jul 17 19:06:34 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Merged from stable.
      
      	* gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
      	Don't set attr.event_mask twice, those things were meant to be
      	ORred. (#115139, pointed out by Morten Welinder).
      c400b654
    • Kristian Rietveld's avatar
      Merged from stable. · bdce65ea
      Kristian Rietveld authored
      Thu Jul 17 16:11:21 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Merged from stable.
      
      	* gtk/gtktreeview.c (gtk_tree_view_rows_reordered): stop editing
      	if needed. (Fixes #115869, reported by Michael Natterer).
      bdce65ea
  4. 14 Jul, 2003 1 commit
  5. 13 Jul, 2003 2 commits
  6. 12 Jul, 2003 7 commits
    • Soeren Sandmann's avatar
      new properties "horizontal-offset" and "vertical-offset" that determines · d77b4c14
      Soeren Sandmann authored
      Sun Jul 13 01:37:51 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkmenu.c (gtk_menu_class_init): new properties
      	"horizontal-offset" and "vertical-offset" that determines the
      	position of the menu when it is a submenu.
      
      	* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): position
      	submenus according to new vertical- and horizontal-offset
      	properties.
      d77b4c14
    • Kristian Rietveld's avatar
      Merged from stable. · 497de299
      Kristian Rietveld authored
      Sat Jul 12 16:16:04 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Merged from stable.
      
      	* gtk/gtktreeview.c (gtk_tree_view_drag_data_received): special
      	case drags to "0", scroll to the top after dropping. (Fixes #94968,
      	reported by Alp Toker).
      497de299
    • Kristian Rietveld's avatar
      Merged from stable. · c5037bdb
      Kristian Rietveld authored
      Sat Jul 12 16:08:32 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Merged from stable.
      
      	* demos/gtk-demo/editable_cells.c (cell_edited): fixup bad
      	code (#115784, Owen Taylor).
      c5037bdb
    • Kristian Rietveld's avatar
      Merged from stable. · 79fceb3a
      Kristian Rietveld authored
      Sat Jul 12 16:01:03 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Merged from stable.
      
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
      	free the old text and extra_attrs *after* we parsed the new
      	markup string. (Fixes #114485, reported by Owen Taylor).
      79fceb3a
    • Kristian Rietveld's avatar
      Merged from stable. · 1719b20a
      Kristian Rietveld authored
      Sat Jul 12 15:51:33 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Merged from stable.
      
      	Fixes #113904, testcase provided by Rene Seindal.
      
      	* gtk/gtktreeview.c (gtk_tree_view_button_press): set
      	pressed_button to -1 when a row has been activated,
      	(gtk_tree_view_motion_bin_window): only start a drag if there's
      	a button being pressed.
      1719b20a
    • Kristian Rietveld's avatar
      Merged from stable. · 97ddec66
      Kristian Rietveld authored
      Sat Jul 12 15:51:18 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Merged from stable.
      
      	* gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): use
      	gdk_window_get_pointer instead of gdk_display_get_window_at_pointer
      	to avoid a roundtrip (#110272, Owen Taylor).
      97ddec66
    • Kristian Rietveld's avatar
      Merged from stable. · e680d2f5
      Kristian Rietveld authored
      Sat Jul 12 15:28:26 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Merged from stable.
      
      	This patch really really fixes scrolling. Related bugs: #81627,
      	testcase provided by Timo Sirainen, #111500, testcase provided by
      	manu, #113241, reported by Pedro Gimeno/Michael Natterer.
      
      	*  gtk/gtktreeview.c (validate_visible_area): scrolling to a dy
      	which is equal to the lower border of the window means scrolling
      	to an invisible row, always update the dy when scrolling to an
      	invisible row, corrected area_above/below calculations for
      	invisible rows, when walking the tree correct the size
      	subtracted for invalidated rows, fix wrong logic in comment.
      e680d2f5
  7. 11 Jul, 2003 6 commits
    • Matthias Clasen's avatar
      Use g_strfreev() to free mime_types. (#117219, Steve Chaplin) · aa013939
      Matthias Clasen authored
      2003-07-11  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkicontheme.c (pixbuf_supports_svg): Use g_strfreev() to free mime_types.
      	(#117219, Steve Chaplin)
      
      	* queryloaders.c (query_module): Handle absolute filenames properly. (#117170, Jens Elkner)
      
      	* gdk-pixbuf-io.c: Mention that NULL-terminated arrays returned by
      	gdk_pixbuf_format_get_mime_types() and gdk_pixbuf_format_get_extensions() must be
      	freed with g_strfreev().
      aa013939
    • Owen Taylor's avatar
      gdk/x11/gdkevents-x11.c (get_real_window) gdk/x11/gdkinput-x11.c · 50da0ae8
      Owen Taylor authored
      Tue Jul  8 20:11:04 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkevents-x11.c (get_real_window)
              gdk/x11/gdkinput-x11.c (_gdk_input_common_init)
              gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init)
              gdk/x11/gdkprivate-x11.h (_gdk_windowing_image_init)
              Don't assume that all events start with XEventAny - Xkb events
              don't! (#105745). So, only do that for core events, and for
              non-core events, add a system for registering event types
              that start with XEventAny.
      
              * gdk/x11/gdkevents-x11.c (gdk_event_translate):
              Check to see if the result of gdk_window_lookup_for_display()
              is actually a window.
      50da0ae8
    • Kristian Rietveld's avatar
      make the path != NULL check a silent assert, so it follows the g_free() · 10d77dd6
      Kristian Rietveld authored
      Fri Jul 11 20:48:14 2003  Kristian Rietveld  <kris@gtk.org>
      
      	* gtk/gtktreemodel.c (gtk_tree_path_free): make the path != NULL
      	check a silent assert, so it follows the g_free() behaviour.
      10d77dd6
    • Matthias Clasen's avatar
      Add gtkcolorbutton.c and gtkfontbutton.c. · 65d5d685
      Matthias Clasen authored
      2003-07-11  Matthias Clasen  <maclas@gmx.de>
      
      	* POTFILES.in: Add gtkcolorbutton.c and gtkfontbutton.c.
      
      2003-07-11  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkstatusbar.c (gtk_statusbar_init): Center statusbar contents
      	vertically.  (#109823, Joe Shaw)
      65d5d685
    • Morten Welinder's avatar
      Fix memory access error. (#69436) · 469f6e87
      Morten Welinder authored
      2003-07-11  Morten Welinder  <terra@gnome.org>
      
      	* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixbuf): Fix memory
      	access error.  (#69436)
      469f6e87
    • Kristian Rietveld's avatar
  8. 09 Jul, 2003 1 commit
    • Kristian Rietveld's avatar
      Merge from stable. · 8aafd6bb
      Kristian Rietveld authored
      Wed Jul  9 19:48:26 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Merge from stable.
      
      	* gdk/gdkdisplay.c (gdk_display_get_window_at_pointer): don't
      	directly return from ->window_at_pointer, but set win_x and win_y
      	first if needed. (Fixes #110166, reported by Arno Charlet).
      
      	* gdk/gdkwindow.c (gdk_window_get_composite_drawable): change
      	function to accept GdkDrawables and not just GdkWindows. This was
      	already done in some other functions a while back, but this patch
      	got lost for some reason.
      8aafd6bb
  9. 08 Jul, 2003 7 commits
    • Matthias Clasen's avatar
      Consider the text direction when sorting children. (#116540, Soeren · 1f012b36
      Matthias Clasen authored
      2003-07-09  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkcontainer.c (gtk_container_focus_sort_tab): Consider the text direction
      	when sorting children.  (#116540, Soeren Sandmann)
      1f012b36
    • Owen Taylor's avatar
      Change _gdk_x11_send_xevent_async() to · 8500d945
      Owen Taylor authored
      Tue Jul  8 17:36:21 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkasync.[ch] gdk/gdkdnd-x11.c:
              Change _gdk_x11_send_xevent_async() to
              _gdk_x11_send_client_message_async() avoid using Xlib
              internals that are different on Solaris.
              (#116917, Morten Welinder)
      8500d945
    • Matthias Clasen's avatar
      Doc addition. (#116501, Doug Quale) · f7657d31
      Matthias Clasen authored
      2003-07-08  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkcontainer.c (gtk_container_remove): Doc addition. (#116501, Doug Quale)
      f7657d31
    • Soeren Sandmann's avatar
      remove strange #define fix cut'n'paste error use instance private data use · d523e1a2
      Soeren Sandmann authored
      Tue Jul  8 21:35:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtktoggletoolbutton.h: remove strange #define
      	* gtk/gtktoolbutton.h: fix cut'n'paste error
      	* gtk/gtktoolbutton.c (gtk_tool_button_init): use instance
      	private data
      	* gtk/gtktoolitem.c (gtk_tool_item_class_init): use instance
      	private data instead of g_new0()
      	* gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): use
      	instance private data
      d523e1a2
    • Soeren Sandmann's avatar
      remove GDK_EXPOSURE_MASK for INPUT_ONLY window same same same same · 81785924
      Soeren Sandmann authored
      Tue Jul  8 21:10:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkbutton.c (gtk_button_realize): remove GDK_EXPOSURE_MASK
      	for INPUT_ONLY window
      	* gtk/gtkmenuitem.c (gtk_menu_item_realize): same
      	* gtk/gtknotebook.c (gtk_notebook_realize): same
      	* gtk/gtkexpander.c (gtk_expander_realize): same
      	* gtk/gtkrange.c (gtk_range_realize): same
      
      	Fix #116303
      81785924
    • Soeren Sandmann's avatar
      remove correction on x when detail is "menuitem". With the new menu look · 7913e63f
      Soeren Sandmann authored
      Tue Jul  8 19:57:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x
      	when detail is "menuitem". With the new menu look is isn't needed
      	anymore.
      
      	* gtk/gtktoolitem.c (gtk_tool_item_toolbar_reconfigured): queue a
      	resize here, so that tool items will get a chance to relayout
      	themselves based on the toolbar configuration.
      
      	change DEFAULT_SPACE_SIZE to 4 instead of 5
      
      	* gtk/gtktoolbar.c
      	Get rid of "!GTK_BIN (item)->child means separator". Separators
      	are widgets in their own right
      
      	change DEFAULT_SPACE_SIZE to 4 instead of 5
      
      	(get_space_size): remove this function
      	(toolbar_item_is_homogeneous): new function
      
      	* gtk/gtkseparatortoolitem.c
      	(gtk_separator_tool_item_size_request): new function.
      
      Tue Jul  8 14:10:35 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtktoggletoolbutton.h: use private data, add new
      	internal function _gtk_toggle_tool_button_get_button()
      
      	* gtk/gtktoolbutton.h: move to private data
      
      	* gtk/gtkradiotoolbutton.c, gtk/gtktoolbutton.c: updates for new
      	private data.
      7913e63f
    • Soeren Sandmann's avatar
      fix a type check, (#116947, Krasimir Angelov) · b3b16beb
      Soeren Sandmann authored
      Tue Jul  8 12:50:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtktoolbutton.c (gtk_tool_button_get_icon_widget): fix a
      	type check, (#116947, Krasimir Angelov)
      
      	* gtk/gtktoolbar.c: Use new GtkToolItem accessors.
      
      	* gtk/gtktoolitem.[ch]: Use a private struct to hold the instance
      	data. Not instance private data yet, because of bug 116921.
      
      	* gtk/gtktoolitem.h: new accessors:
      		gtk_tool_item_get_homogeneous ()
      		gtk_tool_item_get_expand ()
      		gtk_tool_item_get_pack_end ()
      		gtk_tool_item_get_use_drag_window ()
      b3b16beb
  10. 07 Jul, 2003 1 commit
    • Soeren Sandmann's avatar
      remove accidentally committed debugging spew · 71ff8228
      Soeren Sandmann authored
      Mon Jul  7 16:50:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkcellrenderertext.c
      	(gtk_cell_renderer_text_class_init): remove accidentally committed
      	debugging spew
      
      	* gtk/gtktoolbar.c
      	(gtk_toolbar_paint_space_line): remove this function
      	(gtk_toolbar_expose): always propagate expose, even if the item is
      	a separator item
      
      	* gtk/gtkseparatortoolitem.c
      	(gtk_separator_tool_item_expose): moved here from gtktoolbar.c
      	(get_space_size): new function.
      	(get_space_style): new function
      71ff8228
  11. 06 Jul, 2003 1 commit
    • Owen Taylor's avatar
      gtk/gtkdnd.c (_gtk_drag_source_handle_event) Remove use of · c084f541
      Owen Taylor authored
      Sun Jul  6 13:00:20 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkdnd.c (_gtk_drag_source_handle_event)
              * gtk/gtkdnd.c (gtk_drag_begin_internal):  Remove use
              of GDK_POINTER_MOTION_HINT_MASK.
      
              * gtk/gtkdnd.c (gtk_drag_update_idle): Move updating
              of the drag into an idle as a superior form of
              expose compression.
      
              * gtk/gtkdnd.c (gtk_drag_begin_internal): Move default icon
              creation here, so that we have an icon at the start
              of the drag (e.g., when retrieving the window cache
              information.)
      c084f541