Commit graph

91 commits

Author SHA1 Message Date
Debarshi Ray
2cb0f5e3a3 online-accounts: Let goa_provider_show_account create the full UI
It is not ideal to have the UI split across a semi-stable,
cross-module interface boundary. Non-trivial changes to the UI require
changes to the goa_provider_show_account interface. In fact, we were
already not using it the way it was originally intended to be.
Moreover, it prevents us from having a sufficiently different UI for
certain account types.

Instead, let's just pass a vertical GtkBox to the GoaProvider and let
it fill it up whichever way it wants to.

Bump required GOA version for the new goa_provider_show_account
behaviour.

https://bugzilla.gnome.org/show_bug.cgi?id=769213
2016-08-14 12:18:52 +02:00
Georges Basile Stavracas Neto
2777fd583d panels: use the new categories
Following the previous patch, this patch adds the new alternative
categories to the panels' Desktop files. These alternative categories
are only relevant for the alternative Shell, and do not break the
current Shell in any way.

https://bugzilla.gnome.org/show_bug.cgi?id=767301
2016-06-14 12:16:43 -03:00
Debarshi Ray
9067983174 online-accounts: Add a Calendar group
This will be useful when we add a CalDAV provider.

https://bugzilla.gnome.org/show_bug.cgi?id=767401
2016-06-09 15:53:25 +02:00
Debarshi Ray
0129d8a6ae online-accounts: Don't use deprecated GoaProviderGroup API
https://bugzilla.gnome.org/show_bug.cgi?id=767401
2016-06-09 15:53:25 +02:00
Bastien Nocera
5c10ce45b8 panels: Fix translators comments being truncated
Commit b3be076 added soft hyphens along with a comment for translators
to use those soft hyphens. Except that gettext would only grab the one
line out of the four we wrote for translators to read. Put them all on
the same line so that gettext actually extracts those.

https://bugzilla.gnome.org/show_bug.cgi?id=765778
2016-04-28 23:38:00 +02:00
Bastien Nocera
b3be07609a panels: Fix truncated panel names for larger fonts
Note that this fix will not automatically fix translations, which will
need to add soft-hyphens (U+00AD) to their translations themselves, and
will not fix larger fonts for which the split up syllables end up
being bigger than the maximum text width.

It's the best we can do without redesigning the Settings shell, which is
already something planned.

https://bugzilla.gnome.org/show_bug.cgi?id=647087#c13
2016-04-07 16:06:35 +02:00
Debarshi Ray
cc144a0707 online-accounts: Fix the add account dialog's size with newer GTK+
We should be pairing gtk_window_get_size with
gtk_window_set_default_size to avoid inconsistencies between the size
reading and setting code. eg., in recent GTK+ versions,
gtk_window_get_size and gtk_widget_set_size_request differ in their
interpretation of the CSD chrome.

However, gtk_window_set_default_size didn't work with non-resizable
GtkWindows, until now.

https://bugzilla.gnome.org/show_bug.cgi?id=762548
2016-03-09 13:47:27 +01:00
Christophe Fergeau
d289aa84e7 online-accounts: Remove unused private member
This fixes this leak:

==21491== 384 (40 direct, 344 indirect) bytes in 1 blocks are definitely lost in loss record 18,518 of 19,643
==21491==    at 0x8792D3A: g_type_create_instance (gtype.c:1848)
==21491==    by 0x8779AC5: g_object_new_internal (gobject.c:1774)
==21491==    by 0x8779FD4: g_object_newv (gobject.c:1921)
==21491==    by 0x8779676: g_object_new (gobject.c:1614)
==21491==    by 0x747DFFC: gtk_list_store_new (gtkliststore.c:424)
==21491==    by 0x49C781: goa_panel_add_account_dialog_init (cc-online-accounts-add-account-dialog.c:300)
==21491==    by 0x8792E7D: g_type_create_instance (gtype.c:1870)
==21491==    by 0x8779AC5: g_object_new_internal (gobject.c:1774)
==21491==    by 0x877A71A: g_object_new_valist (gobject.c:2033)
==21491==    by 0x87796C5: g_object_new (gobject.c:1617)
==21491==    by 0x49CC26: goa_panel_add_account_dialog_new (cc-online-accounts-add-account-dialog.c:380)
==21491==    by 0x49B162: get_all_providers_cb (cc-online-accounts-panel.c:701)
==21491==    by 0x8426107: g_simple_async_result_complete (gsimpleasyncresult.c:801)
==21491==    by 0x8426153: complete_in_idle_cb (gsimpleasyncresult.c:813)
==21491==    by 0x8A0C470: g_idle_dispatch (gmain.c:5397)
==21491==    by 0x8A09AB8: g_main_dispatch (gmain.c:3122)
==21491==    by 0x8A0A8FC: g_main_context_dispatch (gmain.c:3737)
==21491==    by 0x8A0AAE0: g_main_context_iterate (gmain.c:3808)
==21491==    by 0x8A0ABA4: g_main_context_iteration (gmain.c:3869)
==21491==    by 0x846EE55: g_application_run (gapplication.c:2311)
==21491==    by 0x44CA4B: main (main.c:57)

https://bugzilla.gnome.org/show_bug.cgi?id=756762
2015-10-19 11:19:17 +02:00
Christophe Fergeau
c84722248e shell: Revert "Let panels have their own commandline flags"
This reverts commit 31a8a99440.

This was meant for bgo#695885 which has stalled for a while, so this
feature has no in-tree user. This commit removes it for now, this can be
readded when users for it materialize.

https://bugzilla.gnome.org/show_bug.cgi?id=751597
2015-07-16 11:49:34 +02:00
Debarshi Ray
d45f093fbf online-accounts: Widen the accounts list
https://bugzilla.gnome.org/show_bug.cgi?id=746538
2015-04-13 15:05:40 +02:00
Bastien Nocera
cff4336032 online-accounts: Prevent the attention-needed icon from getting hidden
By making sure that the label inside each of the list items gets
only whatever space is left by the left and right-side icons.

https://bugzilla.gnome.org/show_bug.cgi?id=746538
2015-04-13 15:05:40 +02:00
Debarshi Ray
b24bfa8197 online-accounts: Disable the remove button for locked accounts
Bump required GOA version for the IsLocked property.

https://bugzilla.gnome.org/show_bug.cgi?id=737665
2015-04-13 14:19:59 +02:00
Debarshi Ray
7509af9d22 online-accounts: Don't scroll single entry lists
Create the scrolled window with vertical scrolling turned off. Turn it
on when there are more than one items in the list.

Note that the immediate parent of the list is a GtkViewport, so we
need to explicitly look for the GtkScrolledWindow.

https://bugzilla.gnome.org/show_bug.cgi?id=745584
2015-03-22 07:59:46 +01:00
Rui Matos
54227dc21e online-accounts: Fix deprecated API usage
https://bugzilla.gnome.org/show_bug.cgi?id=740986
2014-12-05 16:13:29 +01:00
Arnaud Bonatti
eb6a9c656a online-accounts: Increase the height of the panel
https://bugzilla.gnome.org/show_bug.cgi?id=732636
2014-07-22 11:58:33 +02:00
Christophe Fergeau
46b7358069 online-accounts: Use AM_CPPFLAGS rather than INCLUDES
This is deprecated in newer automake versions, and this causes warnings
with automake 1.14:
panels/printers/Makefile.am:3: warning: 'INCLUDES' is the old name for
AM_CPPFLAGS' (or '*_CPPFLAGS')

https://bugzilla.gnome.org/show_bug.cgi?id=732189
2014-06-25 12:32:29 +02:00
Bastien Nocera
87863ad3f0 online-accounts: Use new listbox helpers
https://bugzilla.gnome.org/show_bug.cgi?id=732106
2014-06-24 11:35:31 +02:00
Debarshi Ray
29bd627bb3 online-accounts: Use a header bar for the "Add Account" dialog
Even though this is an action dialog, and not a presentation dialog,
as defined in the HIG [1], there is no need for action buttons when
showing the initial list because the list is single-click.

[1] https://wiki.gnome.org/Design/HIG/Dialogs

https://bugzilla.gnome.org/show_bug.cgi?id=730080
2014-05-21 18:07:11 +02:00
Volker Sobek
f4dcf9984e online-accounts: Set max width in chars for label
Set a limit of 40 chars to the label explaining the panel when no
accounts have been added yet. This prevents the label from expanding
itself and the whole window arbitrarily.

https://bugzilla.gnome.org/show_bug.cgi?id=720188
2014-03-03 10:51:11 +01:00
Daniel Mustieles
2c5951819d Updated FSF's address 2014-01-29 11:27:38 +01:00
Bastien Nocera
a3c2f75f33 online-accounts: Mention Pocket in the keywords
https://bugzilla.gnome.org/show_bug.cgi?id=704564
2014-01-13 17:34:15 +01:00
Yosef Or Boczko
6e8a7e942f online-accounts: Use margin-start/end instead of margin-left/right
https://bugzilla.gnome.org/show_bug.cgi?id=712661
2013-11-19 22:30:42 +02:00
Jasper St. Pierre
dd52ac9417 Add NoDisplay to all gnome-control-center panel .desktop files
These aren't apps -- they're simply launchers for gnome-control-center.
They should not be shown as apps in the UI at all.

https://bugzilla.gnome.org/show_bug.cgi?id=712246
2013-11-15 08:44:53 -05:00
Rui Matos
9288bbbffc online-accounts: Remove unused toplevel window from .ui file
https://bugzilla.gnome.org/show_bug.cgi?id=708286
2013-10-01 10:05:03 +02:00
Debarshi Ray
52a3f0a99e online-accounts: Increase the height of the "Add Account" dialog
... to accommodate the list of Chat providers.

https://bugzilla.gnome.org/show_bug.cgi?id=707285
2013-09-03 13:27:38 +02:00
Bastien Nocera
a33998885b online-accounts: Fix missing ";" in keywords
https://bugzilla.gnome.org/show_bug.cgi?id=706668
2013-08-23 16:34:15 +02:00
Debarshi Ray
15b4c7a1bb online-accounts: Fix the use of GtkGrids for showing an account
This has the nice side-effect that rows in the different grids can no
longer get misaligned.

https://bugzilla.gnome.org/show_bug.cgi?id=706645
2013-08-23 16:19:51 +02:00
Baptiste Mille-Mathias
e4d84706b0 online-accounts: Add a bunch of keywords for missing providers
Add keywords for Kerberos, SMTP and IMAP to ease search.

https://bugzilla.gnome.org/show_bug.cgi?id=700809
2013-08-23 11:59:44 +02:00
Marco Barisione
82e6777cb1 online-accounts: use the async function to get all the providers
https://bugzilla.gnome.org/show_bug.cgi?id=706148
2013-08-22 15:27:40 +01:00
Marco Barisione
58669c7d4d online-accounts: make the list boxes in "Other" expand vertically
https://bugzilla.gnome.org/show_bug.cgi?id=706148
2013-08-22 15:27:40 +01:00
Marco Barisione
570611752e online-accounts: handle unbranded chat providers
https://bugzilla.gnome.org/show_bug.cgi?id=706148
2013-08-22 15:27:40 +01:00
Jonh Wendell
88bdd191a3 online-accounts: proper align the 'No accounts' label
use the default label align, "FILL", instead of "CENTER". this
fixes some issues in languages like zh_TW.

https://bugzilla.gnome.org/show_bug.cgi?id=705354
2013-08-02 13:38:31 -03:00
Yosef Or Boczko
a9f6f69f70 online-accounts: drop GtkStock
https://bugzilla.gnome.org/show_bug.cgi?id=704178
2013-07-19 15:57:12 +03:00
Alexander Larsson
0f77c516b8 online-accounts: Convert to GtkListBox
https://bugzilla.gnome.org/show_bug.cgi?id=702164
2013-07-02 16:19:09 +01:00
Matthias Clasen
16c2a04e5e Add context to some translated strings
We are using "Other" in various contexts that may require
different translations.
https://bugzilla.gnome.org/show_bug.cgi?id=697211
2013-05-18 18:05:18 -04:00
Bastien Nocera
01721eb622 online-accounts: Use GtkStack instead of GdStack 2013-04-24 11:11:55 +02:00
Emanuele Aina
8762e2f8dc online-accounts: Accept requests for account creation on DBus/cmdline
Also accepts additional data to pre-seed the GOA dialog, in particular
the provider name (eg. 'google') and provider-specific data encoded in a
a GVariant dict ('a{sv}') to eg. pass cookies from an existing web
session (this is only available from DBus activation).

It can be run from the command line as:
 $ gnome-control-center online-accounts add google

https://bugzilla.gnome.org/show_bug.cgi?id=694315
2013-04-23 18:32:59 +02:00
Baptiste Mille-Mathias
0e58ba28fc online-accounts: Add ownCloud to keywords
https://bugzilla.gnome.org/show_bug.cgi?id=698390
2013-04-22 10:12:18 +02:00
Emanuele Aina
31a8a99440 shell: Let panels have their own commandline flags
Add a class method to CcPanel to get a GOptionGroup which will be added
to the main commandline parser. This gives panels the chance to have
commandline "--flags" in addition to the already available parameters.

This changes changes the way parameters are passed to panels: the first
entry in the GVariant array is always the a{sv} dictionary of
commandline flags, followed by the remaining free-form arguments.

https://bugzilla.gnome.org/show_bug.cgi?id=696054
2013-04-03 18:09:11 +02:00
Emanuele Aina
9977bb200e shell: Use GVariant to convey panel arguments instead of a string array
By using a GVariant of type "av" we can potentially pass more structured
data to panels, which will become relevant with the ability to invoke
them by GAction-based DBus-activation introduced in the following patch.

https://bugzilla.gnome.org/show_bug.cgi?id=696054
2013-04-03 18:02:10 +02:00
Emanuele Aina
397181e5d2 online-accounts: Small cleanup about resource releasing
Use g_clear_object() as a NULL-safe g_object_unref() and
g_list_free_full() instead of explicitly iterating the list contents.

https://bugzilla.gnome.org/show_bug.cgi?id=695877
2013-04-03 16:05:17 +02:00
Cosimo Cecchi
bd3e9fa4f6 online-accounts: transition add account dialog pages
This got lost in the previous commit.
2013-03-19 12:50:33 -04:00
Debarshi Ray
48a9df92c3 online-accounts: Scroll the tree view when showing an account
https://bugzilla.gnome.org/show_bug.cgi?id=695171
2013-03-19 14:24:31 +01:00
Debarshi Ray
0641c2494b online-accounts: New "Other" providers page
This is meant to differentiate the popular branded providers from the
other less popular or more generic ones.

Implemented design:
https://live.gnome.org/Design/SystemSettings/OnlineAccounts

https://bugzilla.gnome.org/show_bug.cgi?id=688056
2013-03-05 11:28:20 +01:00
Debarshi Ray
271ae25c3a online-accounts: Colours of symbolics should match the text
https://bugzilla.gnome.org/show_bug.cgi?id=695171
2013-03-05 11:21:56 +01:00
Ebru Akagunduz
f2818405ab online-accounts: Nicer error states
https://bugzilla.gnome.org/show_bug.cgi?id=689645
2013-02-27 17:27:34 +01:00
Allan Day
58a1c4ba5e online-accounts: Update panel comments
Very few of the panel comments provide information that is very
useful. Update them to supplement the panel descriptions - this
will make the search results more helpful.

https://bugzilla.gnome.org/show_bug.cgi?id=694110
2013-02-19 10:41:43 +01:00
Debarshi Ray
d58d426d34 online-accounts: Use g_warning instead of goa_warning
goa_warning is meant for goa-daemon, and it does not really add any
value in this case. Switching to g_warning lets us cut down on the
number of symbols that are exported from libgoabackend.

https://bugzilla.gnome.org/show_bug.cgi?id=693261
2013-02-07 12:59:00 +01:00
Debarshi Ray
4a86ebff50 online-accounts: Replace the hacked up GtkTreeView with a EggListBox
https://bugzilla.gnome.org/show_bug.cgi?id=692442
2013-01-28 13:11:15 +01:00
Debarshi Ray
6b0ec0038c online-accounts: #include the resource header
This is a fallout from 0653773ed8.
2013-01-23 15:12:28 +01:00