Commit graph

28 commits

Author SHA1 Message Date
Benjamin Berg
c2f601a9d4 Move common panel code from shell/ to panel/common
This creates a new static library called libwidget which the shell links
against.
2018-04-17 15:26:59 +02:00
Changwoo Ryu
fb2989dca4 region: Use locale aware date time formats for previewing
%x for date, %X for time, %c for date&time.

https://bugzilla.gnome.org/show_bug.cgi?id=687923
2017-05-25 12:12:10 +02:00
Rui Matos
7916040cea region: Tick an unselected row when enter is pressed
This makes the dialog easier to use via keyboard navigation since
otherwise we would just dismiss the dialog with the current selection
on enter when the user actually intended to change the selection.

https://bugzilla.gnome.org/show_bug.cgi?id=752001
2015-07-07 18:48:56 +02:00
Rui Matos
73644fdecc region: Dismiss dialog if the activated row was already ticked
This makes the dialog a bit friendlier to use.

https://bugzilla.gnome.org/show_bug.cgi?id=752001
2015-07-07 18:48:56 +02:00
Cosimo Cecchi
eb93004ead region: fix a crash when iterating locales
When iterating locales in the format chooser,
gnome_get_country_from_locale() is called for each of them to build the
locale label for the list row.

The function creating the label doesn't take into account that
gnome_get_country_from_locale() can return NULL, in which case it will
both:
- display an empty row in the list
- crash when later trying to find a word in a NULL string with strstr()
  inside match_all()

Just avoid creating a widget in that case.

https://bugzilla.gnome.org/show_bug.cgi?id=742639
2015-01-10 11:44:38 +08: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
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
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
Bastien Nocera
f9db0a832d region: Use new delayed search entry API
https://bugzilla.gnome.org/show_bug.cgi?id=705151
2013-07-30 16:57:29 +02: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
24bb46eb44 region: Keep format chooser labels centered
In order to prevent the labels from moving around when hiding and
showing the check mark we need to keep the check mark always visible
and instead tweak its opacity.

We also add an always transparent widget the same size as the check
mark on the other side of the label to make sure that the label is
globally centered.

https://bugzilla.gnome.org/show_bug.cgi?id=695536
2013-04-15 11:53:27 +02:00
Rui Matos
3af7efc5aa region: Fix format chooser check marks being cleared
https://bugzilla.gnome.org/show_bug.cgi?id=695536
2013-04-15 11:53:27 +02:00
Rui Matos
d7cecdca2f region: Use view-more-symbolic for the "More" list item
We've had some early reports that the ellipsis used to label the
"More" item in some of the lists isn't clear.

https://bugzilla.gnome.org/show_bug.cgi?id=694927
2013-04-15 11:53:27 +02:00
Rui Matos
1858a818c4 region: Add separators to the format chooser list
https://bugzilla.gnome.org/show_bug.cgi?id=695465
2013-04-15 11:53:27 +02:00
William Jon McCann
142d28c375 region: Make format chooser centered
https://bugzilla.gnome.org/show_bug.cgi?id=694323
2013-02-26 15:07:46 +01:00
Rui Matos
ef4576b4f4 Check gtk_builder_add_from_resource() return value 2013-02-19 12:25:56 +01:00
Rui Matos
bc3307b492 Prevent potential segfault 2013-02-19 12:25:56 +01:00
Rui Matos
12ce8a7fd9 Fix code style issues 2013-02-19 12:25:56 +01:00
Piotr Drąg
8ed05f6315 region: Add context to ambiguous strings
It clashes with "Metric" as network parameters in Network panel.
2013-02-19 12:25:56 +01:00
Rui Matos
4b7b194f4c region: Allow using multiple words to filter regions
All words must match.
2013-02-19 12:25:55 +01:00
Rui Matos
36ddfdd3fd region: Make region filtering smarter
We normalize both the filter string from the user and the region label
to disregard case and accents. Then we try to match the region label
on its native translation, the current LC_MESSAGES translation and
untranslated.
2013-02-19 12:25:55 +01:00
Rui Matos
dad492fbdd region: Plug memory leaks 2013-02-19 12:25:54 +01:00
Rui Matos
1dd14e7b29 region: Disregard being an initial region for sorting
Otherwise all the initial regions would show up grouped at the end of
the list when showing all entries.
2013-02-19 12:25:54 +01:00
Rui Matos
fbbb0b1fd8 Fix some memory leaks 2013-02-19 12:25:54 +01:00
Rui Matos
a0ba3bc4fc Adapt to gnome-languages API change 2013-02-19 12:25:54 +01:00
Rui Matos
80ddfe09da Remove two unused variables 2013-02-19 12:25:53 +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