1. 05 Jun, 2004 1 commit
    • Matthias Clasen's avatar
      Add a note about the !CAN_FOCUS quirk in the button size allocation code. · d287b713
      Matthias Clasen authored
      2004-06-04  Matthias Clasen  <mclasen@redhat.com>
      
      	* docs/widget_geometry.txt: Add a note about the !CAN_FOCUS
      	quirk in the button size allocation code.
      
      	* gtk/gtkbutton.c (gtk_button_size_allocate): Give the space
      	requested for drawing the focus indicator to the child in the
      	!CAN_FOCUS case. This should fix issues which the Gimp has with
      	the button allocation changes in 2.4.2.
      d287b713
  2. 06 Jul, 2003 2 commits
    • Soeren Sandmann's avatar
      better drawing of GtkMenuItem add notes about GtkMenu remove leftover · e9b612a8
      Soeren Sandmann authored
      Sun Jul  6 17:21:23 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* docs/widget_geometry.txt: better drawing of GtkMenuItem
      	* docs/widget_geometry.txt: add notes about GtkMenu
      	* gtk/gtkstyle.c: remove leftover "#include "gtkhandlebox.h""
      e9b612a8
    • Soeren Sandmann's avatar
      add vertical_padding style property. · c8515b2f
      Soeren Sandmann authored
      Sat Jul  5 10:34:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
              * gtk/gtkmenu.c: add vertical_padding style property.
      
              * gtk/gtkmenuitem.c: add style properties toggle_spacing,
              arrow_spacing and horizontal_padding. Also center separators and
              make them a bit taller.
      
              * gtk/*menuitem.c: use new style properties.
      
              * docs/widget_geometry.txt: Add note about GtkMenuItem
      
              * gtk/gtkstyle.c
              (gtk_default_draw_vline, gtk_default_draw_hline):
              fix +/-1 errors.
      
              (gtk_default_draw_shadow): draw a black border around menus.
      
              * gtk/gtkvseparator, gtk/gtkhseparator.c, gtk/gtkmenuitem.c: fix
              calls to gtk_paint_hline() and gtk_paint_vline() (they take x1,
              x2 and y1, y2 respectively, not x, width and y, height).
      c8515b2f
  3. 30 Jun, 2003 1 commit
    • Mark McLoughlin's avatar
      Add GtkExpander. See discussion in bug #60553. · 281a9554
      Mark McLoughlin authored
      2003-06-30  Mark McLoughlin  <mark@skynet.ie>
      
              Add GtkExpander. See discussion in bug #60553.
      
              * gtk/gtkexpander.[ch]: add.
      
              * gtk/Makefile.am: build gtk-expander.[ch].
      
              * docs/widget_geometry.txt: add info on the layout
              of GtkExpander.
      281a9554
  4. 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