1. 12 Jul, 2019 2 commits
  2. 05 Jul, 2019 1 commit
  3. 02 Jul, 2019 5 commits
    • Florian Müllner's avatar
      style: Stop using braces for single-line arrow functions · 14d7897a
      Florian Müllner authored
      Braces are optional for single-line arrow functions, but there's a
      subtle difference:
      Without braces, the expression is implicitly used as return value; with
      braces, the function returns nothing unless there's an explicit return.
      
      We currently reflect that in our style by only omitting braces when the
      function is expected to have a return value, but that's not very obvious,
      not an important differentiation to make, and not easy to express in an
      automatic rule.
      
      So just omit braces consistently as mandated by gjs' coding style.
      
      !608
      14d7897a
    • Florian Müllner's avatar
      style: Fix indentation errors · 1398aa65
      Florian Müllner authored
      While we have some style inconsistencies - mostly regarding split lines,
      i.e. aligning to the first arguments vs. a four-space indent - there are
      a couple of places where the spacing is simply wrong. Fix those.
      
      Spotted by eslint.
      
      !608
      1398aa65
    • Florian Müllner's avatar
      cleanup: Use consistent switch indentation · 6ed5bc2f
      Florian Müllner authored
      We are currently inconsistent on whether case labels share the same
      indentation level as the corresponding switch statement or not. gjs
      goes with the default of no additional indentation, so go along with
      that.
      
      !608
      6ed5bc2f
    • Florian Müllner's avatar
      cleanup: Use spaces for indentation · 5ec4c2e4
      Florian Müllner authored
      Our indentation style has always mandated spaces, but over the years
      some tabs sneaked in. Fix up those places.
      
      !608
      5ec4c2e4
    • Florian Müllner's avatar
      dwellClick: Reindent modes map · 8c28f9a7
      Florian Müllner authored
      Using multiple spaces after property names in order to align the
      values isn't something we do elsewhere.
      
      Instead, align the values by using a fixed 4-space indent as preferred
      by gjs nowadays.
      
      !608
      8c28f9a7
  4. 01 Jul, 2019 10 commits
  5. 29 Jun, 2019 1 commit
  6. 21 Jun, 2019 2 commits
  7. 06 Jun, 2019 1 commit
    • Olivier Fourdan's avatar
      accessibility: Add pointer accessibility support · 5ace4682
      Olivier Fourdan authored
      Adds the UI part for the pointer accessibility features.
      
      The various timeouts running are notified using a pie-timer showing
      under the pointer.
      
      For dwell-click type selection, we use a drop-down menu. Users can
      use the dwell-click to select the next type of dwell click to be
      emitted.
      
      !474
      5ace4682
  8. 24 May, 2019 1 commit
    • Marco Trevisan's avatar
      modalDialog: Inherit from St.Widget · d25bcbc3
      Marco Trevisan authored
      Make the dialog a widget itself, removing the `_group` property used for
      handling the actor.
      
      Update all the inherited classes to be also GObject implementations, moving all
      the signals to proper object ones.
      
      !55
      d25bcbc3
  9. 22 May, 2019 1 commit
  10. 15 May, 2019 3 commits
  11. 07 May, 2019 1 commit
    • Fabrice Bellet's avatar
      network: Handle interface name changes · d9bfa16f
      Fabrice Bellet authored
      The interface name when a device is added may not be the final one. For
      example when using USB tethering, it will first appear as 'usb0' before
      being renamed to something like 'enp0s20f0u1' depending on the port the
      phone is plugged in.
      
      As a result, we will ignore the new interface name in that case and fail
      to associate the correct connection with the device: Instead of the
      correct "USB Ethernet" (or user-customized name), it will show up as
      "Ethernet".
      
      Fix this by updating names and connections when a device's interface
      property changes.
      
      !534
      d9bfa16f
  12. 27 Apr, 2019 1 commit
  13. 26 Apr, 2019 1 commit
  14. 17 Apr, 2019 1 commit
  15. 27 Mar, 2019 1 commit
    • Florian Müllner's avatar
      network: Catch errors when reading devices · 4fa5d701
      Florian Müllner authored
      NetworkManager added support for a new device - NMDeviceWifiP2P - but
      did not add the corresponding enum value in NMDeviceType. The return
      value for nm_device_get_device_type() is therefore "illegal" for the
      newly added device, and gjs throws an exception.
      
      This should ultimately be fixed in libnm, but as errors when adding
      one device shouldn't interfere with adding any other devices, catching
      exception is a good idea anyway, so do just that.
      
      #1023
      4fa5d701
  16. 21 Mar, 2019 1 commit
    • Florian Müllner's avatar
      aggregateMenu: Include action buttons in width computation again · 0089143d
      Florian Müllner authored
      Commit 1b169655 removed the system indicator from the list of children
      that are considered for the overall menu width, because we do want the
      log-out submenu to adapt to the available width.
      
      However as a side effect, action buttons no longer contribute to the
      width either, so if extensions add additional buttons, the menu is
      likely to overflow.
      
      Avoid this by only adding the button group to the list of size children.
      
      #1094
      0089143d
  17. 02 Mar, 2019 1 commit
    • Florian Müllner's avatar
      network: Don't destroy wireless dialog twice · 5f2bd706
      Florian Müllner authored
      The dialog doesn't change the `destroyOnClose` property from its default,
      so it is already destroyed automatically on close. So if we also destroy
      it explicitly, we end up (rightfully) with one of gjs' infamous "invalid
      access" warnings.
      
      !430
      5f2bd706
  18. 10 Feb, 2019 1 commit
  19. 09 Feb, 2019 2 commits
  20. 04 Feb, 2019 1 commit
  21. 31 Jan, 2019 1 commit
    • Florian Müllner's avatar
      a11y: Don't set WM theme · c47e672e
      Florian Müllner authored
      We've been using GTK to draw server-side decorations according to the
      GTK theme for a long time, so no need to configure the HighContrast
      theme for a setting we don't use.
      
      !377
      c47e672e
  22. 30 Jan, 2019 1 commit
    • Carlos Garnacho's avatar
      st: Add StPolicyType enum · a977c138
      Carlos Garnacho authored
      In order to replace GTK+'s GtkPolicyType. It's bit-compatible with it, too.
      All callers have been updated to use it.
      
      This is a purely accessory change in terms of X11 Display usage cleanup,
      but helps see better what is left.
      
      !317
      a977c138