1. 08 Jul, 2016 1 commit
  2. 08 Apr, 2016 1 commit
  3. 11 Mar, 2016 1 commit
  4. 31 Jul, 2015 1 commit
  5. 05 Aug, 2014 1 commit
    • LRN's avatar
      Make sure native W32 print dialog uses visual styles · 0d02cc82
      LRN authored
      For that to happen the libgtk3 is embedded with a manifest that requests
      common controls library 6.x, and GTK lazily calls InitCommonControlsEx()
      to initialize those. Then this manifest is used to temporarily override
      the process activation contest when loading comdlg32 (which contains the
      code for the print dialog), ensuring that it too depends on common
      controls 6.x, even if the application that uses GTK does not.
  6. 01 May, 2013 1 commit
  7. 08 Apr, 2013 1 commit
    • Tristan Van Berkom's avatar
      Work around access to global resources without calling gtk_init() · 4ec6d600
      Tristan Van Berkom authored
      Some utilities such as GIR and gtk-doc, initialize class vtables without
      initializing GTK+, with composite templates accessing resources this
      causes a hand full of unneeded warnings.
      The workaround for now is the use a private function _gtk_ensure_resources()
      which is both called while initializing GTK+, and at the beginning of
      gtk_widget_class_set_template_from_resource() (the private function
      ensures that the resource will only ever be registered GOnce).
  8. 04 Dec, 2012 1 commit
  9. 03 Sep, 2012 1 commit
    • Carlos Garnacho's avatar
      Add GtkTextHandle · 1f7e375c
      Carlos Garnacho authored
      This is a helper object to allow text widgets to implement
      text selection on touch devices. It allows for both cursor
      placement and text selection, displaying draggable handles
      on/around the cursor and selection bound positions.
      Currently, this is private to GTK+, and only available to
      GtkEntry and GtkTextView.
  10. 01 Mar, 2012 1 commit
    • Carlos Garcia Campos's avatar
      gtk: Add a way to do event capture · 9f4bfff1
      Carlos Garcia Campos authored
      This patch adds a capture phase to GTK+'s event propagation
      model. Events are first propagated from the toplevel (or the
      grab widget, if a grab is in place) down to the target widget
       and then back up. The second phase is using the existing
      ::event signal, the new capture phase is using a private
      API instead of a public signal for now.
      This mechanism can be used in many places where we currently
      have to prevent child widgets from getting events by putting
      an input-only window over them. It will also be used to implement
      kinetic scrolling in subsequent patches.
      We automatically request more motion events in behalf of
      the original widget if it listens to motion hints. So
      the capturing widget doesn't need to handle such
      implementation details.
      We are not making event capture part of the public API for 3.4,
      which is why there is no ::captured-event signal.
  11. 27 Feb, 2012 1 commit
  12. 25 Nov, 2011 1 commit
  13. 18 Nov, 2011 2 commits
    • Michael Natterer's avatar
      Turn the private #define for the group-shifting modifier into API · 9c79f9f8
      Michael Natterer authored
      Add GDK_MODIFIER_INTENT_SHIFT_GROUP to enum GdkModifierIntent
      and handle it in gdk_keymap_get_modifier_mask(). Add an X11
      impl of the method and return keymap_x11->group_switch_mask.
      Return 0 from the default impl because we don't know.
    • Michael Natterer's avatar
      Bug 663856 - Make option-foo accelerators use the right symbol · 1c8481a6
      Michael Natterer authored
      If the keyboard group shifting modifier is *also* a normal
      accelerator modifier, we need to special case it when calling
      gdk_keymap_translate_keyboard_state(), so we get the right
      key symbol for accelerators (for example we want Option-O,
      not Option-Ø displayed in menu items). This patch should only
      affect quartz where the Alt key both shifts the group and can
      be used as accel modifier, and not X11 or Win32 where AltGr
      is not used for accelerators.
      - fix quartz' gdk_keymap_translate_keyboard_state() to return
        the right consumed_modifiers
      - add _gtk_translate_keyboard_accel_state() which does the
        special casing
      - use it everywhere instead of gdk_keymap_translate_keyboard_state()
  14. 02 Nov, 2011 1 commit
  15. 22 Oct, 2011 1 commit
    • Michael Natterer's avatar
      gtk: clean up the private horror · 2688ccdb
      Michael Natterer authored
      - add gtkmodulesprivate.h and move stuff there from gtkprivate.h
      - add gtkprivate.c and move stuff there from gtkmain.c
      - add gtkwin32.c and move stuff there from gtkmain.c
      - don't redefine GTK_DATADIR and friends in gtkprivate.h
      - have _gtk_get_datadir() and friends on all platforms
      - remove the horrid hacks where gtkprivate.h can't be included,
        or must be included later due to redefinition of the compile-time
  16. 08 Oct, 2011 1 commit
  17. 07 Oct, 2011 1 commit
    • Michael Natterer's avatar
      gtk: remove the private GTK_DEFAULT_ACCEL_MOD_MASK define · 5327034c
      Michael Natterer authored
      and finish the port to using the new modifier abstraction API.
      This commit has some evilness, it uses the default display for
      the lack of a widget context, and the change to gtkstock.c
      is very ugly, but I can't think of anything better given
      GtkStockItem needs an accel mask instead of a proper accel
  18. 27 Sep, 2011 3 commits
  19. 26 Sep, 2011 3 commits
  20. 04 Jan, 2011 1 commit
  21. 20 Oct, 2010 2 commits
  22. 11 Oct, 2010 1 commit
    • 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.
      * Move the GtkSizeGroup private functions to a new private header
      * 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.
      * 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.
      * 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.
  23. 27 Sep, 2010 1 commit
  24. 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_size_request_get_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".
  25. 21 Sep, 2010 1 commit
    • Tristan Van Berkom's avatar
      Reduced overall SizeRequestCache size · ca251cf1
      Tristan Van Berkom authored
      This patch changes the 'age' counting previous approach taken
      verbatim from clutter and changes it for a counter of validated
      caches and an index to the last cached value which we use to
      round-robin through the cache if ever a widget is requested
      for more than 3 contextual sizes (cache is reduced by 3 * sizeof (int)
      per widget private data).
  26. 09 Sep, 2010 1 commit
    • Tristan Van Berkom's avatar
      Moved GtkSizeRequest cache to GtkWidget->priv · 843be485
      Tristan Van Berkom authored
      Now that we have a private data installed directly on
      the GtkWidget instance it makes no sense to cache the size
      requests on widget qdata. This change will generally make
      GTK+ memory less fragmented as well as significantly speed
      up the size request process.
  27. 08 Sep, 2010 1 commit
    • Tristan Van Berkom's avatar
      Completely removed requisition cache from GtkWidget instance structure. · 99340074
      Tristan Van Berkom authored
      Since we have a new mechanism for requesting sizes: GtkSizeRequestIface;
      it makes no sense to maintain this cache on the GtkWidget structure...
      removing the requisition cache however does not break the old "size-request"
      signal which is there for backwards compatability reasons.
      In any case widget->requisition should not have been accessed,
      gtk_widget_get_child_requisition() would have been the correct way
      to consult the cache.
      This commit also deprecates the newly added gtk_widget_get_requisition()
      API and makes it fallback on gtk_size_request_get_size().
  28. 25 May, 2010 1 commit
  29. 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.
  30. 25 Oct, 2009 1 commit
  31. 01 Aug, 2008 1 commit
    • Cody Russell's avatar
      Bug 56070 – Can't click button after setting it sensitive. · 4e3c97b3
      Cody Russell authored
      2008-07-31  Cody Russell  <bratsche@gnome.org>
              Bug 56070 – Can't click button after setting it sensitive.
              * gtk/gtkwidget.[ch] 
              * gtk/gtkwindow.c
              * gtk/gtkmain.c
              * gtk/gtkbutton.c
              * gtk/gtkprivate.h
              * gdk/gdkevents.h: Synthesize crossing events events where necessary.
              * gtk/tests/crossingevents.c: Add unit tests for crossing events.
              Big thanks to Ed Catmur, Matthias Clasen, and everyone else who
              has worked on and helped out with this.
      svn path=/trunk/; revision=20924
  32. 01 Jul, 2008 1 commit
  33. 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
  34. 24 Jun, 2008 1 commit
    • Michael Natterer's avatar
      gtk/gtkassistant.h gtk/gtkcellrenderer.h gtk/gtkfilechooserentry.h · a13f698b
      Michael Natterer authored
      2008-06-24  Michael Natterer  <mitch@imendio.com>
      	* gtk/gtkassistant.h
      	* gtk/gtkcellrenderer.h
      	* gtk/gtkfilechooserentry.h
      	* gtk/gtkprivate.h
      	* gtk/gtktooltip.h
      	* gtk/gtktreeview.h
      	* gtk/gtkwindow.h: no need to include gtkwidget.h or gtkobject.h
      	if there is any other widget included, they all have to include
      	their respective parent classes (the is-a relation works for
      	includes too).
      svn path=/trunk/; revision=20679