1. 19 Oct, 2010 1 commit
  2. 11 Oct, 2010 2 commits
    • Owen W. Taylor's avatar
      Fix handling of the geometry widget · 88cf5470
      Owen W. Taylor authored
      The geometry widget feature of gtk_window_set_geometry_hints() has
      never really worked right because the calculation that GTK+ did to
      compute the base size of the window only worked when the geometry
      widget had a larger minimum size than anything else in the window.
      
      Setup:
      * Move the GtkSizeGroup private functions to a new private header
        gtksizegroup-private.h
      * Add the possibilty to pass flags to _gtk_size_group_queue_resize(),
        with the flag GTK_QUEUE_RESIZE_INVALIDATE_ONLY to suppress adding
        the widget's toplevel to the resize queue.
      * _gtk_container_resize_invalidate() is added to implement that feature
      * _gtk_widget_override_size_request()/_gtk_widget_restore_size_request()
        allow temporarily forcing a large minimum size on the geometry
        widget without creating resize loops.
      
      GtkWindow:
      * Compute the extra width/height around the geometry widget
        correctly; print a warning if the computation fails.
      * Always make the minimum size at least the natural minimum
        size of the toplevel; GTK+ now fails badly with underallocation.
      * Always set the base size hint; we were failing to set it
        properly when the specified minimum size was overriden, but
        it's harmless to always set it.
      
      Tests:
      * New test 'testgeometry' that replaces the 'gridded geometry' test
        from testgtk. The new test is roughly similar but creates a bunch
        of windows showing different possibilities.
      * The testgtk test is removed. No need to have both.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=68668
      88cf5470
    • Javier Jardón's avatar
  3. 29 Sep, 2010 1 commit
  4. 26 Sep, 2010 1 commit
  5. 13 Sep, 2010 1 commit
  6. 27 Aug, 2010 1 commit
  7. 13 Jul, 2010 3 commits
  8. 02 May, 2010 2 commits
  9. 10 Oct, 2009 2 commits
  10. 30 Oct, 2008 2 commits
  11. 01 Jul, 2008 1 commit
  12. 30 Jun, 2008 1 commit
    • Cody Russell's avatar
      Practically everything changed. · fce9c8b7
      Cody Russell authored
      2008-06-30  Cody Russell  <bratsche@gnome.org>
      
              * Practically everything changed.
      
              Change	all references	of GIMP	Toolkit	(and variations	of it)
              to GTK+	Toolkit, showing no mercy at all to our	beloved
      	ancestry. (#540529)
      
      
      svn path=/trunk/; revision=20709
      fce9c8b7
  13. 20 Jun, 2008 4 commits
    • Tim Janik's avatar
      Switch to "guint GSEAL (foo) : width;" when packing fields in guints. · cd19149a
      Tim Janik authored
      * gtk/gtkbox.h:
      * gtk/gtkbutton.h:
      * gtk/gtkcellrenderer.h:
      * gtk/gtkcellrenderertext.h:
      * gtk/gtkcheckmenuitem.h:
      * gtk/gtkcontainer.h:
      * gtk/gtkentry.h:
      * gtk/gtkhandlebox.h:
      * gtk/gtkimcontextsimple.h:
      * gtk/gtklabel.h:
      * gtk/gtkliststore.h:
      * gtk/gtkmenu.h:
      * gtk/gtkmenuitem.h:
      * gtk/gtkmenushell.h:
      * gtk/gtknotebook.h:
      * gtk/gtkpaned.h:
      * gtk/gtkplug.h:
      * gtk/gtkprintjob.h:
      * gtk/gtkprogressbar.h:
      * gtk/gtkrange.h:
      * gtk/gtkscale.h:
      * gtk/gtkscrolledwindow.h:
      * gtk/gtksizegroup.h:
      * gtk/gtksocket.h:
      * gtk/gtkspinbutton.h:
      * gtk/gtkstatusbar.h:
      * gtk/gtktable.h:
      * gtk/gtktearoffmenuitem.h:
      * gtk/gtktextbuffer.h:
      * gtk/gtktextview.h:
      * gtk/gtktogglebutton.h:
      * gtk/gtktoolbar.h:
      * gtk/gtktreestore.h:
      * gtk/gtktreeviewcolumn.h:
      * gtk/gtkwindow.h: Do not specify width inside GSEAL() when packing fields in guints.
      
      svn path=/trunk/; revision=20621
      cd19149a
    • Tim Janik's avatar
      Sealed remaining (private) fields in GtkContainer. · ebdc9e82
      Tim Janik authored
      svn path=/trunk/; revision=20560
      ebdc9e82
    • Tim Janik's avatar
      Seal GtkContainer - fixed Carlos' missing gtk_container_get_focus_child() header declaration · 66e81271
      Tim Janik authored
      svn path=/trunk/; revision=20533
      66e81271
    • Tim Janik's avatar
      seal members. · 2a109640
      Tim Janik authored
      * gtk/gtkcontainer.h: seal members.
      
      svn path=/trunk/; revision=20514
      2a109640
  14. 18 Jun, 2008 1 commit
    • Michael Natterer's avatar
      deprecate GtkDestroyNotify. · fe8a946e
      Michael Natterer authored
      2008-06-18  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtktypeutils.h: deprecate GtkDestroyNotify.
      
      	* gtk/gtkactiongroup.[ch]
      	* gtk/gtkcombobox.[ch]
      	* gtk/gtkcontainer.[ch]
      	* gtk/gtkliststore.[ch]
      	* gtk/gtkmain.[ch]
      	* gtk/gtkmenu.c
      	* gtk/gtkstock.[ch]
      	* gtk/gtktreedatalist.[ch]
      	* gtk/gtktreemodelfilter.[ch]
      	* gtk/gtktreemodelsort.[ch]
      	* gtk/gtktreeprivate.h
      	* gtk/gtktreeselection.[ch]
      	* gtk/gtktreesortable.[ch]
      	* gtk/gtktreestore.[ch]
      	* gtk/gtktreeview.[ch]
      	* gtk/gtktreeviewcolumn.[ch]: s/GtkDestroyNotify/GDestroyNotify/g.
      
      
      svn path=/trunk/; revision=20448
      fe8a946e
  15. 28 May, 2008 2 commits
    • Michael Natterer's avatar
      whitespace cleanup: remove trailing whitespace and excess newlines and · 2c5f8a5c
      Michael Natterer authored
      2008-05-28  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtk*.h: whitespace cleanup: remove trailing whitespace and
      	excess newlines and sprinkled some newlines where needed. Zero
      	code or formatting changes included.
      
      
      svn path=/trunk/; revision=20225
      2c5f8a5c
    • Michael Natterer's avatar
      define __GTK_H_INSIDE__ around including all other headers. · eff99c28
      Michael Natterer authored
      2008-05-28  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtk.h: define __GTK_H_INSIDE__ around including all other
      	headers.
      
      	* gtk/gtktypebuiltins.h.template
      	* gtk/gtkversion.h.in
      	* gtk/gtk*.h: add single-include guards that #error out if
      	GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is
      	included individually.
      
      	* gtk/gtkprintbackend.h
      	* gtk/gtkprinter-private.h
      	* gtk/gtktextlayout.h
      	* gtk/gtktexttagprivate.h
      	* gtk/gtktexttypes.h
      	* gtk/gtktreedatalist.h: include <gtk/gtk.h> instead of individual
      	headers in these private or semi-private headers.
      
      	* gtk/gtkimmodule.h: also here because it's not in gtk.h.
      
      	* gtk/gtkpagesetupunixdialog.h
      	* gtk/gtkprinter.h
      	* gtk/gtkprintjob.h
      	* gtk/gtkprintunixdialog.h: likewise in the gtkunixprint headers.
      
      	* gtk/gtkclist.h
      	* gtk/gtkcombo.h
      	* gtk/gtkctree.h
      	* gtk/gtkfilesel.h
      	* gtk/gtkitemfactory.h
      	* gtk/gtklist.h
      	* gtk/gtklistitem.h
      	* gtk/gtkoldeditable.h
      	* gtk/gtkoptionmenu.h
      	* gtk/gtkpixmap.h
      	* gtk/gtkpreview.h
      	* gtk/gtksignal.h
      	* gtk/gtktipsquery.h: whenever possible, include only <gtk/gtk.h>
      	instead of individual headers in these deprecated headers. They
      	don't get included at all when GTK_DISABLE_DEPRECATED is defined,
      	so if an app needs them anyway, it must undef GTK_DISABLE_DEPRECATED
      	and include them individually, which should continue to work.
      
      	* gtk/gtkclist.c: include "gtkctree.h" because of the change
      	above.
      
      
      svn path=/trunk/; revision=20221
      eff99c28
  16. 20 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · cca8dd63
      Matthias Clasen authored
      2005-03-20  Matthias Clasen  <mclasen@redhat.com>
      
      	Make PLT-reduction work with gcc4, and don't include
      	everything in gdkalias.h:
      
      	* gtk/grk.symbols: Group symbols by header and source file.
      	* gtk/makegtkalias.pl: Protect definitions by the same
      	preprocessor symbols used to guard the headers. Move
      	the alias declarations to a separate file which is
      	produced when calling makegtkalias.pl -def
      	* gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate
      	this file.
      	* gtk/*.c: Include gtkalias.h after the other headers,
      	include gtkaliasdef.c at the bottom.
      	* gtk/*.h: Small cleanups.
      cca8dd63
  17. 08 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Use G_GNUC_NULL_TERMINATED where appropriate. (#165682, Marc Meissner) · c8830f25
      Matthias Clasen authored
      2005-03-08  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkwidget.h:
      	* gtk/gtktreeview.h:
      	* gtk/gtktreeviewcolumn.h:
      	* gtk/gtktextbuffer.h:
      	* gtk/gtkobject.h:
      	* gtk/gtkfilechooserdialog.h:
      	* gtk/gtkdialog.h:
      	* gtk/gtkcontainer.h:
      	* gtk/gtkcelllayout.h:
      	* gtk/gtkaboutdialog.h: Use G_GNUC_NULL_TERMINATED where
      	appropriate.  (#165682, Marc Meissner)
      c8830f25
  18. 10 Oct, 2004 1 commit
  19. 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
  20. 01 Mar, 2002 1 commit
    • Owen Taylor's avatar
      include gdkkeysysms.h if compiling gdk_keyval_convert_case. · fce84d05
      Owen Taylor authored
      Thu Feb 28 19:55:01 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkkeys.c: include gdkkeysysms.h if
              compiling gdk_keyval_convert_case.
      
              * gtk/gtkmenubar.c (gtk_menu_bar_cycle_focus): Implement
              <Control>Tab <Control><Shift>Tab to cycle between
              all menu bars in a toplevel once one is up.
      
              * tests/testgtk.c: Add a second menubar, this
              example is already full of crack anyways.
      
              * gtk/gtkmenushell.c (gtk_menu_shell_key_press): Padd
              unhandled events up to the parent menu shell.
      
              * gtk/gtkmenuitem.c (gtk_menu_item_select_timeout): Only
              pop up the menu if the parent menu shell is still active.
      
              * gtk/gtkcontainer.[ch] (_gtk_container_focus_sort): Add a
              old_focus argument, export privately.
      fce84d05
  21. 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
  22. 18 Nov, 2001 1 commit
    • Owen Taylor's avatar
      We no longer need to create the signals here ... they come from the · 3f376d75
      Owen Taylor authored
      Sat Nov 17 19:08:13 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* tests/testtreeview.c (gtk_tree_model_types_get_type):
      	We no longer need to create the signals here ... they
      	come from the interface.
      
      	* gtk/maketypes.awk: Use GType, not GtkType in output.
      
      	* gtk/gtktypeutils.h: Mark virtually all of this
      	file deprecated.
      
      	* gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
      	the only use of this function is the GtkArg using
      	GtkCallbackMarshal, since destroy notification is
      	silly here.
      3f376d75
  23. 04 Nov, 2001 1 commit
    • Owen Taylor's avatar
      Add a function gdk_window_invalidate_maybe_recurse() for use in "shallow · 21457ced
      Owen Taylor authored
      Sun Nov  4 16:02:08 2001  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse()
              for use in "shallow invalidation" of a widget. (Windows belonging
              to the widget, but not to the widget's children)
      
              * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
              flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED.  These flags are set
              up on ancestors up to the resize container on queue_resize. Size
              requests only actually take place if GTK_REQUEST_NEEDED, size
              allocations only take place if GTK_ALLOC_NEEDED or the size
              changed.
      
              * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
              container->resize_widgets and the RESIZE_NEEDED flag since the
              above flags are sufficient to figure out what needs to be
              resized/reallocated. Remove code manipulating
              container->resize_widget.
      
              * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
              allows widgets to turn off being automatically invalidated is when
              they are resized.
      
              * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
              a widget is resized or moved is "shallow" as described above -
              only the windows that need to be invalidated are invalidated.
      
              * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt:
              Make these widget's init functions call
              gtk_widget_set_redraw_on_allocate(widget,FALSE).
      
              * gtk/gtkwindow.c (gtk_window_configure_event): Call
              _gtk_container_queue_resize(), since we don't want
              redrawing. (Probably could be done for other
              calls to gtk_widget_queue_resize() in gtkwindow.c,
              but this is the most important one.)
      
              * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
              gtk_widget_queue_draw() - size_allocate() handles
              that as appropriate.
      
              * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
              of queue_clear() to avoid invalidating children.
      21457ced
  24. 24 Sep, 2001 1 commit
    • Owen Taylor's avatar
      Add a compat macro that got lost. · 540f15dc
      Owen Taylor authored
      Mon Sep 24 12:48:25 2001  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtknotebook.h: Add a compat macro that got lost.
      
              * gtk/gtktreestore.c: Doc fixes.
      
              * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
              leak for windows that receive events after being destroyed.
              (#60863, Joshua N. Pritikin)
      
              * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
              rather than gtk_container_queue_resize().
      
              * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
              gtk_container_queue_resize, gtk_container_queue_resize_widgets,
              gtk_container_child_composite_name. (#60217.)
      540f15dc
  25. 23 Aug, 2001 2 commits
    • Owen Taylor's avatar
      Rename gtk_container_children() to gtk_container_get_children. Added · 991a7188
      Owen Taylor authored
      Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcontainer.[ch]: Rename gtk_container_children()
      	to gtk_container_get_children. Added deprecated compatibility
      	macro.	(Suggested by Vitaly Tishkov, #59051)
      
      	* gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
      	calls.
      991a7188
    • Owen Taylor's avatar
      [ Patch from Sebastian Wilhelmi, 52790 ] · a2d60d44
      Owen Taylor authored
      Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
      
      	[ Patch from Sebastian Wilhelmi, 52790 ]
      
      	* gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
      
      	* gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h:
      	Move compatibility macros from g[dt]kcompat.h to within
      	#ifndef G[DT]K_DISABLE_DEPRECATED in each file.
      
      	* gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
      
      	* demos/Makefile.am demos/gtk-demo/Makefile.am
                docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
                tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
      
      	* demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
                       testpixbuf.c}: Fix usages of deprecated functions.
      a2d60d44
  26. 19 Jul, 2001 1 commit
    • Owen Taylor's avatar
      Enforce the widget/child realization/mapping invariants. · aa49527f
      Owen Taylor authored
      Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
      	the widget/child realization/mapping invariants.
      
      	* gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions
      	gtk_widget_[get/set]_child_visible() to control
      	whether visible children of a mapped window are
      	mapped.
      
      	* docs/widget_system.txt: Updated for changes in
      	container contract, and addition of GTK_CHILD_VISIBLE.
      
      	* gtk/gtkcontainer.c: Add generic map()/unmap()
      	functions that work for almost all containers.
      
      	* gtk/gtknotebook.c gtk/gtkpacker.c: Use
      	gtk_widget_set_child_visible() where necessary.
      
      	* gtk/*.c: Remove excess map(), unmap(), and
      	realization/mapping invariant enforcing code
      	from many containers.
      aa49527f
  27. 01 Jul, 2001 1 commit
    • Owen Taylor's avatar
      Remove change check for GTK_TYPE_OBJECT derivation to G_TYPE_OBJECTS - · de985fb5
      Owen Taylor authored
      Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktypeutils.c (gtk_type_class): Remove
      	change check for GTK_TYPE_OBJECT derivation to
      	G_TYPE_OBJECTS - it's Tim-approved to use this
      	for arbitary objects.
      
      	* gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
      	prefix gtk_container_dequeue_resize_handler().
      
      	* gtk/gtkwidget.[ch]: Add a previous_toplevel argument
      	to the hierarachy_changed signal, since you otherwise
      	have to always keep that around.
      
      	* gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
      	for extra argument to hierarchy_changed.
      de985fb5
  28. 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
  29. 21 Jun, 2001 1 commit