1. 03 Aug, 2017 1 commit
  2. 16 Jun, 2014 1 commit
  3. 14 Jun, 2014 1 commit
  4. 19 Feb, 2014 1 commit
  5. 09 Jul, 2013 1 commit
  6. 22 Apr, 2013 2 commits
  7. 05 Mar, 2013 1 commit
  8. 11 Nov, 2012 2 commits
  9. 09 Nov, 2012 2 commits
    • Jasper St. Pierre's avatar
      gtkbin: Remove the silliest code on earth · f4438a1f
      Jasper St. Pierre authored
      What is this bin doing with all these crazy deltas? Company does:
      
      <Company> that can safely be removed
      <Company> in general, code that isn't obvious can either be understood
      <Company> with a bit of thinking or it can be removed
      <Company> if in doubt, go for the 2nd of those :)
      
      Most GtkBin subclasses override this strange garbage anyway, so it's
      not like this code is ever *run*, per se. Just make it proxy directly
      to the child, and hope nothing goes wrong.
      f4438a1f
    • Jasper St. Pierre's avatar
      gtkbin: Complete more of a base implementation for GtkBin subclasses · 3563d11f
      Jasper St. Pierre authored
      Implement get_preferred_width, get_preferred_height, and size_allocate.
      This allows GtkBin subclasses to be quick and easy, without the
      author doing the subclassing to have to do much work.
      3563d11f
  10. 27 Feb, 2012 1 commit
  11. 25 Mar, 2011 1 commit
  12. 29 Dec, 2010 1 commit
  13. 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
  14. 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
  15. 27 Aug, 2010 1 commit
  16. 13 Jul, 2010 2 commits
  17. 10 Jul, 2010 1 commit
  18. 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
  19. 21 Apr, 2010 1 commit
  20. 20 Apr, 2010 1 commit
  21. 18 Apr, 2010 1 commit
  22. 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
  23. 11 Apr, 2010 1 commit
  24. 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
  25. 05 Apr, 2010 1 commit
  26. 04 Apr, 2010 5 commits
  27. 06 Mar, 2010 1 commit
  28. 01 Mar, 2010 1 commit
  29. 19 Dec, 2009 2 commits
  30. 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
  31. 01 Jul, 2008 1 commit