1. 26 Sep, 2010 1 commit
    • Benjamin Otte's avatar
      Move GtkSizeRequest into GtkWidget · d9c92598
      Benjamin Otte authored
      It doesn't make sense to keep them separate as GtkSizeRequest requires a
      GtkWidget and GtkWidget implements GtkSizeRequest, so you can never have
      one without the other.
      It also makes the code a lot easier because no casts are required when
      calling functions.
      
      Also, the names would translate to gtk_widget_get_width() and people
      agreed that this would be a too generic name, so a "preferred" was added
      to the names.
      
      So this patch moves the functions:
      gtk_size_request_get_request_mode() => gtk_widget_get_request_mode()
      gtk_size_request_get_width() => gtk_widget_get_preferred_width()
      gtk_size_request_get_height() => gtk_widget_get_preferred_height()
      gtk_size_request_get_size() => gtk_widget_get_preferred_size()
      gtk_size_request_get_width_for_height() =>
        gtk_widget_get_preferred_width_for_height()
      gtk_size_request_get_height_for_width() =>
        gtk_widget_get_preferred_height_for_width()
      ... and moves the corresponding vfuncs to the GtkWidgetClass.
      
      The patch also renames the implementations of the vfuncs in widgets to
      include the word "preferrred".
      d9c92598
  2. 13 Sep, 2010 1 commit
    • Havoc Pennington's avatar
      default impls of width_for_height,hfw should chain directly not use wrapper API · cf6eb477
      Havoc Pennington authored
      In GtkBin and GtkWidget we tried to provide handy defaults that
      call get_width if there's no get_width_for_height and
      get_height for get_height_for_width.
      
      However, they used the wrapper API on GtkSizeRequest instead of
      chaining directly to the other method implementation.
      
      This could result in all kinds of surprising behavior, for example,
      get_width_for_height() would now already include the effects of set_size_request().
      
      If nothing else it's inefficient. But it's just conceptually wrong,
      because to chain to another implementation, we should call the other
      implementation, not call a wrapper around the other implementation
      (when we're already inside a previous invocation of the wrapper,
      i.e. compute_size_for_orientation() ends up reinvoking itself
      in the same orientation on the same object which it pretty
      likely isn't intending to do)
      
      https://bugzilla.gnome.org/show_bug.cgi?id=628829
      cf6eb477
  3. 27 Aug, 2010 1 commit
  4. 13 Jul, 2010 2 commits
  5. 10 Jul, 2010 1 commit
  6. 18 Jun, 2010 1 commit
    • Tristan Van Berkom's avatar
      Mass api change from GtkExtendedLayout --> GtkSizeRequest · edd57602
      Tristan Van Berkom authored
      This commit makes a few massive changes to the extended layout
      code:
        a.) gtkextendedlayout.c --> gtksizerequest.c
        b.) _is_height_for_width --> get_request_mode()
        c.) get_desired_size(), get_desired_width(), get_desired_height() -->
            get_size(), get_width(), get_height()
      
      This is the first partial commit and only effects portions
      of the tree that have already been merged in master (in order to
      easily cherry pick this commit).
      
      Conflicts:
      
      	gtk/Makefile.am
      	gtk/gtk.h
      	gtk/gtk.symbols
      	gtk/gtkextendedlayout.h
      edd57602
  7. 21 Apr, 2010 1 commit
  8. 20 Apr, 2010 1 commit
  9. 18 Apr, 2010 1 commit
  10. 13 Apr, 2010 1 commit
    • Tristan Van Berkom's avatar
      Mega commit to change ->get_desired_size() for ->get_desired_width/height(). · d2c35ec6
      Tristan Van Berkom authored
      This commit changes gtk_extended_layout_get_desired_size() for
      per dimension variants. Furthermore this commit reverts the actions
      done in size-groups for now as it needs a different approach.
      
      The natural width/height parameters added to aux_info have been changed
      for a per width cache for heights and a per height cache for widths.
      
      gtk-demo is still working, currently sizegroups are not taken
      into account as mentioned above - size groups need to be alerted both
      when the widths and heights are updated independantly and then that
      information needs to repropagate also to other extended layout implementors.
      d2c35ec6
  11. 11 Apr, 2010 1 commit
  12. 09 Apr, 2010 1 commit
    • Tristan Van Berkom's avatar
      Reimplemented GtkExtendedLayout on GtkBin · 73056e92
      Tristan Van Berkom authored
      Instead of implementing ->get_desired_size() on GtkBin, which
      cant really be done because border widths are in the domain of
      the concrete subclasses; here we implement only the get_height_for_width
      and get_width_for_height apis - GtkBin subclasses whom might have a
      variable border width depending on allocations need to write their
      own height-for-width implementations.
      73056e92
  13. 05 Apr, 2010 1 commit
  14. 04 Apr, 2010 5 commits
  15. 06 Mar, 2010 1 commit
  16. 01 Mar, 2010 1 commit
  17. 19 Dec, 2009 2 commits
  18. 16 Dec, 2009 1 commit
    • Colin Walters's avatar
      [introspection] Merge in Gtk-custom.c annotations · 6529c076
      Colin Walters authored
      The Gtk-custom.c file in gir-repository contained a number of
      introspection annotations.  Merge those into the GTK source files.
      
      Some documentation was moved from the tmpl/ files to accomodate
      the addition of annotations.
      6529c076
  19. 01 Jul, 2008 1 commit
  20. 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
  21. 22 Jun, 2008 1 commit
    • Johan Dahlin's avatar
      Include "config.h" instead of <config.h> Command used: find -name · d97cdbdf
      Johan Dahlin authored
      2008-06-21  Johan Dahlin  <jdahlin@async.com.br>
      
          * *.[ch]: Include "config.h" instead of <config.h>
          Command used:
          find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
          Rubberstamped by Mitch and Tim
      
      
      svn path=/trunk/; revision=20669
      d97cdbdf
  22. 07 Feb, 2008 1 commit
    • Michael Natterer's avatar
      gtk/gtkaction.c gtk/gtkassistant.c gtk/gtkbin.c gtk/gtkbox.c · d95069aa
      Michael Natterer authored
      2008-02-07  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkaction.c
      	* gtk/gtkassistant.c
      	* gtk/gtkbin.c
      	* gtk/gtkbox.c
      	* gtk/gtkcalendar.c
      	* gtk/gtkcellrenderercombo.c
      	* gtk/gtkcombobox.c
      	* gtk/gtkcombo.c
      	* gtk/gtkdrawingarea.c
      	* gtk/gtkentrycompletion.c
      	* gtk/gtkfixed.h
      	* gtk/gtkgamma.c
      	* gtk/gtkhpaned.c
      	* gtk/gtkiconview.c
      	* gtk/gtkitem.c
      	* gtk/gtkitemfactory.c: remove g_return_if_fail() from private
      	functions and virtual function implementations.
      
      
      svn path=/trunk/; revision=19491
      d95069aa
  23. 14 May, 2006 1 commit
  24. 02 May, 2006 1 commit
  25. 01 Sep, 2005 1 commit
    • Matthias Clasen's avatar
      Intern some more strings. · 94eec042
      Matthias Clasen authored
      2005-09-01  Matthias Clasen  <mclasen@redhat.com>
      
              * gdk/*.c: Intern some more strings.
              * gtk/gtkintl.h:
              * gtk/*.c: Define an I_() macro and use it instead of the
              bulky g_intern_static_string().
      94eec042
  26. 31 Aug, 2005 1 commit
    • Matthias Clasen's avatar
      Intern type names in code generated by glib-mkenums, too. · c09cc893
      Matthias Clasen authored
      2005-08-31  Matthias Clasen  <mclasen@redhat.com>
      
      	* gdk/Makefile.am:
      	* gtk/Makefile.am: Intern type names in code generated by
      	glib-mkenums, too.
      
      	* gtk/*.c:
      	* gdk/x11/*.c:
      	* gdk/*.c: Intern type names before registering the type to avoid
      	unnecessary copies.
      c09cc893
  27. 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
  28. 09 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      Add hidden aliases for exported symbols which are used internally in order · 3612aee5
      Matthias Clasen authored
      Mon Aug  9 12:48:04 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Add hidden aliases for exported symbols which are
      	used internally in order to get rid of many PLT
      	entries.  (#145519, Arjan van de Ven)
      
      	* gtk/Makefile.am: Add rules to generate gtk.def and
      	from gtk.symbols, and make make check check the abi
      	with abicheck.sh.
      	(gtk_private_h_sources): Add gtkinternals.h
      	(gtk_built_private_headers): Add gtkalias.h
      	(gtk_extra_sources): Add gtk.symbols
      	(EXTRA_DIST): Add makegtkalias.pl and abicheck.sh
      
      	* gtk/gtk.symbols: New file. Definition of the GTK+ ABI.
      	The file can be processed by cpp to filter out certain
      	subsets of symbols.
      
      	* gtk/abicheck.sh: New file. Script to check the actually
      	symbols exported from libgtk-x11.2.0.so against the symbols
      	found in gtk.symbols.
      
      	* gtk/makegtkalias.pl: New file. Perl script to generate the
      	header containing the alias definitions for internally used
      	exported symbols from a list of symbols.
      
      	* gtk/gtkinternals.h: New file. An uninstalled header listing
      	symbols which must be exported for some reason and do not appear
      	in any other header.
      
      	* gtk/*.c: Include gtkalias.h
      3612aee5
  29. 06 Mar, 2004 1 commit
  30. 04 Oct, 2002 1 commit
    • Manish Singh's avatar
      Deprecation cleanup · 2ffa58f1
      Manish Singh authored
      Fri Oct  4 16:48:27 2002  Manish Singh  <yosh@gimp.org>
      
              * gtkaspectframe.[ch] gtkbin.[ch] gtkframe.[ch] gtkhruler.[ch]
              gtkruler.[ch] gtkvruler.[ch]: Deprecation cleanup
      2ffa58f1
  31. 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
  32. 30 Jan, 2002 1 commit
  33. 06 Sep, 2001 1 commit
    • Alexander Larsson's avatar
      Use GtkType/GType instead of uint. · bf882d44
      Alexander Larsson authored
      2001-09-06  Alex Larsson  <alexl@redhat.com>
      
      	* gtk/gtkbin.c:
      	* gtk/gtkfontsel.c:
      	* gtk/gtkspinbutton.c:
      	* gtk/gtktipsquery.c:
      	Use GtkType/GType instead of uint.
      bf882d44
  34. 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