1. 06 Mar, 2004 1 commit
  2. 29 Feb, 2004 1 commit
    • Soeren Sandmann's avatar
      New internal function returning a good step value for the mouse wheel. For · 41dfb5ec
      Soeren Sandmann authored
      Sun Feb 29 19:04:33 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkrange.c (_gtk_range_get_wheel_delta): New internal
      	function returning a good step value for the mouse wheel. For
      	scrollbars, base the step on page_size^(2/3), for other ranges,
      	use 2 * step_increment.
      
      	* gtk/gtkrange.c (gtk_range_scroll_event): Use it here ...
      
      	* gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event):
      	... and here.
      
      	* gtk/gtkmenu.c (gtk_menu_leave_notify): Fix a warning.
      41dfb5ec
  3. 16 Jan, 2004 1 commit
    • Matthias Clasen's avatar
      The first part of the fix for #114351 (see also gdk-pixbuf/ChangeLog and · 07d4d314
      Matthias Clasen authored
      Fri Jan 16 23:59:01 2004  Matthias Clasen  <maclas@gmx.de>
      
      	The first part of the fix for #114351 (see also
      	gdk-pixbuf/ChangeLog and po/ChangeLog):
      
      	* gtk/gtkintl.h:
      	* gdk-pixbuf/gdk-pixbuf-i18n.h:
      	* gdk/gdkintl.h: Define P_() for property blurbs and nicks.
      
      	* gdk/gdkdisplaymanager.c:
      	* gdk-pixbuf/gdk-pixbuf.c:
      	* modules/input/gtkimcontextxim.c:
      	* gtk/*.c:  Mark property blurbs and nicks with P_().
      
      	* po/Makefile.in.in: Add --keyword=P_ to the xgettext
      	invocation, since property blurbs and nicks are
      	now marked with P_().
      07d4d314
  4. 13 Dec, 2003 1 commit
  5. 11 Dec, 2003 1 commit
  6. 03 Sep, 2003 1 commit
  7. 08 Jul, 2003 1 commit
    • 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
  8. 29 Mar, 2003 2 commits
    • Matthias Clasen's avatar
      Fix the previous commit. · bdd6e817
      Matthias Clasen authored
      bdd6e817
    • Matthias Clasen's avatar
      Fixes for bug #56248: · feefa270
      Matthias Clasen authored
      2003-03-29  Matthias Clasen  <maclas@gmx.de>
      
              Fixes for bug #56248:
      
      	* gtk/gtknotebook.c (stop_scrolling): New function to remove the
      	timer and queue a redraw.
      	(gtk_notebook_grab_notify):
      	(gtk_notebook_state_changed): New functions to call stop_scrolling()
      	if necessary.
      	(gtk_notebook_button_release): Use stop_scrolling().
      	(gtk_notebook_draw_arrow): Fix drawing of insensitive arrows.
      
      	* gtk/gtkrange.c (stop_scrolling): New function to remove the
      	grab, remove the timer and queue a redraw.
      	(gtk_range_grab_notify):
      	(gtk_range_state_changed): New functions to call stop_scrolling()
      	if necessary.
      	(gtk_range_button_release): Use stop_scrolling().
      
      	* gtk/gtkspinbutton.c (gtk_spin_button_grab_notify):
      	(gtk_spin_button_state_changed): Redraw after stop_spinning.
      	(gtk_spin_button_stop_spinning): Reset click_child to correct the
      	drawing of the arrows.
      	(gtk_spin_button_button_release): Use a local copy of click_child,
      	since stop_spinning() resets it.
      feefa270
  9. 04 Oct, 2002 1 commit
    • Manish Singh's avatar
      Deprecation cleanup · 85d726f9
      Manish Singh authored
      Fri Oct  4 00:57:53 2002  Manish Singh  <yosh@gimp.org>
      
              * gtkhscrollbar.[ch] gtkhseparator.[ch] gtkrange.[ch]
              gtkscrollbar.[ch] gtkseparator.[ch] gtkseparatormenuitem.h
              gtkvscrollbar.[ch] gtkvseparator.[ch]: Deprecation cleanup
      85d726f9
  10. 21 Sep, 2002 1 commit
    • Matthias Clasen's avatar
      Mark abstract types as G_TYPE_FLAG_ABSTRACT. (#72383) · 083c3aef
      Matthias Clasen authored
      	* gdk/gdkdraw.c (gdk_drawable_get_type):
      	* gdk/gdkgc.c (gdk_gc_get_type):
      	* gtk/gtkmenushell.c (gtk_menu_shell_get_type):
      	* gtk/gtkimcontext.c (gtk_im_context_get_type):
      	* gtk/gtkprogress.c (gtk_progress_get_type):
      	* gtk/gtkoldeditable.c (gtk_old_editable_get_type):
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_get_type):
      	* gtk/gtkwidget.c (gtk_widget_get_type):
      	* gtk/gtkseparator.c (gtk_separator_get_type):
      	* gtk/gtkscrollbar.c (gtk_scrollbar_get_type):
      	* gtk/gtkscale.c (gtk_scale_get_type):
      	* gtk/gtkrange.c (gtk_range_get_type):
      	* gtk/gtkpaned.c (gtk_paned_get_type):
      	* gtk/gtkmisc.c (gtk_misc_get_type):
      	* gtk/gtkitem.c (gtk_item_get_type):
      	* gtk/gtkcontainer.c (gtk_container_get_type):
      	* gtk/gtkbbox.c (gtk_button_box_get_type):
      	* gtk/gtkbox.c (gtk_box_get_type):
      	* gtk/gtkbin.c (gtk_bin_get_type):
      	* gtk/gtkobject.c (gtk_object_get_type): Mark abstract types as
      	G_TYPE_FLAG_ABSTRACT.  (#72383)
      083c3aef
  11. 30 Jul, 2002 1 commit
  12. 12 Jun, 2002 1 commit
    • Owen Taylor's avatar
      Fix memory leak. (Patch from Matthias Clasen, #84926) · a9888839
      Owen Taylor authored
      Wed Jun 12 15:38:01 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
              Fix memory leak. (Patch from Matthias Clasen, #84926)
      
              * gtk/gtkrange.c (gtk_range_init): Initialize
              mouse_x, mouse_y to -1,-1. (#84871, Garrett Lesage)
      a9888839
  13. 16 May, 2002 1 commit
  14. 25 Apr, 2002 1 commit
  15. 02 Mar, 2002 1 commit
    • Owen Taylor's avatar
      Robustify tracking of pointer grab window. · b54e5f4c
      Owen Taylor authored
      Fri Mar  1 18:39:44 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/{gdkevents-x11.c,gdkmain-x11.c,gdkprivate-x11.h,
              gdkwindow-x11.c}: Robustify tracking of pointer grab window.
      
              * gdk/x11/gdkmain-x11.c: Keep track of current keyboard
              grab window.
      
              * gdk/x11/gdkmain-x11.c (gdk_pointer_grab_info_libgtk_only,
              gdk_keyboard_grab_info_libgtk_only): Private libgtk => libgtk
              API for finding out current grab information.
      
              * gtk/gtkmain.c (rewrite_event_for_grabs): Rewrite events
              so that the effective behavior of owner_events = TRUE is changed
              to "deliver events to same window group normally" instead
              of "deliver events to same application normally. #69934
      
              * gtk/gtkrange.c: Use an explicit gtk_grab_add() so that
              it works within the GtkList combo, where there is a
              owner_events = FALSE gdk_pointer_grab() already in effect.
              (#65006, reported by Damon Chaplin)
      b54e5f4c
  16. 27 Feb, 2002 2 commits
  17. 26 Feb, 2002 1 commit
    • Soeren Sandmann's avatar
      Draw arrows better (without extra baseline) · ad64579c
      Soeren Sandmann authored
      Wed Feb 27 00:45:39 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkarrow.c, gtk/gtkmenuitem.c, gtk/gtkrange.c
      	gtk/gtkspinbutton.c gtk/gtkstyle.c: Draw arrows better (without
      	extra baseline)
      ad64579c
  18. 23 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Applied patch from Thomas Leonard to make stepper click to scroll take · 96882ebc
      Owen Taylor authored
      Fri Feb 22 20:28:18 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkrange.c: Applied patch from Thomas Leonard to make
              stepper click to scroll take effect immediately, rather than after
              a delay (#67649).
      
              * gtk/gtkrange.c: Remove right-click == step in trough since it
              isn't a useful binding and it's a large area to hit accidentally.
              (Leave it on the steppers since its more useful there and less
              likely to do accidentally.)
      96882ebc
  19. 15 Feb, 2002 1 commit
    • Jody Goldberg's avatar
      add new signal 'adjust_bounds' to potentialy change the bounds before · f0ed36b3
      Jody Goldberg authored
      2002-02-14  Jody Goldberg <jody@gnome.org>
      
      	* gtk/gtkrange.c (gtk_range_class_init) : add new signal
      	  'adjust_bounds' to potentialy change the bounds before assigning the
      	  new value and camping it to the existing bounds.
      	(gtk_range_internal_set_value) : used here. #68800.
      	* gtk/gtkmarshalers.list : add VOID:DOUBLE
      f0ed36b3
  20. 30 Jan, 2002 1 commit
  21. 28 Jan, 2002 1 commit
  22. 09 Jan, 2002 1 commit
    • Tim Janik's avatar
      don't cast a possible NULL pointer. · adb892f2
      Tim Janik authored
      Wed Jan  9 11:23:39 2002  Tim Janik  <timj@gtk.org>
      
              * gtk/gtklayout.c (gtk_layout_get_property):
              * gtk/gtkspinbutton.c (gtk_spin_button_get_property):
              * gtk/gtktreeview.c (gtk_tree_view_get_property):
              * gtk/gtkwidget.c (gtk_widget_get_property):
              * gtk/gtkfontsel.c (gtk_font_selection_get_property):
              * gtk/gtkrange.c (gtk_range_get_property):
              * gtk/gtkviewport.c (gtk_viewport_get_property):
              * gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
              possible NULL pointer.
      adb892f2
  23. 09 Dec, 2001 1 commit
    • Jiri (George) Lebl's avatar
      check for 0 value on the denominator in the horizontal case just like we · c66ca2df
      Jiri (George) Lebl authored
      Sun Dec 09 15:06:51 2001  George Lebl <jirka@5z.com>
      
      	* gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
      	  denominator in the horizontal case just like we do in the vertical
      	  case (why I didn't notice that there were two cases the first time
      	  around is beyond me:).  Also fix indentation in the vertical case.
      c66ca2df
  24. 06 Dec, 2001 1 commit
  25. 04 Dec, 2001 1 commit
    • Owen Taylor's avatar
      Patch from Bill Haneman (with many modifications) to make the focus color · 7537825b
      Owen Taylor authored
      Mon Dec  3 16:39:17 2001  Owen Taylor  <otaylor@redhat.com>
      
      	Patch from Bill Haneman (with many modifications) to make
      	the focus color work on dark themes and to make the
      	focus line width configurable. (#61079, #63074)
      
              * gtk/gtkwidget.c: Add style properties,
      	::focus-widget, ::focus-line-width, and ::focus-padding.
      
      	* gtk/gtkstyle.[ch]: Make gtk_paint_focus() take a
      	state argument as well so we can use fg[STATE] to
      	draw instead of always drawing with black.
      	Cange paint_focus() to respect GtkWidget::focus-width
      	and GtkWidget::focus-line-pattern. Fix continuity
      	problem where the default 1-1 stipple had a blob
      	in one corner and a gap in the other. Change the
      	interpretation of x/y/width/height to be the bounding
      	box of the focus rect instead of the rectangle
      	passed to gdk_draw_rectangle.
      
      	* gtk/gtkcheckbutton.c gtk/gtklistitem.c gtk/gtknotebook.c
      	gtk/gtkoptionmenu.c gtk/gtkradiobutton.c gtk/gtkspinbutton.c
      	gtk/gtktextview.c gtk/gtktreeview.c: Handle ::focus-width
      	and ::focus-line-padding.
      
      	* gtk/gtkentry.c: Handle :;focus-width property; cleanup
      	and remove duplicated code; fix drawing of focus rectangle
      	when interior-focus = FALSE. (#63072, #63073)
      
      	* gtk/gtkrange.c gtk/gtktext.c gtk/gtktreeitem.c
      	gtk/gtktreeviewcolumn.c: Basic fixups to make compile;
      	Range and TreeViewColumn will need more extensive fixing.
      
      	* gtk/gtkcolorsel.c: Honor focus line attributes when
      	drawing the focus on the color swatches. (#63071)
      
      	* gtk/gtkhsv.c: Honor focus line attributes when
      	drawing the focus for the ring and triangle.
      
      	* docs/widget_geometry.txt: Start at documenting how
      	various widgets are drawn.
      
      	* gtk/gtkbutton.c (_gtk_button_paint): Export
      	_gtk_button_paint() librarywide, so we don't have
      	duplicate a bunch of code in gtktogglebutton.c.
      
      	* gtk/gtktogglebutton.c: Use _gtk_button_paint().
      7537825b
  26. 28 Nov, 2001 1 commit
    • Havoc Pennington's avatar
      put the warning explaining the validation error in front of the · 53da925c
      Havoc Pennington authored
      2001-11-28  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextview.c (gtk_text_view_paint): put the warning
      	explaining the validation error in front of the G_BREAKPOINT
      
      	* gtk/gtkrange.c (gtk_range_adjustment_value_changed): call
      	process updates with include_children = FALSE instead of TRUE, so
      	we redraw the range only, not the whole darn window.  Making
      	GtkRange a NO_WINDOW widget had weirdly caused the text widget
      	Trace/breakpoint trap bug to become much easier to trigger.
      53da925c
  27. 23 Nov, 2001 1 commit
    • Owen Taylor's avatar
      Offset invalidated range correctly. Fix scrolling of title window. · 11239567
      Owen Taylor authored
      Fri Nov 23 18:36:42 2001  Owen Taylor  <otaylor@redhat.com>
      	* gtk/gtkrange.c (gtk_range_button_press): Offset
      	invalidated range correctly.
      	* gtk/gtkclist.c (hadjustment_value_changed): Fix scrolling
      	of title window. (#65001, reported by Damon Chaplin)
      	* gtk/gtkcombo.c (gtk_combo_button_event_after): Replace
      	horrible hack with use of ::event_after.
      11239567
  28. 17 Nov, 2001 1 commit
    • Owen Taylor's avatar
      Make gtkmarshal.list/gtkmarshal.h only for compatibility with GTK+-1.2; · a036c6e5
      Owen Taylor authored
      Sat Nov 17 18:26:45 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
      	gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
      	only for compatibility with GTK+-1.2; and deprecate it;
      	put all marshalers we actually use into gtkmarshalers.list
      	and use the _gtk_marshal_ prefix for these marshalers.
      a036c6e5
  29. 15 Nov, 2001 1 commit
    • Owen Taylor's avatar
      Cal gdk_window_invalidate_maybe_recurse() for recursion. (Soeren Sandmann) · b27345fe
      Owen Taylor authored
      Thu Nov 15 14:19:34 2001  Owen Taylor  <otaylor@redhat.com>
      
       	* gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
       	gdk_window_invalidate_maybe_recurse() for recursion.
       	(Soeren Sandmann)
      
       	* gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
      
      	* gtk/gtkcontainer.c (gtk_container_expose): Call
      	gtk_container_forall() not _foreach() to propagate,
      	since we need to propagate exposes to internal children
      	as well.
      
      	* gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events):
      	Remove the restriction of only being able to call these
      	on window widgets, since we have lots of NO_WINDOW widgets
      	with windows now; for add events, recurse over the children
      	of widget->window to find one owned by the widget.
      
      	* gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
      	window to catch events.
      
      	* gtk/gtktogglebutton.[ch]: Remove the code for switching
      	between NO_WINDOW and WINDOW widgets based on the mode.
      
      	* gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
      	gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
      
      	* gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
      
      	* gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
      	change for range.
      
      	* gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
      
      	* docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
      b27345fe
  30. 02 Nov, 2001 1 commit
  31. 18 Jul, 2001 1 commit
    • Owen Taylor's avatar
      Patch from Matthias Clasen to remove remove all instances of · 4e2b60ac
      Owen Taylor authored
      Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/*.c: Patch from Matthias Clasen to remove remove
      	all instances of g_return_if_fail (foo != NULL); that are
      	immediately before a g_return_if_fail (GTK_IS_FOO (foo));
      	since the second check catches the NULL anyways.
      4e2b60ac
  32. 14 Jul, 2001 1 commit
    • Tim Janik's avatar
      add GDK_THREADS_ENTER/GDK_THREADS_LEAVE. (gtk_range_calc_layout): compute · 8589cfa1
      Tim Janik authored
      Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkrange.c:
              (second_timeout):
              (initial_timeout):
              (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
              (gtk_range_calc_layout): compute the new layout based on an
              adjustment->value being passed in as argument.
              (gtk_range_button_press): for button2 slider warps, first recalc
              the layout, then adjust the value. also, use update_slider_position()
              for adjusting the value, so we keep pixel quantisation at which we
              usually operate (upon motion or button releases). the reason for this
              is that, we can't change the adjustment upon button2 presses to a non
              quantised value and upon button2 release re-quantise the value since
              that'd alter the value even if we didn't get any motion events (causing
              unexpected scroll area warps upon release and/or slider pixel-jitter).
              (gtk_range_motion_notify): update the slider position from queried
              coordinates, not event coordinates.
      
      Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
              the default gc values are: width=0, CapBut, JoinMiter.
      8589cfa1
  33. 12 Jul, 2001 1 commit
    • Owen Taylor's avatar
      Add missing case. · 82ffb2f5
      Owen Taylor authored
      Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
      	missing case.
      
      	* gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
      	NULL/FALSE return value confusion.
      
      	* gtk/gtkrange.c (coord_to_value): Fix division-by-zero
      	problem when scrollbar completely fills range. (Patch
      	from  Matthias Clasen, #57047)
      82ffb2f5
  34. 29 Jun, 2001 1 commit
    • Havoc Pennington's avatar
      fixes to compile with G_DISABLE_COMPAT · 49c1e6dc
      Havoc Pennington authored
      2001-06-29  Havoc Pennington  <hp@redhat.com>
      
             * Throughout: fixes to compile with G_DISABLE_COMPAT
      	(s/g_signal_connectc/g_signal_connect/,
      	s/g_signal_newc/g_signal_new/,
      	s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
      49c1e6dc
  35. 24 Jun, 2001 1 commit
    • Owen Taylor's avatar
      Fix stupid error introduced last night that was making things decidedly · cc223eef
      Owen Taylor authored
      Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
      	introduced last night that was making things decidedly not work.
      
      	* gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
      	so that we have getter/setter pairing everywhere it makes
      	sense. (#55767)
      
      	* gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
      	Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
      	deprecated compat macro. (#55516)
      
      	* gtk/gtklabel.[ch]: Add functions
      	gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
      	gtk_label_set_label(), which mirror the property API for GtkLabel.
      	Make gtk_label_get_attributes() only reflect the attributes
      	set by gtk_label_set_attributes.
      
      	* gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
      	from gtk_notebook_set_page().
      cc223eef
  36. 20 Jun, 2001 1 commit
  37. 06 Jun, 2001 1 commit
    • Havoc Pennington's avatar
      add "inverted" property · cf3d1e1f
      Havoc Pennington authored
      2001-06-06  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
      
      	* gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
      	Down to move visually rather than logically, since it confuses
      	people. Add -/+ and Ctrl--/+ bindings for logical movement.
      cf3d1e1f
  38. 05 Jun, 2001 1 commit
    • Havoc Pennington's avatar
      clamp the value to the range that was set · b32e7c9b
      Havoc Pennington authored
      2001-06-05  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value
      	to the range that was set
      
      	* gtk/gtkrange.c: add value_changed signal, primarily
      	intended for use with GtkScale
      	(gtk_range_set_increments): new function
      	(gtk_range_set_range): new function with weird name
      	(gtk_range_set_value): new function
      	(gtk_range_get_value): new function
      
      	* gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename
      	from gtk_spin_button_get_value_as_float(). Compat #define
      	added for get_value_as_float.
      
      	* gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
      
      	* gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
      
      2001-06-05  Havoc Pennington  <hp@redhat.com>
      
      	* test-loaders.c (main): use putenv not setenv, reported by
      	 Armin Theissen
      b32e7c9b