1. 23 Jun, 2020 1 commit
    • Evangelos Ribeiro Tzaras's avatar
      Make CallsContacts a singleton · 0f0d10e3
      Evangelos Ribeiro Tzaras authored
      Since passing a CallsContacts pointer down to every class it needs, started to
      become laborous - especially since the intermediates classes don't need
      the reference themselves - it was made a singleton
      
      * src/calls-contacts.c: Added calls_contacts_get_default () function and
        removed calls_contacts_new ()
      * src/calls-contacts.h: Added _get_default () prototype and removed the
        _new () prototype
      * src/calls-application.c: Use calls_contacts_get_default () now
      * src/calls-history-box.c: Removed self->contacts completely
      * src/calls-history-box.h: Got rid of CallsContacts argument in _new()
      * src/calls-main-window.c: Removed self->contacts completely
      * src/calls-main-window.h: Got rid of CallsContacts argument in _new()
      * src/calls-call-record-row.c: Use calls_contacts_get_default () now
      * src/calls-call-record-row.h: Got rid of CallsContacts argument in
        _new()
      * src/calls-call-holder.c: Use calls_contacts_get_default () now
      * src/calls-call-holder.h: Got rid of CallsContacts argument in _new()
      * src/calls-call-window.c: Removed self->contacts completely
      * src/calls-call-window.h: Got rid of CallsContacts argument in _new()
      * src/calls-notifier.c: Use calls_contacts_get_default () now
      * src/calls-notifier.h: Got rid of CallsContacts argument in _new()
      0f0d10e3
  2. 10 Jun, 2020 2 commits
  3. 09 Jun, 2020 1 commit
  4. 05 Jun, 2020 5 commits
  5. 31 May, 2020 2 commits
  6. 29 May, 2020 1 commit
  7. 15 May, 2020 1 commit
  8. 31 Mar, 2020 3 commits
  9. 30 Mar, 2020 2 commits
  10. 27 Mar, 2020 7 commits
  11. 19 Mar, 2020 2 commits
  12. 18 Mar, 2020 4 commits
  13. 11 Mar, 2020 2 commits
  14. 26 Feb, 2020 1 commit
    • Bob Ham's avatar
      application: Add "--dial" command-line option · e7ef61e1
      Bob Ham authored
      This option allows the specification of a much broader set of numbers
      that tel: URIs, which are limited to global phone numbers in
      international form and prohibit local numbers and other useful strings
      like "*100#".
      
      This functionality is implemented as a command-line option rather than
      a "dial:" or "callto:" URI scheme for the same reason given in RFC
      3966, section 7.3:
      
        '"Callto" was discarded because URI schemes locate a resource and do
        not specify an action to be taken.'
      e7ef61e1
  15. 19 Feb, 2020 1 commit
  16. 28 Jan, 2020 1 commit
    • Julian Sparber's avatar
      NewCallBox+CallDisplay: UI facelift · 06481155
      Julian Sparber authored
      This adds a style.css file to allow the use of custom css
      
      Fixes #115:
      - Making the phone number larger
      - Moving the delete button to the bottom
      - Rounding all buttons, and making the grid buttons circular
      - Making the call button a bit less wide
      06481155
  17. 27 Jan, 2020 1 commit
    • Julian Sparber's avatar
      Replace HdyDialer with HdyKeypad and bump libhandy to 0.0.12 · 497fe072
      Julian Sparber authored
      HdyDialer was deprecated and therefore is replaced with HdyKeypad.
      HdyDialer used a `gchr *` to store the entered phone number. On every
      button press the entire text of the display entry was replaced with the new
      string, which messed up selection and cursor position.
      HdyKeypad connects directly to a GtkEntry and inserts each
      button press the same way as a keyboard stroke would do.
      
      In the case of the `call display` entry every new digit is appended to the
      end of the input and therefore it also moves the cursor to the end of the
      entry. Instead of making the Entry not editable, only the events which
      would remove text form the entry are blocked, via the `delete-text`
      signal. And the signal `insert-text` is used to block unwanted chars
      from beeing inserted.
      
      Same as for the `call display` entry also the `new call box` entry is
      made editable and the signal `insert-text` is used to block unwanted
      chars. All other user action possible on a entry arn't blocked
      e.g. repositioning the cursor.
      
      The advantage of making the Entry editable is that we can show
      the cursor position.
      It also allows the user to select the position where new digits are
      inserted in the `new call box`.
      On a button press the focus is set to the Entry to give the correct
      feedback to the user.
      
      This centers the text on the entry, as required by the design.
      This also makes the delete button remove only one char at the time, to
      move closer to the desired UX.
      Related: #58
      
      Fixes: #82
      497fe072
  18. 20 Jan, 2020 1 commit
  19. 10 Dec, 2019 2 commits
    • Bob Ham's avatar
      Add initial avatar support · cc41df44
      Bob Ham authored
      We change the code for dealing with contacts quite significantly,
      adding a new class, CallsBestMatch, in order to encapsulate a lot of
      the functionality that was in CallsCallRecordRow.
      
      At present avatars are not rounded and there are no auto-generated
      avatars for contacts with no avatar.  This work is awaiting discussion
      of Apps_Issues#164.
      cc41df44
    • Bob Ham's avatar
      call-display: Add ugly, ugly hacks to enable speakerphone/mute buttons · 40b87937
      Bob Ham authored
      We call pactl synchronously in order to (1) change the sink/source
      port for speakerphone and (2) mute the sink/source for mute.  The
      sink/source names are hardcoded.  This is all ugly and needs to not
      exist.  This functionality should be in Wys, accessed over D-Bus, or
      in some other, as-yet undefined component.
      40b87937