Commits on Jun 30, 2016
  1. Merge pull request #1 from iainx/fix-41657

    [Gdk] Don't crash when turning screen off
    committed on GitHub Jun 30, 2016
  2. @iainx

    [Gdk] Don't crash when turning screen off

    Check the length of characters in the NSFlagsChanged event before accessing
    the individual characters because cmd+alt+power key doesn't have any characters
    so an ObjC will throw an exception.
    Fixes BXC #41657
    iainx committed Jun 30, 2016
Commits on Jan 3, 2016
  1. @sevoku
  2. Fix undo key bindings for NSViews outside of GtkNSView

    Move support for undo out of GtkNSView and directly into gdk-quartz's
    event processing. This allows undo/redo to work with NSTextViews that
    are inside the GdkQuartzWindow but which are not embedded inside a
    GtkNSView (for example, the search entry in Xamarin Studio)
    committed Jan 3, 2016
  3. Add gtk_ns_view_get_nsview()

    committed Jan 3, 2016
  4. Fix issues with GtkNSView focus

    GtkNSView should only unset the first responder if either it is our
    embedded view or if our toplevel window is no longer focused.
    This fixes an issue where in some situations the user needed to
    click a native text entry twice in order to focus it.
    committed Jan 3, 2016
  5. Check superview hierarchy if they respond to isGtkView

    When determining if the event is destined for an NSView outside our
    view hierarchy, we can't just check if it's not a gtkview, we need
    to also ensure that none of its superviews are gtkviews.
    committed Jan 3, 2016
  6. [GtkNSView] Flip command mask between MOD1 and MOD2

    Flip them depending on gdk_quartz_get_fix_modifiers().
    This is to fix Cmd keys in native embedded NSViews.
    committed Jan 3, 2016
  7. Disable the eyedropper button in the color select dialog.

    This feature has never worked on Mac and it's not a trivial fix
    so let's disable it until we can implement a native Mac version.
    committed Jan 3, 2016
  8. Gtk embedding in an NSView.

    committed Jan 3, 2016
  9. Track and remove timeout for GtkNSView

    This is a followup to the previous patch. GtkNSView now tracks its
    timeout and removes it, if it still exists, during unrealize. This
    fixes an issue caused by my last patch where if we destroy the
    widget quickly after creating it then it would get stuck.
    committed Jan 3, 2016
  10. Defer map for GtkNSView

    This is an attempt to solve an issue in GtkNSView that occurs in
    Xamarin Studio when we try to use an animating NSProgressIndicator.
    The error only occurred if the indicator was in animating mode,
    and it seems likely to be a threading race condition somewhere.
    This patch does two things. I've found the issue to be reproducible
    if we do one of these things but not the other, but I have not been
    able to reproduce it with both of these:
      1. Slightly defer the mapping of the widget
      2. Lock the view during clip_to_parent_viewports()
    committed Jan 3, 2016
  11. Don't emit "commit" while discarding the preedit string.

    Otherwise we can end up in an infinite loop.
    While output results, defer preedit-changed and commit signals until
    the end. In the case of preedit it just means we sometimes were
    emitting the same signal twice in a row, but in the case of commit
    it was possible for the marked string to change while we were still
    working on it here, causing a potential double-free.
    committed Jan 3, 2016
  12. Check if the grab toplevel is destroyed.

    Fixes a hang in the Xamarin Studio storyboard designer.
    committed Jan 3, 2016
  13. Support more standard keyboard shortcuts in dialogs

    This adds the following keybindings:
     - Ctrl+d to delete the character following the cursor,
     - Ctrl+k to delete from the cursor until the end of the paragraph,
     - Ctrl+p as arrow up,
     - Ctrl+n as arrow down.
    Kristian Rietveld committed with Jan 3, 2016
  14. @jassmith
  15. @mitchfoo
  16. Modifier keys changes for Quartz

    I think this is based on 32b70a5
    committed Jan 3, 2016
  17. @ashie

    Quartz: translate JIS Hiragana & Eisu keys.

    Since UCKeyTranslate() converts these keys to Space key unexpectedly,
    applications can't distinguish these keys by keysyms.
    To solve it, this fix translates these keys by same way with function
    keys & keypad keys.
    ashie committed with Jan 3, 2016
  18. Iconfactory: round up scale factor

    When finding matching icon sources or cached icons, any scale
    factor greater than 1.0 should be treated as 2.0. This matters
    on Windows where scales can be values like 1.25 or 1.5.
    committed Jan 3, 2016
  19. Adjust overlay scrollbar colors based on the background color

    Use the brightness of the GtkScrolledWindow background to
    determine what color to use.
    committed Jan 3, 2016