Commit graph

65 commits

Author SHA1 Message Date
Joaquim Rocha
abb0592866 region: Reuse the input chooser instance
The language input chooser is being created and destroyed every time
it is opened and closed. This is noticeably slow and is hardly
necessary as the values it contains should not change.

To fix this, these changes reuse the same instance of the input chooser
(by hiding and showing it) instead of renewing it.
The input chooser is also now shown using gtk_dialog_run to avoid having
it destroyed from the default delete event.
2015-03-10 19:45:07 +01:00
Rui Matos
87640bb6f8 region: Implement input source list re-ordering
The first input source gets activated by default when users log in but
we don't currently allow users to set this (other than the awkward
remove all input sources and add them again in the right order).

Allowing user re-ordering of the input source list nicely allows users
to get the default input source they want.

https://bugzilla.gnome.org/show_bug.cgi?id=743400
2015-02-28 20:57:38 +01:00
Florian Müllner
4179afc55c region: Shut up a compiler warning
The variable cannot actually be used uninitialized, but that's not
obvious to the compiler.
2015-02-28 11:38:58 +01:00
Rui Matos
1029d0c69a region: Don't show IBus sources in the system-wide input chooser
Since we can't export IBus sources through the localed API we
shouldn't even allow users to choose them.

This allows us to stop having to show an apologising dialog which
makes us look a bit bad and was using deprecated gtk+ API that we're
trying to get rid of. Instead, we show the same information up front,
in the input chooser.

https://bugzilla.gnome.org/show_bug.cgi?id=740986
2015-01-06 16:17:36 +01:00
Rui Matos
6686a79158 region: Fix deprecated API usage
https://bugzilla.gnome.org/show_bug.cgi?id=740986
2014-12-05 16:13:29 +01:00
Jinkyu Yi
047ae3c937 region: obtain keyboard variant from IBus
This will fix unable to show keyboard variant from IBus through menu.

https://bugzilla.gnome.org/show_bug.cgi?id=735065
2014-09-26 17:54:38 +02:00
Ondrej Holy
d82a2101d5 user-accounts & region: allow multiline notifications
The notification is wider then window for some languages (e.g.
France). This patch allows wrapping, limits chars and changes
margin as a result of discussion on #gnome-design.

https://bugzilla.gnome.org/show_bug.cgi?id=703392
2014-09-19 13:35:15 +02:00
Bastien Nocera
57a1ac1177 region: Update for list box API change 2014-06-26 16:00:45 +02:00
Rui Matos
61a6c6f0cb shell: Fix list box scrolling helper
GtkListBox doesn't implement GtkScrollable so it needs to be added to
a GtkViewport. Instead of having to do this in all .ui files, add a
new helper function to setup the widget tree correctly.

https://bugzilla.gnome.org/show_bug.cgi?id=732175
2014-06-25 17:29:30 +02:00
Bastien Nocera
ccec8ad7e1 region: Use new listbox helpers
https://bugzilla.gnome.org/show_bug.cgi?id=732106
2014-06-24 11:35:31 +02:00
Yosef Or Boczko
8913ad2f36 region: Use header bar in all the dialogs
https://bugzilla.gnome.org/show_bug.cgi?id=724299
2014-04-28 17:29:18 +03:00
Antoine Jacoutot
c5268f8a4b region-panel: do not show Login button if localed is not available
Missing org.freedesktop.locale1 means priv->permission will not be set
and will trigger a segfault when used by set_login_button_visibility().
Unconditionally not display the Login button if localed is not available
since it will be useless anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=723550
2014-02-04 15:34:09 +01:00
Daniel Mustieles
2c5951819d Updated FSF's address 2014-01-29 11:27:38 +01:00
Yosef Or Boczko
80aaf11b1a region: Use margin-start/end instead of margin-left/right
https://bugzilla.gnome.org/show_bug.cgi?id=712661
2013-11-19 22:29:36 +02:00
Rui Matos
455b457c7f region: Never show "None" for language and formats
If the settings backends fail to give us valid values, show the
current environment instead of "None" since we do know which language
is actually being used.

https://bugzilla.gnome.org/show_bug.cgi?id=695535
2013-10-15 23:19:32 +02:00
Rui Matos
9e975b036f region: Allow setting system-wide formats
https://bugzilla.gnome.org/show_bug.cgi?id=695535
2013-10-15 23:19:29 +02:00
Rui Matos
559161b4cb region: Remove unused toplevel window from .ui file
https://bugzilla.gnome.org/show_bug.cgi?id=708286
2013-10-01 10:05:03 +02:00
Yosef Or Boczko
648be6c11a region: Fix stretched "Login Screen" button 2013-08-21 20:42:09 +03:00
Yosef Or Boczko
720f1b4a87 region: Fix the look of login button
https://bugzilla.gnome.org/show_bug.cgi?id=703769
2013-07-12 11:18:17 +03:00
Alexander Larsson
1db26b435a region: Convert to GtkListBox
https://bugzilla.gnome.org/show_bug.cgi?id=702164
2013-07-02 16:19:09 +01:00
Rui Matos
243b3062dc region: Make sure not to display an empty input sources list
Just like the system settings, the user's settings might be empty
because some other component failed before us. Still, we shouldn't
show an empty list since that looks broken.

https://bugzilla.gnome.org/show_bug.cgi?id=701871
2013-06-17 17:22:34 +02:00
Rui Matos
2822e04a89 region: Fix setting the system language
We need to actually change the variable holding the system language so
that it gets applied.

https://bugzilla.gnome.org/show_bug.cgi?id=694922
2013-04-15 11:53:27 +02:00
Rui Matos
6154170bb3 region: Apply user settings system-wide on single account systems
On single account systems we don't show the login button but the user
should still be able to set system-wide locale settings. We can simply
export the user's own settings to the system in that case.

https://bugzilla.gnome.org/show_bug.cgi?id=694922
2013-04-15 11:53:27 +02:00
Rui Matos
d515aabbf1 region: Remove useless parameter
locald settings are system settings by definition so we can just use
priv->system_language directly.

https://bugzilla.gnome.org/show_bug.cgi?id=695535
2013-03-14 17:14:20 +01:00
Rui Matos
9c64f316b1 region: Show restart notification only if strictly needed
If the user is changing the setting back to the current locale we
shouldn't show the restart notification.

https://bugzilla.gnome.org/show_bug.cgi?id=695534
2013-03-14 16:52:51 +01:00
Rui Matos
50ea2c11ce region: Use a GDBusProxy to access org.gnome.SessionManager
We'll use this interface beyond just calling Logout() so lets keep a
proxy around.

https://bugzilla.gnome.org/show_bug.cgi?id=695534
2013-03-14 16:52:51 +01:00
Rui Matos
3efb71bab7 region: Cancel any async operations with callbacks on finalize
Otherwise we may end up using a finalized "object" in the callbacks.

https://bugzilla.gnome.org/show_bug.cgi?id=695534
2013-03-14 16:52:51 +01:00
Rui Matos
e2163ea9ed region: Translate restart notification into the target language
We used to do this before the panel re-design.

https://bugzilla.gnome.org/show_bug.cgi?id=695534
2013-03-14 16:52:51 +01:00
Rui Matos
bbc28af85d region: Display current locale country in formats if setting is empty
https://bugzilla.gnome.org/show_bug.cgi?id=694888
2013-03-14 16:52:51 +01:00
Rui Matos
3a51c94281 region: Remove the "None" input source row when adding a real one
https://bugzilla.gnome.org/show_bug.cgi?id=694887
2013-03-12 15:21:15 +01:00
Rui Matos
4eb0a72d86 region: Improve explanation when there are no input sources
https://bugzilla.gnome.org/show_bug.cgi?id=694887
2013-03-12 15:21:14 +01:00
Rui Matos
4b09dd843f region: Prevent window from getting too tall with many input sources
https://bugzilla.gnome.org/show_bug.cgi?id=695443
2013-03-12 15:21:12 +01:00
Bastien Nocera
de1b612cc0 region: Fix crash when changing the language
1. Load region panel
2. Change language
3. Go back to overview
4. Load region panel
5. Change language
6. Crash

As the ActUser and ActUserManager object aren't reference counted,
we need to disconnect the signals ourselves when exiting the panel
otherwise we'll receive the signals from the old signal connection,
which will use the old panel object.
2013-02-20 14:53:41 +01:00
Rui Matos
80e7738210 region: Dim the icons on IBus input source rows 2013-02-19 12:25:56 +01:00
Rui Matos
2b07d810aa region: New 'Add Input Source' dialog design 2013-02-19 12:25:55 +01:00
Rui Matos
00da5a115f region: Don't add duplicate input sources 2013-02-19 12:25:55 +01:00
Rui Matos
29e0f0b28a region: Show/hide IBus sources config button
Instead of just making it sensitive/unsensitive. Quoting from the bug
report:

The problem is that it isn't clear to the user why the settings button is
insensitive for keyboard layouts - they'll be asking "why can't I ever use the
settings?"

https://bugzilla.gnome.org/show_bug.cgi?id=692006
2013-02-19 12:25:55 +01:00
Rui Matos
c87d588378 region: Remove the IBus engines whitelist
And just blacklist IBus' "xkb:" engines which basically duplicate all
the XKB layouts.
2013-02-19 12:25:55 +01:00
Rui Matos
eaa8dd80ee region: Fix un-ifdef'd usage of IBus specific variables 2013-02-19 12:25:55 +01:00
Rui Matos
a0ba3bc4fc Adapt to gnome-languages API change 2013-02-19 12:25:54 +01:00
Rui Matos
8740bf03c8 region: Fix input source rows selection getting lost 2013-02-19 12:25:53 +01:00
Matthias Clasen
188f3d1658 Acceptable behaviour in localed-less situations
We show the 'None' as login screen settings, and the entire page
is made insensitive.
2013-02-19 12:25:53 +01:00
Matthias Clasen
b2148043d7 Implement the login page
We are now saving language and layout information to logind.
2013-02-19 12:25:53 +01:00
Matthias Clasen
b47b4afb83 region: Show a Login Screen button when multi-user
The button doesn't do anything yet.
2013-02-19 12:25:53 +01:00
Matthias Clasen
4262cb39d5 Use libaccountsservice
Beats talking dbus directly to the service, and we will
make more use of this in later commits.
2013-02-19 12:25:52 +01:00
Matthias Clasen
d1ed95292d Add restart notification 2013-02-19 12:25:52 +01:00
Matthias Clasen
d3852fc831 Wip: new region panel
Still missing:
- restart session notification
- login screen mode
2013-02-19 12:25:52 +01:00
Matthias Clasen
148e311aa6 Wip region 2013-02-19 12:25:51 +01:00
Cosimo Cecchi
887c3ae3d5 region: use a GResource for GtkBuilder UI definition
https://bugzilla.gnome.org/show_bug.cgi?id=691132
2013-01-07 10:57:16 +01:00
Bastien Nocera
3686cf7eb8 shell: Make all control-center plugins static
This makes loading faster, with less I/O, avoids unnecessary
code duplication (around 1k lines shaved), and ensures that
all the panels link and work appropriately.

By the same token, it will stop external panels from being
created, and loaded.

https://bugzilla.gnome.org/show_bug.cgi?id=690036
2012-12-11 17:07:39 +01:00