user: allow ask dialogs without "decline" button
commit40f7201405599c0ec8c1b616608f1daca7f602e2
authorJakub Adam <jakub.adam@ktknet.cz>
Sat, 13 Oct 2018 20:54:41 +0000 (13 22:54 +0200)
committerJakub Adam <jakub.adam@ktknet.cz>
Sat, 13 Oct 2018 21:42:11 +0000 (13 23:42 +0200)
tree4090f5a7d7965c8f2ac238cde0991361ac2e3efd
parentf5dfa63e7f5ca84dc90a892f427a22715bf040c8
user: allow ask dialogs without "decline" button

When NULL decline label is passed to sipe_user_ask(), the respective
button will not be shown in the dialog window.

Since the accept button ID now changes depending on the overall number
of buttons, we use different callbacks for accept and decline in purple
backend.
src/api/sipe-backend.h
src/purple/purple-user.c