Commit graph

3827 commits

Author SHA1 Message Date
Marek Kasik
da15e2ebcf printers: Remove border around model name
The border was not there in 3.10 and it is not
intended to be there in 3.14.

https://bugzilla.gnome.org/show_bug.cgi?id=740811
2014-11-27 15:24:26 +01:00
Ondrej Holy
33052abe9c user-accounts: change default size for avatar cropping
Change default size for avatar cropping to correspond with changes in cheese.
The default size should be based on maximal size of the image instead of
minimal size for cropping.

https://bugzilla.gnome.org/show_bug.cgi?id=739871
2014-11-25 15:20:39 +01:00
Marek Kasik
6be06156e6 printers: Fix spacing in Jobs dialog
Increase spacing in the VBox to 10 as in other dialogs.

https://bugzilla.gnome.org/show_bug.cgi?id=739737
2014-11-25 12:01:17 +01:00
Marek Kasik
49b71fa843 printers: Don't use properties of deprecated widgets
Replace xalign and yalign properties by halign and
valign wherever needed.

https://bugzilla.gnome.org/show_bug.cgi?id=739737
2014-11-25 12:01:17 +01:00
Marek Kasik
a5c6e53f65 printers: Remove usage of deprecated GtkAlignment
Use halign and valign of children instead of adding
GtkAlignment and setting of xalign and yalign.

https://bugzilla.gnome.org/show_bug.cgi?id=739737
2014-11-25 12:01:17 +01:00
Marek Kasik
8c67e72821 printers: Fix padding of a progress text
Set padding of the text "Setting new driver" at runtime so that
it is aligned with other fields properly.

https://bugzilla.gnome.org/show_bug.cgi?id=739737
2014-11-25 12:01:17 +01:00
Marek Kasik
38958903ee printers: Add GtkLabel with printer model name
Place a custom GtkLabel with name of printer model
into "printer-model-button". This is needed for us to be
able to align the text and keep the button filling all available
horizontal space.

https://bugzilla.gnome.org/show_bug.cgi?id=739737
2014-11-25 12:01:17 +01:00
Marek Kasik
66eb1c9164 printers: Don't use methods of deprecated GtkMisc
Use GtkWidget's methods for settings of halign, valign and margin-start
instead of GtkMisc's methods for settings of xalign, yalign and xpad.

https://bugzilla.gnome.org/show_bug.cgi?id=739737
2014-11-25 12:01:17 +01:00
Marek Kasik
15b5045ed3 printers: Don't update alignment padding for dialogs
The update of alignment padding is not needed since gtk+ 3.14.
It was needed for proper alignment of widgets of action area
with those from content area.

https://bugzilla.gnome.org/show_bug.cgi?id=739737
2014-11-25 12:01:17 +01:00
Ondrej Holy
71aca7abdb mouse: replace deprecated stuff
https://bugzilla.gnome.org/show_bug.cgi?id=736013
2014-11-20 11:57:25 +01:00
Ondrej Holy
e9af927e5f cc-language-chooser: remove deprecated GtkMisc 2014-11-20 11:32:33 +01:00
Ondrej Holy
320f6e617b user-accounts: replace deprecated stuff 2014-11-20 11:32:33 +01:00
Marek Kasik
2d2f20fe53 printers: Use correct type for window id
Window id should be unsigned int and not int. Also the default
value should be 0 instead of the 631 (a copy paste error).

https://bugzilla.gnome.org/show_bug.cgi?id=740115
2014-11-14 14:32:14 +01:00
Marek Kasik
873c22e9d4 printers: Make driver installation dialog modal
Pass XID of correct window to InstallPrinterDrivers and
InstallPackageNames methods.

https://bugzilla.gnome.org/show_bug.cgi?id=740115
2014-11-14 14:32:11 +01:00
Rui Matos
7121f03564 sharing: Prevent an endless loop and resulting stack overflow
We need to block ourselves around the gtk_switch_set_active() call in
the error path, when we can't speak to the sharing dbus service, or we
end up in an endless loop since we're the ::state-set handler.

https://bugzilla.gnome.org/show_bug.cgi?id=739886
2014-11-13 11:28:24 +01:00
Debarshi Ray
041671e485 background: Fix crash when adding the second color
https://bugzilla.gnome.org/show_bug.cgi?id=689351
2014-11-11 13:52:45 +01:00
Lapo Calamandrei
d227fa4a88 user-accounts: remove superfluous frame from history dialog
See https://bugzilla.gnome.org/show_bug.cgi?id=739820
2014-11-10 20:05:43 +01:00
Lapo Calamandrei
caf76dc4c5 keyboard: remove superfluous frame
See https://bugzilla.gnome.org/show_bug.cgi?id=739818
2014-11-10 20:04:54 +01:00
Lapo Calamandrei
27138946cb background: Remove superflous frame from chooser dialog
https://bugzilla.gnome.org/show_bug.cgi?id=739821
2014-11-10 11:10:07 +01:00
Matthias Clasen
e6c2ac9c92 printers: Improve scrolling in new printers list
In order to automatically keep the selected row scrolled in view,
the treeview must be a direct child of the scrolled window. Make
it so by flipping the order of the stack and the scrolled window.

https://bugzilla.gnome.org/show_bug.cgi?id=739600
2014-11-05 09:44:04 -05:00
Ondrej Holy
5790368643 user-accounts: fix enterprise accounts deleting
Deleting enterprise accounts using act_user_manager_delete_user fails
with error: userdel failed, because enterprise accounts are added
using act_user_manager_cache_user and don't have entries in passwd
file. Thus enterprise accounts should be removed by
act_user_manager_uncache_user.

https://bugzilla.gnome.org/show_bug.cgi?id=727871
2014-11-03 18:13:10 +01:00
Ondrej Holy
ed13a62c1d user-accounts: use common function for error messages
https://bugzilla.gnome.org/show_bug.cgi?id=727871
2014-11-03 18:13:10 +01:00
Ondrej Holy
96c0c0a838 user-accounts: simplify language changing thru users panel
Do not show combo box with common languages and show the language
chooser immediately as it is done in the region panel.

https://bugzilla.gnome.org/show_bug.cgi?id=738077
2014-10-31 09:19:54 +01:00
Ondrej Holy
2640a9dfd7 mouse: avoid using deprecated GtkAlignment and GtkMisc
https://bugzilla.gnome.org/show_bug.cgi?id=736013
2014-10-31 08:53:25 +01:00
Ondrej Holy
946ff4eb3c um-editable-combo: avoid using deprecated GtkAlignment and GtkMisc
https://bugzilla.gnome.org/show_bug.cgi?id=736013
2014-10-31 08:53:24 +01:00
Ondrej Holy
d6a0c18f09 um-editable-button: avoid using deprecated GtkAlignment and GtkMisc
https://bugzilla.gnome.org/show_bug.cgi?id=736013
2014-10-31 08:53:24 +01:00
Rui Matos
ed273aa8f1 cc-common-language.c: Don't check if we have translations here
The list of locales returned from gnome_get_all_locales() already
filters out the locales for which we don't have translations so this
is a redundant check since users of get_initial_languages() only show
a language if it exists in gnome_get_all_locales() .

In fact, this code stopped working correctly since we started passing
locales including the codeset suffix to insert_language() because the
translation directories usually don't include the suffix and we
weren't stripping the suffix here.

https://bugzilla.gnome.org/show_bug.cgi?id=710412
2014-10-29 15:03:43 +01:00
Rui Matos
c244568f0b cc-common-language.c: Remove a bunch of unused code
This stopped being used in the last region panel re-design. See commit
35d920f1b8 .

https://bugzilla.gnome.org/show_bug.cgi?id=710412
2014-10-29 15:02:46 +01:00
Rui Matos
880f9f1475 Use 'UTF-8' instead of 'utf8' as locale codeset suffix
This makes us work on OpenBSD's libc. GNU libc accepts both suffixes.

https://bugzilla.gnome.org/show_bug.cgi?id=710412
2014-10-29 13:59:14 +01:00
Cosimo Cecchi
0a7b552d93 search: use g_get_system_data_dirs() to discover providers
Currently, the search panel looks for search providers in
DATADIR/gnome-shell/search-providers. This won't work when providers are
located in a different directory which is still part of XDG_DATA_DIRS,
which is a valid use case and supported by gnome-shell.

This commit refactors the loader code to scan all the directories
upfront in a separate thread.

https://bugzilla.gnome.org/show_bug.cgi?id=739148
2014-10-27 09:44:51 -07:00
Bastien Nocera
57aab756e9 background: Fix possible crash when date isn't available
https://bugzilla.gnome.org/show_bug.cgi?id=736475
2014-10-23 11:32:34 +02:00
Cosimo Cecchi
422166f320 region: don't crash for locales with no country_code
gnome_parse_locale() can return an empty country_code for some locales,
which we are not taking into account when building the simple_locale
string.

https://bugzilla.gnome.org/show_bug.cgi?id=738963
2014-10-22 15:46:28 -07:00
Rui Matos
22fa7f1292 sound: Fix the main volume bars to correctly display changes in volume
The active input and output streams aren't added through add_stream()
so they weren't being mapped to their respective volume bars,
resulting in updates to the volume through other means not being
reflected in our UI.

Moving the mapping to bar_set_stream() which is called for every
stream fixes the problem. Also, there's no value in having a
helper function to do a g_hash_table_insert() and not doing the same
for the respective g_hash_table_remove()s so remove it.

https://bugzilla.gnome.org/show_bug.cgi?id=738869
2014-10-21 15:07:17 +02:00
Bastien Nocera
19f9bf95dc universal-access: Disable hover on non-clickable rows
https://bugzilla.gnome.org/show_bug.cgi?id=733264
2014-10-17 12:19:41 +02:00
Bastien Nocera
f325d6cc36 power: Disable hover on non-clickable rows
https://bugzilla.gnome.org/show_bug.cgi?id=733264
2014-10-17 12:19:41 +02:00
Bastien Nocera
633af27f2d common: Make Done button in language chooser blue
https://bugzilla.gnome.org/show_bug.cgi?id=737966
2014-10-17 12:19:41 +02:00
Michael Catanzaro
212a4e9b6e region: Make Add/Done buttons blue
https://bugzilla.gnome.org/show_bug.cgi?id=737966
2014-10-17 12:19:41 +02:00
Ondrej Holy
066d66383e cc-language-chooser: Reset dialog to original state when used the 2nd time
The language chooser dialog is used in the users panel repeatedly.
When we click to show more languages and/or select language, close
the dialog and show it again e.g. for different user, the chooser
isn't in an original state. So filter entry isn't hidden (and all
languages are shown) and/or the last selected language is focused.
But the dialog should be in the original state when it is open.

This patch changes cc_language_chooser_clear_filter to clear the
dialog into the original state that we can reuse the dialog later.

https://bugzilla.gnome.org/show_bug.cgi?id=738077
2014-10-15 16:26:16 +02:00
David King
d3c93d9249 user-accounts: Rename UmCropArea to CcCropArea
Cheese has an internal copy of UmCropArea, and exports the corresponding
um_crop_area_get_type() as part of libcheese-gtk. This leads to a crash
when taking a photo in the avatar chooser, as the control center copy of
the get_type() function is used. Renaming the function in Cheese would
be an ABI break, so at this stage it is best to do the rename in the
control center instead.

https://bugzilla.gnome.org/show_bug.cgi?id=697039
2014-10-15 15:08:46 +01:00
Antoine Jacoutot
fda606c4f8 power: conditionally display the bluetooth button
We do not want to display the bluetooth power option if we were built
without bluetooth support; same way we do with NetworkManager.
2014-10-14 10:38:09 +02:00
Marek Kasik
12c4777c06 printers: Don't crash for URIs with leading "//"
Initialize result of getting of LPD devices early to avoid crash.

https://bugzilla.gnome.org/show_bug.cgi?id=738165
2014-10-10 12:31:07 +02:00
Ondrej Holy
37a54b69d6 user-accounts: remove dead code
This lines are dead code, because act_user_get_language() returns empty
string if language isn't set. We don't want to fix the condition, because
cc_common_language_get_current_language is wrong for other users.

https://bugzilla.gnome.org/show_bug.cgi?id=737216
2014-10-07 12:19:01 +02:00
Ondrej Holy
4c6ef8568d user-accounts: fix language chooser response if language is unknown
If language is unknown and language chooser is cancelled, panel crash
with the following error:

(gnome-control-center:24952): Gtk-CRITICAL **: gtk_list_store_get_path:
assertion 'iter->stamp == priv->stamp' failed

(gnome-control-center:24952): Gtk-CRITICAL **: gtk_list_store_get_value:
assertion 'iter_is_valid (iter, list_store)' failed

(gnome-control-center:24952): GLib-GObject-WARNING **: gtype.c:4221:
type id '0' is invalid

(gnome-control-center:24952): GLib-GObject-WARNING **:
can't peek value table for type '<invalid>' which is not currently referenced
Segmentation fault (core dumped)

https://bugzilla.gnome.org/show_bug.cgi?id=738002
2014-10-07 12:09:43 +02:00
Ondrej Holy
6b3b223668 user-accounts: preset language chooser if language is known
Preset the language chooser similary as it is done in the region panel.
Also remove one goto command and share code.

https://bugzilla.gnome.org/show_bug.cgi?id=738002
2014-10-07 12:08:55 +02:00
Ondrej Holy
6f13d0ad8b user-accounts: fix language chooser response
If the language chooser is confirmed and no language is selected,
"Other..." is shown as user's language and the following error is printed:

(gnome-control-center:14608): AccountsService-CRITICAL **:
act_user_set_language: assertion 'language != NULL' failed
2014-10-07 12:08:38 +02: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
49e3fe482d user-accounts: be sure widgets has same height
Autologin widgets are different in height as compared with other widgets,
which looks odd. Put all the widgets in the sizegroups, to have same
height.

https://bugzilla.gnome.org/show_bug.cgi?id=737343
2014-09-25 11:50:29 +02:00
Ondrej Holy
50bed210e5 user-accounts: show correct language if it isn't set
Determine the language for the logged in user if it isn't set in the
acountsservice.

https://bugzilla.gnome.org/show_bug.cgi?id=737216
2014-09-24 18:28:38 +02:00
Cosimo Cecchi
436d220f88 network: hide airplane switch when g-s-d says so
https://bugzilla.gnome.org/show_bug.cgi?id=736291
2014-09-22 22:11:23 +02:00
Frédéric Péters
b36685f9a8 keyboard: allow shortcut explanation text to wrap
https://bugzilla.gnome.org/show_bug.cgi?id=736966
2014-09-22 22:09:53 +02:00