1. 11 Oct, 2002 1 commit
    • Manish Singh's avatar
      Deprecation cleanup · f18d5d35
      Manish Singh authored
      Fri Oct 11 15:56:20 2002  Manish Singh  <yosh@gimp.org>
      
              * gtk/gtkaccellabel.[ch] gtk/gtkaccessible.[ch] gtk/gtkbutton.[ch]
              gtk/gtkcheckbutton.[ch] gtk/gtkcolorseldialog.[ch] gtk/gtkdialog.[ch]
              gtk/gtkhandlebox.[ch] gtk/gtkinputdialog.[ch] gtk/gtkmessagedialog.[ch]
              gtk/gtktearoffmenuitem.[ch] gtk/gtktogglebutton.[ch]: Deprecation
              cleanup
      f18d5d35
  2. 23 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Massive padding addition to class structures. · e5d1ea8c
      Owen Taylor authored
      Sat Feb 23 11:54:12 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/*.h gdk/*.h: Massive padding addition to class structures.
      
              * gtk/gtktextmark.h: Fix a FIXME about G_CONST_RETURN.
      e5d1ea8c
  3. 22 Feb, 2002 1 commit
  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
  5. 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
  6. 26 Oct, 2001 1 commit
  7. 27 Aug, 2001 1 commit
    • Alexander Larsson's avatar
      Add properties for labels, mnemonics and stock items. Added C accessor · f9e66624
      Alexander Larsson authored
      2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
      
      	* gtk/gtkbutton.[ch]:
      	Add properties for labels, mnemonics and stock items.
      	Added C accessor functions for the properties.
      	Removed deprecated button->child.
      
      	* gtk/gtkradiobutton.c:
      	* gtk/gtktogglebutton.c:
      	Update to use the functions in GtkButton.
      
      	* gtk/gtkcheckbutton.c:
      	Update to use the functions in GtkButton.
      	Changed size allocation of child. Now only gets as much
      	space as it requests.
      
      	* gtk/gtkclist.c:
      	Don't use GtkButton->child
      
      	* gtk/gtklabel.c:
      	Fixed typo in docs
      f9e66624
  8. 25 Aug, 2001 1 commit
    • Owen Taylor's avatar
      Add optional movement on push to buttons (based on patch from Soeren · b94e6c0a
      Owen Taylor authored
      Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
              on push to buttons (based on patch from Soeren Sandmann, #54720)
      
                - Add child_displacement_x/y style properties to control how far the
                  child moves when the button is depressed.
      
                - Add non-exported function _gtk_button_set_depressed to clean
                  up the handling of the in/out shadow and separate it frmo
                  widget->state.
      
                - Lots of code cleanup and simplification of state handling
                  for GtkButton/GtkToggleButton.
      
              * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
              of button movement. testgtk + testgtkrc == test ugly GTK+, as always.
      b94e6c0a
  9. 23 Mar, 2001 1 commit
    • Havoc Pennington's avatar
      Apply property patch from Lee Mallabone · dc0cd67d
      Havoc Pennington authored
      2001-03-23  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
      
      	* gtk/gtkbox.c: Apply property patch from Lee Mallabone
      
      	* gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
      	and deprecated gtk_check_menu_item_set_show_toggle().
      
      	* gtk/gtkbutton.c: Apply property patch from Lee Mallabone
      
      	* gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
      
      	* gtk/gtkframe.c: Apply property patch from Lee Mallabone
      dc0cd67d
  10. 21 Mar, 2001 1 commit
    • Alexander Larsson's avatar
      Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and removed · de5eafed
      Alexander Larsson authored
      2001-03-21  Alexander Larsson  <alexl@redhat.com>
      
              * gtk/gtkbutton.[ch]:
      	* gtk/gtkdialog.c:
      	Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
      	removed accel_group argument. Renamed gtk_button_new_accel() to
      	gtk_button_new_with_mnemonic() and removed accel_group argument.
      
      	* gtk/gtkcheckbutton.[ch]:
      	New function gtk_check_button_new_with_mnemonic().
      
      	* gtk/gtkentry.c:
      	Override activate_mnemonic and just grab focus.
      
      	* gtk/gtkitemfactory.c:
      	Don't add menu uline accel group, instead use mnemonics support.
      
      	* gtk/gtklabel.[ch]:
      	New support for mnemonics.
      
      	* gtk/gtkmarshal.list:
      	Needed BOOLEAN:BOOLEAN for activate_mnemonic.
      
      	* gtk/gtkmenu.[c]:
      	* gtkmenushell.c:
      	Use mnemonics instead of accel groups for uline
      	support in menu items.
      	Removed gtk_menu_get_uline_accel_group() and
      	gtk_menu_ensure_uline_accel_group().
      
      	* gtk/gtkmenuitem.c:
      	Override activate_mnemonic to handle switching between
      	menu items if there are collisions.
      
      	* gtk/gtknotebook.c:
      	Connect to activate_mnemonic on the tab_label, so that
      	activating it switches to that notebook page.
      
      	* gtk/gtkwidget.[ch]:
      	Add activate_mnemonic signal. New function
      	gtk_widget_activate_mnemonic() to emit it.
      	Default implementation does activate/grab_focus.
      
      	* gtk/gtkwindow.[ch]:
      	Add support for mnemonics in windows.
      	New functions:
      	gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
      	gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
      
      	* gtk/testgtk.c:
      	Update to function name changes.
      de5eafed
  11. 06 Mar, 2001 1 commit
    • Owen Taylor's avatar
      Add animation of activation by, on activate, pressing the button, and · 71aa1161
      Owen Taylor authored
      Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkbutton.c: Add animation of activation by, on
      	activate, pressing the button, and adding a timeout that
      	releases the button after 250ms	or on key release and
      	emits ::clicked. (#51501)
      
      	* gtk/gtkdialog.c: Bit of a hack - for buttons in the
      	action area, we connect to ::clicked instead of ::activate
      	so the dialog stays up through the animation.
      
      Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
      	check the ignore_enter flag for the menu shell that
      	the item is actually a child of, not for attached
      	submenus. (#51536)
      71aa1161
  12. 26 Sep, 2000 1 commit
    • Havoc Pennington's avatar
      Move more text widget headers into the private header list · e8597130
      Havoc Pennington authored
      2000-09-26  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/Makefile.am (gtk_private_h_sources): Move more text widget
      	headers	into the private header list
      
      	* Makefile.am (pkgconfig_DATA): install pkg-config files
      
      	* configure.in: add pkg-config files
      
      	* gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
      
      	* gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
      	outstanding icon caches on theme change.
      
      	* gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three
      	important types:
      
      	(GtkIconSource): Specification for creating a pixbuf
      	appropriate for a direction/state/size triplet from
      	a source pixbuf or filename
      
      	(GtkIconSet): List of GtkIconSource objects that are used to
      	create the "same" icon (e.g. an OK button icon), and cache for
      	rendered icons
      
      	(GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
      	up the icon set for a given stock ID.  GTK maintains a stack of
      	GtkIconFactory to search, and applications or libraries can add
      	additional icon factories on top of the stack
      
              * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse
      	the set of GtkIconSource specified for a given stock ID into
      	a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the
      	RcStyle, under the specified stock ID.
      
      	* gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
      	render_icon used to derive a GdkPixbuf from a GtkIconSource.
      	This allows people to theme how prelight, insensitive, etc. are
      	done.
      
      	(gtk_style_lookup_icon_set): Look up a stock ID in the list of
      	icon factories for a style, and return the resulting
      	icon set if any.
      
      	(gtk_style_render_icon): Render an icon using the render_icon
      	method in the GtkStyleClass.
      
      	* gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon):
      	Use the style for a given widget to look up a stock ID, get the
      	icon set, and render an icon using the render_icon method
      	of the style
      
      	* gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
      	(contains information about a stock item), the built-in stock item
      	IDs, and functions to add/lookup stock items.
      
      	* gtk/stock-icons/*: Stock icons that come with GTK
      
      	* gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
      	a button based on a GtkStockItem
      	(gtk_button_new_accel): Takes a uline string and accel group, and
      	installs the accelerator.
      
      	* gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
      	image-display widget.
      e8597130
  13. 30 Aug, 2000 1 commit
  14. 26 Jul, 2000 1 commit
  15. 13 Feb, 2000 1 commit
    • Tim Janik's avatar
      s/refcount/ref_count/. · ef03cb52
      Tim Janik authored
      Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
      
              * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
              * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap):
              * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy):
              * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
              parameters given and cursor->ref_count. coding style fixups.
      
              * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
              not GtkWidget.
      
              * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
              fix up widget macros and add _GET_CLASS() variant.
      
              * gtk/*.c: some GtkType fixups.
      ef03cb52
  16. 24 Feb, 1999 1 commit
  17. 19 Dec, 1998 1 commit
  18. 17 Dec, 1998 1 commit
  19. 07 Oct, 1998 1 commit
    • Tim Janik's avatar
      removed all occourances of #pragma } and #pragma { which were in place to · 3322a264
      Tim Janik authored
      Wed Oct  7 05:15:36 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtk*.h:
              * gdk/gdk.h: removed all occourances of #pragma } and #pragma {
              which were in place to fixup emacs' cc-mode indentation.
              putting (c-set-offset 'inextern-lang 0) into ~/.emacs is the
              proper way to achive this and doesn't produce problems for
              stupid pragma-related compiler bugs. ;)
      3322a264
  20. 07 Jul, 1998 1 commit
    • Tim Janik's avatar
      totaly binary incomnpatible change: · 88fba9f8
      Tim Janik authored
      
      Mon Jul  6 18:30:48 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkbutton.h:
              * gtk/gtkbutton.c: GtkButtons are now derived from GtkBin. we mirror
              GTK_BIN (button)->child to button->child to keep source compatibility.
      
              * gtk/gtkoptionmenu.c:
              * gtk/gtkclist.c:
              * gtkcheckbutton.c: don't refer to button->child, but
              GTK_BIN (button)->child instead.
      88fba9f8
  21. 12 May, 1998 1 commit
    • Owen Taylor's avatar
      (James A <jamesa@demon.net> : gtk-jamesa-980511-4.patch) · c9e78a10
      Owen Taylor authored
      Tue May 12 16:54:15 1998  Owen Taylor  <otaylor@gtk.org>
      	(James A <jamesa@demon.net> : gtk-jamesa-980511-4.patch)
      
      	* glib.h gstring.c gmessages.c: Added some missing
      	const to arguments.
      
      	* gutils.c (g_strsignal.c): Added missing return statements.
      
      Tue May 12 16:56:35 1998  Owen Taylor  <otaylor@gtk.org>
      	(James A <jamesa@demon.net> : gtk-jamesa-980511-4.patch)
      
      	* gtk/gtkbbox.h gtk/gtkcolorsel.h gtk/gtkvbbox.h:
      	Changed #include "gtkfoo.h" to #include <gtk/gtkfoo.h>
      
      	* gtk/gtkwindow.[ch]: Added const to gtk_window_set_wmclass
      
      Tue May 12 15:16:10 1998  Owen Taylor  <otaylor@gtk.org>
      	(From: Christopher James Lahey <clahey@umich.edu>)
      
      	* gtk/gtkbutton.[ch] gtk/gtkenums.h gtk/gtktoolbar.[ch]
      	  gtk/testgtk.c:
      
      	Added 'relief' for buttons - they can be either GTK_RELIEF_NORMAL
      	(old style), or GTK_RELIEF_NONE - no relief in the NORMAL
      	state. Added gtk_toolbar_{set,get}_button_relief, which set/get
      	the default relief for the toolbars buttons. Added an
      	toggle for the toolbar test in testgtk.c.
      c9e78a10
  22. 06 May, 1998 1 commit
    • Tim Janik's avatar
      reimplemented the signal storage system to use a linear array rather than · 518a8a9c
      Tim Janik authored
      Wed May  6 02:16:34 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtksignal.c: reimplemented the signal storage system to use a
              linear array rather than a hash table.
              be carefull *not* to keep any GtkSignal pointers across invokations
              of gtk_signal_next_and_invalidate() and therefore gtk_signal_new[v]().
              general code cleanups, made all allocations through memchunks.
              (gtk_signal_lookup): we now do the lookup of signals through a key_id
              for the signal names to avoid multiple hashing of the signal name on
              lookups for the several hirarchy levels of an object.
      
      Tue May  5 15:33:27 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmain.c (gtk_init): added gtk_signal_init() to avoid repeatedly
              checking for signal initialization in gtksignal.c.
      
              * gtk/gtktypeutils.c (TYPE_NODES_BLOCK_SIZE): reseted this to 200 after
              a long debugging period ;)
      
      Mon May  4 00:30:11 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktypeutils.h (GTK_TYPE_IS_A): new macro to speedup
              gtk_type_is_a().
              * gtk/gtktypeutils.c: reimplemented the type storage system to use a
              linear array rather than a hash table. it actually speeded up testgtk
              for a *considerable* amount. be carefull *not* to keep any GtkTypeNode
              pointers across invokations of gtk_type_node_next_and_invalidate() and
              therefore gtk_type_unique()!
      
              * gtk/gtkobject.h (GTK_IS_OBJECT_CLASS): new macro to test for the
              inheritance of a class pointer.
              (GTK_OBJECT): modifications for speedups.
              (GTK_IS_OBJECT): likewise.
              (GTK_OBJECT_CLASS): likewise.
              (suggested by owen).
      
              * gtk/gtkcontainer.h (GTK_IS_CONTAINER_CLASS): new macro.
      
              * gtk/gtkwidget.h (GTK_IS_WIDGET_CLASS): new macro.
      
              * gtk/gtk.defs (GtkTooltips): define GtkTooltips as object not as boxed,
              since its derivation changed 4 month ago ;(. showed up with the unique
              type name checking code in gtk_type_unique().
      
              * random guint->GtkType and macro fixups.
      518a8a9c
  23. 13 Apr, 1998 1 commit
  24. 11 Mar, 1998 1 commit
    • Tim Janik's avatar
      applied gtk-bolliet-980310-0.patch.gz which adds more checks and · 309d7377
      Tim Janik authored
      Wed Mar 11 04:35:06 1998  Tim Janik  <timj@gimp.org>
      
              * gtk/gtklist.c:
              * gtk/gtktree.h:
              * gtk/gtktree.c:
              * gtk/gtktreeitem.h:
              * gtk/gtktreeitem.c: applied gtk-bolliet-980310-0.patch.gz which adds
              more checks and implements gtk_tree_clear_items. made a bunch of style
              and indentation fixes.
      309d7377
  25. 24 Nov, 1997 1 commit