1. 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
  2. 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
  3. 30 Jul, 2002 1 commit
  4. 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
  5. 16 May, 2002 1 commit
  6. 25 Apr, 2002 1 commit
  7. 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
  8. 27 Feb, 2002 2 commits
  9. 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
  10. 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
  11. 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
  12. 30 Jan, 2002 1 commit
  13. 28 Jan, 2002 1 commit
  14. 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
  15. 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
  16. 06 Dec, 2001 1 commit
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 02 Nov, 2001 1 commit
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 20 Jun, 2001 1 commit
  29. 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
  30. 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
  31. 04 Jun, 2001 4 commits
    • Havoc Pennington's avatar
      change SCROLL_RIGHT to SCROLL_LEFT, reported by Thomas Broyer. · a6eec278
      Havoc Pennington authored
      2001-06-04  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
      	SCROLL_LEFT, reported by Thomas Broyer.
      a6eec278
    • Havoc Pennington's avatar
      Process updates immediately, to prevent funny lag effect when scrolling, · 31a25807
      Havoc Pennington authored
      2001-06-04  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkrange.c (gtk_range_adjustment_value_changed):
      	Process updates immediately, to prevent funny lag effect
      	when scrolling, at some mild potential efficiency cost.
      31a25807
    • Havoc Pennington's avatar
      on middle click, center slider on the click. · cfdca30c
      Havoc Pennington authored
      2001-06-04  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkrange.c (gtk_range_button_press): on middle click, center
      	slider on the click.
      cfdca30c
    • Havoc Pennington's avatar
      make this special-case hscale/vscale details, so we can use it for · 42f429be
      Havoc Pennington authored
      2001-06-03  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
      	hscale/vscale details, so we can use it for scrollbar as well.
      
      	* tests/testgtk.c (reformat_value): honor digits from GtkScale
      
      	* gtk/gtkenums.h (GtkTroughType): Remove this enum
      	(GtkScrollType): add START and END from GtkTroughType
      
      	* gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
      	its x/y arguments
      
      	* gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
      	gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
      	gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
      	gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
      	gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
      
      	Notable changes in the process:
      
      	- stepper_size style property is the height for vertical
      	  ranges, width for horizontal; the other dimension matches
      	  the trough size
      	- add ability to do NeXT-style steppers (and several other styles
      	  that don't make any sense)
      	- added min_slider_length, fixed_slider_length properties to
                GtkScrollbar
              - cleaned some private (or at least useless) functions out of
                gtkscale.h
              - moved bindings to GtkScale from subclasses, even arrow keys,
      	  since blind users don't know scale orientation.
              - change move_slider action signal to use new GtkScrollType,
      	  remove GtkTroughType argument
      	- digits rounds the values a range will input to the given
      	  number of decimals, but will not try to force adjustment
      	  values set by other controllers. That is, we no longer
      	  modify adjustment->value inside a value_changed handler.
      	- added getters for GtkScale setters
              - middle-click begins a slider drag
      42f429be
  32. 17 May, 2001 1 commit
    • Alexander Larsson's avatar
      Add properties, based on patch by Lee Mallabone. · 6ee1ae13
      Alexander Larsson authored
      2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
      
      	* gtk/gtkbbox.c:
      	Add properties, based on patch by Lee Mallabone.
      
      	* gtk/gtknotebook.c:
      	* gtk/gtktoolbar.c:
      	Convert from GtkArg to GParam, based on patch by John Margaglione.
      
      	* gtk/gtkhscale.c:
      	* gtk/gtkvscale.c:
      	* gtk/gtkhscrollbar.c:
      	* gtk/gtkvscrollbar.c:
      	* gtk/gtkrange.c:
      	Move adjustment property to GtkRange.
      
      	* gtk/gtklabel.c:
      	Setup mnemonics on property changes
      
      	* gtk/gtkwidget.c (gtk_widget_get_property):
      	GdkExtensionMode is an enum, not a flag. Set it with
      	g_value_set_enum ().
      
      	* tests/prop-editor.c:
      	Better propery editor.
      
      	* tests/testgtk.c:
      	Add new property test. Pass zero to the property editor to
      	get properties from all derived types.
      6ee1ae13
  33. 01 May, 2001 1 commit
    • Owen Taylor's avatar
      New default theme! A slighly improved version of the 2.0 Raleigh theme, · c626cd42
      Owen Taylor authored
      Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c
      	  gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
        	  New default theme! A slighly improved version of the 2.0 Raleigh
      	  theme, with Windows-esque focus/drawing default.
      	  (GtkWidget::interior_focus defaults to TRUE.)
      
      	* gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
      c626cd42
  34. 28 Apr, 2001 1 commit
    • Havoc Pennington's avatar
      voc Pennington <hp@redhat.com> · 7ad36413
      Havoc Pennington authored
      	* gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line):
      	(gtk_text_layout_move_iter_to_next_line): fix these two for
      	invisible text, lots of other stuff still hosed.
      
      	* gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
      	new function, replaces the get/set palette stuff. This function
      	is intended for use by libgnomeui which should set the hook to a
      	thing which sets the palette in GConf, and we need the
      	GConf-to-xsettings proxy which will result in the change being
      	propagated back to the GTK app.
      
      	* gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning
      	about unusable signals that it may be because the signal has
      	parameters.
      
      	* gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
      	style, otherwise gtkrc.c won't know to create a new GtkStyle for
      	it.
      	(gtk_widget_modify_color_component): call
      	gtk_widget_modify_style() so the rc style will get copied.
      	(gtk_widget_modify_font): ditto
      
      	* gtk/gtkrc.c: make a couple variables static
      
      	* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
      	help button by default, since it does nothing
      
      	* gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
      	around with UI
      
      	* gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
      	so we can have tooltips
      
      	* gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
      	can have tooltips
      
      	* gdk/gdkimage.h: mark gdk_image_new_bitmap with
      	GDK_ENABLE_BROKEN, because its memory behavior is completely
      	hosed.
      
      	* gtk/gtknotebook.c: remove key press handler, replace with
      	binding set, add numeric keypad support
      
      	* gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
      
      	* gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
      
      	* gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
      	addition to plain Delete
      
      	* gtk/gtktextview.c (gtk_text_view_key_press_event): accept
      	GDK_KP_Enter in addition to GDK_Return
      
      	* gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
      	activate on entry instead of key press
      	(gtk_font_selection_on_clist_key_press): get
      	rid of this signal handler, not needed with new font sel.
      
      	* gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
      	no-longer-needed emit_stop_by_name(), just return TRUE
      
      	* gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
      	cruft, this widget is no longer focusable.
      
      	* gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
      	gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
      	move_slider action signal, add binding set for vscale/hscale, in
      	the process support numeric keypad
      
      	* gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings;
      	make GDK_Return and GDK_KP_Enter activate the entry via
      	binding set, instead of hardcoded.
      7ad36413
  35. 02 Apr, 2001 1 commit
    • Owen Taylor's avatar
      Fix G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE · c944151a
      Owen Taylor authored
      Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_widget_class_init): Fix
      	G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
      	stupidity.
      
      Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
      
      	[ First pass at adding style properties. Still needs some definite
      	fine-tuning. ]
      
              * gtk/gtkbutton.c: Add ::default_spacing style property.
      
      	* gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
      	::indicator_spacing style properties.
      
      	* gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
      	style properties.
      
      	* gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
      	rather than a normal property.
      
      	* gtk/gtkwidget.c: Add an ::interior_focus style property to
      	draw focus inside buttons, in the Windows/Java Metal/etc. style.
      
      	* gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
      	Honor ::interior_focus.
      
      	* gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is
      	TRUE.
      
      	* gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
      	Add ::slider_width, ::trough_border, ::stepper_size,
      	::stepper_spacing style properties.
      
      	* gtk/gtkscale.[ch] Add ::slider-length style property.
      c944151a
  36. 30 Mar, 2001 1 commit
    • Alexander Larsson's avatar
      Remove leaks. · aa209a95
      Alexander Larsson authored
      2001-03-30  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/gtkbutton.c (gtk_button_get_property):
      	* gtk/gtklabel.c:
      	Remove leaks.
      
      	* gtk/gtkcontainer.c:
      	* gtk/gtkhscale.c:
      	* gtk/gtkhscrollbar.c:
      	* gtk/gtklayout.c:
      	* gtk/gtkmisc.c:
      	* gtk/gtkprogress.c:
      	* gtk/gtkprogressbar.c:
      	* gtk/gtkrange.c:
      	* gtk/gtktable.c:
      	* gtk/gtkviewport.c:
      	* gtk/gtkvscale.c:
      	* gtk/gtkvscrollbar.c:
      	* gtk/gtkwidget.c:
      	Property patches, based on patches from John Margaglione and Lee Mallabone.
      aa209a95