1. 07 Oct, 2002 1 commit
    • Manish Singh's avatar
      Deprecation cleanup · 285c8f78
      Manish Singh authored
      Sun Oct  6 21:23:29 2002  Manish Singh  <yosh@gimp.org>
      
              * gtk/gtkcontainer.[ch] gtk/gtkbox.[ch] gtk/gtkhbox.[ch]
              gtk/gtkvbox.[ch]: Deprecation cleanup
      285c8f78
  2. 30 Jan, 2002 1 commit
  3. 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
  4. 26 Jul, 2000 1 commit
  5. 24 Feb, 1999 1 commit
  6. 10 Feb, 1999 1 commit
    • Owen Taylor's avatar
      Fixed some bugs with set_default_size. · d1bda8d5
      Owen Taylor authored
      Sun Feb  7 19:49:21 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwindow.c (gtk_window_move_resize): Fixed some
      	  bugs with set_default_size.
      
      Sat Feb  6 13:23:51 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* docs/Changes-1.2.txt: Added information about
      	 the change to gtk_widget_size_request().
      
      	* gtk/gtkentry.c: Call gtk_widget_get_child_requisition
      	 explicitely since we differentiate between the usize
      	 set by the user and what we got. (Ugh)
      
      	* gtk/gtkwidget.[ch] (gtk_widget_get_child_requisition):
      	 New function to return the effective size of a widget
      	 as it looks to its parent.
      
      	* gtk/gtkwidget.c (gtk_widget_size_request): Leave
      	 widget->requisition set to exactly what the widget
      	 asked for, and then make a copy of that into
      	 the requisition argument. Allow a NULL requisition
      	 argument, and, if G_ENABLE_DEBUG, warn if
      	 requisition == &widget->requisition.
      
      	* gtkalignment.c gtkaspectframe.c gtkbutton.c gtkclist.c
      	  gtkcontainer.c gtkentry.c gtkeventbox.c gtkfixed.c
      	  gtkframe.c gtkhandlebox.c gtkhbox.c gtkhpaned.c
      	  gtklayout.c gtklist.c gtklistitem.c gtkmenu.c
      	  gtkmenubar.c gtkmenuitem.c gtknotebook.c
      	  gtkoptionmenu.c gtkpacker.c gtkscrolledwindow.c
      	  gtktable.c gtktoolbar.c gtktree.c gtktreeitem.c
      	  gtkvbox.c gtkviewport.c gtkvpaned.c gtkwindow.c
      
      	 Avoid calling gtk_widget_size_request with
      	 requisition == widget->requisition; use
      	 gtk_widget_get_child_requisition to get the
      	 size of children.
      d1bda8d5
  7. 21 Jan, 1999 1 commit
    • Jeff Garzik's avatar
      . Free 'nprefix', closing a memory leak. Spaced out the code a bit to make · 6e3e247b
      Jeff Garzik authored
      .
              * gtk/gtkcombo.c (gtk_combo_entry_key_press):
              Free 'nprefix', closing a memory leak.
              Spaced out the code a bit to make it more readable.
      
              * gtk/gtkhbox.[ch] (gtk_hbox_new),
                gtk/gtkvbox.[ch] (gtk_vbox_new):
              Change 'homogenous' arg from gint to gboolean.
      
              * gtk/gtktogglebutton.[ch]:
              New function gtk_toggle_button_get_active().
      6e3e247b
  8. 14 Jan, 1999 1 commit
    • Owen Taylor's avatar
      gtk/gtkbutton.c gtk/gtkclist.c gtk/gtkhandlebox.c gtk/gtkframe.c · 467e0fcb
      Owen Taylor authored
      Wed Jan 13 22:34:29 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkbutton.c gtk/gtkclist.c gtk/gtkhandlebox.c
      	gtk/gtkframe.c gtk/gtk[hv]box.c gtk[hv]paned.c gtk/gtklist.c
      	gtkmenu.c gtkmenuitem.c gtkmenubar.c gtknotebook.c
      	gtk/gtkscrolledwindow.c gtk/gtktable.c gtk/gtktree.c
      	gtk/gtktreeeitem.c gtk/gtkviewport.c
      
      	Fix up comparisons of signed and unsigned ints to avoid
      	assigning negative widths/heigths.
      467e0fcb
  9. 30 Nov, 1998 1 commit
    • Elliot Lee's avatar
      I submitted this patch twice to gtk-devel-list, and received no comments, · 060978e0
      Elliot Lee authored
      
      
      I submitted this patch twice to gtk-devel-list, and received no comments, so
      am committing it.  Although not exhaustively tested, I have been using this
      gtk+ for a week w/o problems, and I did read the code to ensure that nothing
      ever writes to these data structures. If by chance people encounter SEGV's in
      gtk+ code that is setting values in global data structures, this patch could
      be a possible culprit.
      
      1998-11-30  Elliot Lee  <sopwith@cuc.ml.org>
      
      	* {gdk,gtk}/*.c: Make read-only data structures "static const" to
      	allow them to be shared, mainly including (but not limited to) the
      	GtkTypeInfo structures for each class.
      
      	* gtk/gtkfilesel.c: Add /net to the "leave me alone" directory listing.
      060978e0
  10. 04 Jul, 1998 1 commit
  11. 28 Jun, 1998 1 commit
    • Tim Janik's avatar
      call the base class init fucntions from all parent types upon class · e63d08e4
      Tim Janik authored
      Sun Jun 28 04:29:10 1998  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtktypeutils.c (gtk_type_class_init): call the base class init
      	fucntions from all parent types upon class initialization.
      
      	* gtk/gtkcontainer.c:
       	(gtk_container_get_type): announce gtk_container_base_class_init to
       	the type system.
      	(gtk_container_base_class_init): new function to feature base class
      	initialization.
      	(gtk_container_get_child_arg):
      	(gtk_container_set_child_arg): call the GtkContainerClass get_child_arg
      	and set_child_arg methods of the class indicated through the argument
      	name.
      
      	* gtk/gtkobject.c:
      	(gtk_object_base_class_init): new function to feature base class
       	initialization.
      	(gtk_object_init_type): announce gtk_object_base_class_init to the type
      	system.
      	(gtk_object_class_init): setup the get_arg and set_arg pointers for
      	GtkObjectClass.
      	(gtk_object_setv):
       	(gtk_object_getv): call the GtkObjectClass get_arg and set_arg methods,
       	instead of bothering the type system with this.
      
      	* gtk/gtkaccellabel.c:
      	* gtk/gtkbutton.c:
      	* gtk/gtkradiobutton.c:
      	* gtk/gtktable.c:
      	* gtk/gtktogglebutton.c:
      	* gtk/gtktipsquery.c:
      	* gtk/gtkbox.c:
      	* gtk/gtkpacker.c:
      	* gtk/gtkwidget.c:
      	* gtk/gtkwindow.c:
      	* gtk/gtkframe.c:
      	* gtk/gtkmisc.c:
      	* gtk/gtklabel.c: set the object_class->{g|s}et_arg pointers to the
      	corresponding gtk_*_{g|s]et_arg functions and updated the gtk_*_get_type
      	functions wrt GtkTypeInfo initialization. changed a lot of the set/get
      	arg functions to take a GtkObject argument.
      
      	gtk/gtkadjustment.c:
      	gtk/gtkalignment.c:
      	gtk/gtkarrow.c:
      	gtk/gtkaspectframe.c:
      	gtk/gtkbbox.c:
      	gtk/gtkbin.c:
      	gtk/gtkcheckbutton.c:
      	gtk/gtkcheckmenuitem.c:
      	gtk/gtkclist.c:
      	gtk/gtkcolorsel.c:
      	gtk/gtkcombo.c:
      	gtk/gtkctree.c:
      	gtk/gtkcurve.c:
      	gtk/gtkdata.c:
      	gtk/gtkdialog.c:
      	gtk/gtkdrawingarea.c:
      	gtk/gtkeditable.c:
      	gtk/gtkentry.c:
      	gtk/gtkeventbox.c:
      	gtk/gtkfilesel.c:
      	gtk/gtkfixed.c:
      	gtk/gtkfontsel.c:
      	gtk/gtkgamma.c:
      	gtk/gtkhandlebox.c:
      	gtk/gtkhbbox.c:
      	gtk/gtkhbox.c:
      	gtk/gtkhpaned.c:
      	gtk/gtkhruler.c:
      	gtk/gtkhscale.c:
      	gtk/gtkhscrollbar.c:
      	gtk/gtkhseparator.c:
      	gtk/gtkimage.c:
      	gtk/gtkinputdialog.c:
      	gtk/gtkitem.c:
      	gtk/gtkitemfactory.c:
      	gtk/gtklist.c:
      	gtk/gtklistitem.c:
      	gtk/gtkmenu.c:
      	gtk/gtkmenubar.c:
      	gtk/gtkmenuitem.c:
      	gtk/gtkmenushell.c:
      	gtk/gtknotebook.c:
      	gtk/gtkoptionmenu.c:
      	gtk/gtkpaned.c:
      	gtk/gtkpixmap.c:
      	gtk/gtkpreview.c:
      	gtk/gtkprogressbar.c:
      	gtk/gtkradiomenuitem.c:
      	gtk/gtkrange.c:
      	gtk/gtkruler.c:
      	gtk/gtkscale.c:
      	gtk/gtkscrollbar.c:
      	gtk/gtkscrolledwindow.c:
      	gtk/gtkseparator.c:
      	gtk/gtkspinbutton.c:
      	gtk/gtkstatusbar.c:
      	gtk/gtktext.c:
      	gtk/gtktoolbar.c:
      	gtk/gtktooltips.c:
      	gtk/gtktree.c:
      	gtk/gtktreeitem.c:
      	gtk/gtkvbbox.c:
      	gtk/gtkvbox.c:
      	gtk/gtkviewport.c:
      	gtk/gtkvpaned.c:
      	gtk/gtkvruler.c:
      	gtk/gtkvscale.c:
      	gtk/gtkvscrollbar.c:
      	gtk/gtkvseparator.c: updated the GtkTypeInfo initialization code to
      	match the modified GtkTypeInfo structure.
      e63d08e4
  12. 17 Jun, 1998 1 commit
    • Tim Janik's avatar
      new function gdk_window_at_pointer() to retrive the current GdkWindow the · 7d0331a6
      Tim Janik authored
      Wed Jun 17 03:47:40 1998  Tim Janik  <timj@gtk.org>
      
              * gdk/gdk.h:
              * gdk/gdkwindow.c: new function gdk_window_at_pointer() to retrive
              the current GdkWindow the pointer is on if there is any.
      
              * gtk/gtktable.c (gtk_table_init): preallocate a table with one row
              and one column, so we don't construction logic at all. changed a few
              (x < y - 1) to (x + 1 < y), to avoid failing evaluations due to
              unsigned int wraps.
      
              * gtk/gtkwidget.c (gtk_widget_set_parent): removed left over code
              portion, added an additional check for parent != widget.
      
              * more GtkType and macro fixups.
      7d0331a6
  13. 03 May, 1998 1 commit
    • Owen Taylor's avatar
      configure.in acheader.h gdk/gdkwindow.c Check for Shape extension both on · 4851efe2
      Owen Taylor authored
      Sun May  3 13:38:22 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* configure.in acheader.h gdk/gdkwindow.c
      	Check for Shape extension both on the client and server
      	side. (And, more importantly, check for the shape extension
      	so we may include -lXext even when compiling with --disable-xshm)
      
      	Don't set override_redirect on all shaped windows. It isn't
      	necessary.
      
      	* gdk/gdkwindow.c: Set ->colormap to NULL for root
      	and foreign windows. Use this to check if we
      	need to get the colormap from X.
      
      Fri May  1 22:32:47 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkbutton.c (gtk_button_paint): Draw the areas
      	between the default and the button always in GTK_STATE_NORMAL.
      
      	* gtk/gtkrange.c (gtk_range_style_set): Added a style_set
      	callback.
      
      Fri May  1 16:40:57 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gdk/gdkpixmap.c (gdk_pixmap_colormap_create_from_xpmp[_d]):
      	  Fix a buffer overflow on pixmaps that claim to have
      	  more than 31 characters per pixel.
      
      	  (gdk_pixmap_read_string): Don't wrap around strings longer
       	  than half of address space ;-)
      
      	* gtk/gtk[vh]ruler.c gtk/gtkinputdialog.c: Expand some buffers
      	that were used for printing integers.
      
      	* */* (almost):
      
      	Style: All
      	  int foo () { ... }
      	changed to
      	  int foo (void) { ... }
      
      ^^^^^^^ This is why some many files changed
      
      	Even where there were proper prototypes elsewhere.
      
      	* gdk/gxid.c (handle_claim_device): Some extra checks.
      	It isn't safe against being fed bad X id's, but at
      	least it should be safe against deleting all your
      	files.
      4851efe2
  14. 13 Apr, 1998 1 commit
  15. 07 Apr, 1998 1 commit
    • Owen Taylor's avatar
      Removed, because that's what a NULL comparison function means. And it · 1c77b5f9
      Owen Taylor authored
      Tue Apr  7 19:36:48 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gutils.c (g_direct_compare): Removed, because that's what
      	a NULL comparison function means. And it wasn't 64 bit safe.
      
      Tue Apr  7 19:14:03 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gdk/gdkpixmap.c: Added maximum field widths to prevent
      	possible '%s' scanf overflows. Replaced scanf("%c")
      	with getc(), Don't interpret /*/ as a full comment. Use
      	g_realloc/g_new.
      
      	* gtk/gtkwidget.h gtk/gtkprivate.h: Changed all flag
      	tests to check for ((GTK_WIDGET_FLAGS(widget) & FLAG) != 0)
      	instead of (GTK_WIDGET_FLAGS(widget) & FLAG)
      
      	* gtk/gtkfilesel.c: Use getwd() instead of getcwd() on
      	SunOS, because getcwd() hangs up in a wait4().
      	(Found by David Monniaux <monniaux@clipper.ens.fr>)
      
      	- Check device/inode/mtime not just inode/mtime, when
      	caching scanned directories.
      	(From: scottk@ig.utexas.edu (Scott Kempf))
      
      	* gdk/gdkpixmap.c: Check for 0 width/height when
      	creating pixmaps.
      
      	* gtk/*.c: Global substitution of recently introduced
      	"MAX (0," for allocations to "MAX (1,", since
      	creating a backing pixmap with a zero width or height
      	fails.
      
      	* gdk/gdkwindow.c (gdk_window_new): Don't set all the
      	WM properties for child windows. Don't set the base
      	size, since the value we set will be taken as a minimum
      	size.
      1c77b5f9
  16. 03 Apr, 1998 1 commit
    • Owen Taylor's avatar
      More extensive debugging output · 32cd050c
      Owen Taylor authored
      Fri Apr  3 17:14:55 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gdk/gdk.c: More extensive debugging output
      
      	* gtk/gtkalignment.c gtk/gtkbutton.c gtk/gtkcheckbutton.c
      	  gtk/gtkclist.c gtk/gtkeventbox.c gtk/gtkhandlebox.c
      	  gtk/gtk[hv]box.c gtk/gtk[hv]paned.c gtk/gtklist.c
      	  gtk/gtkmenu.c gtk/gtkmenubar.c gtk/gtkmenuitem.c
      	  gtk/gtknotebook.c gtk/gtktable.c gtk/gtktree.c
      	  gtk/gtktreeitem.c gtk/gtkviewport.c
      
      	Avoid assigning negative values to unsigned allocation.width and
      	height
      
      	* gtk/gtkwindow.c:
      
      	Instead of realizing the widget, then size allocating, (resulting
      	in XMoveResizeWindows for all children, do the size allocation
      	first, then realize.
      
      	In gtk_real_window_move_resize, combine move and resize
      	into a single GDK/X call when possible.
      
      	* gtk/gtkclist.c gtk/gtkdrawingarea.c:
      
      	Remove assumption that the widget will be size allocated _after_
      	it is realized.
      
      	* gtk/gtklist.c (gtk_list_motion_notify): Removed useless
      	debugging message.
      32cd050c
  17. 16 Jan, 1998 1 commit
  18. 24 Nov, 1997 1 commit