Commit graph

621 commits

Author SHA1 Message Date
Christophe Fergeau
750bb5158d shell: Use g_application_add_main_option_entries
Since GApplication provides this API, we can as well use it, this will
be useful in order to correctly split option handling between the local
instance and the main instance.

https://bugzilla.gnome.org/show_bug.cgi?id=751597
2015-07-16 11:49:40 +02:00
Christophe Fergeau
0db5500232 shell: Don't handle --help ourselves
GOption can handle --help for us, so we don't need to reimplement this
ourselves. This causes a small regression as starting a main
gnome-control-center instance and then running gnome-control-center
--help will cause the main instance-control-center to exit. This will be
fixed in the following patches, and this fixes the opposite bug:
if gnome-control-center is not running, gnome-control-center --help
would not exit after displaying the help before this commit.

https://bugzilla.gnome.org/show_bug.cgi?id=751597
2015-07-16 11:49:40 +02:00
Christophe Fergeau
c33ac8bca9 shell: Fix GVariantBuilder leak
When a GVariantBuilder is created with g_variant_builder_new(), it must
be unref'ed with g_variant_builder_unref() when no longer needed. In
this case, we can just use a local stack-allocated GVariantBuilder to
avoid the leak.

https://bugzilla.gnome.org/show_bug.cgi?id=751597
2015-07-16 11:49:40 +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
Bastien Nocera
3ff7c61db1 shell: Fix gtk_tree_model_get_iter_first() retval
https://bugzilla.gnome.org/show_bug.cgi?id=749892
2015-05-27 11:06:02 +02:00
Richard Hughes
daed241f9a Add a simple AppData file
This is needed for three reasons:

 * To be able to arrange the icon into a folder in GNOME Software
 * So that we do not allow the application to be removed
 * To show the update description not in the 'OS Updates' package section
2015-04-01 10:47:55 +01:00
Matthias Clasen
fabb18fb1d Make HighContrast icons work
We need to make the cell renderers follow state for the
recoloring of icons on selection to work.

https://bugzilla.gnome.org/show_bug.cgi?id=745873
2015-03-08 22:24:10 -04:00
Michael Catanzaro
14356d652b Revert "main: Disable SSLv3 because of POODLE"
This reverts commit 38e7ea475a.

Now that gnome-online-accounts uses WebKit2, we should not presume to
know more about TLS security than WebKit. In WebKit1 this was our
responsibility.

https://bugzilla.gnome.org/show_bug.cgi?id=745645
2015-03-05 10:15:35 -06:00
Timm Bäder
fe77d8020a list-box-helper: Unset row header if unneeded
The usual implementation of the header func adds headers to all rows but
the first one. If the first row then gets removed, the second row
becomes the first and keeps its header, since nothing ever removes it.
Fix this by also removing the header if we are looking at the first row.

https://bugzilla.gnome.org/show_bug.cgi?id=743441
2015-01-28 12:15:10 +01:00
Ondrej Holy
a4521c15d5 user-accounts: update padding on style-updated
Padding is updated for some widgets once, when creating the widgets.
But it seems style may not be loaded yet. Therefore the padding has
to be updated on "style-updated" signal to reflect style changes.

https://bugzilla.gnome.org/show_bug.cgi?id=743180
2015-01-27 16:35:48 +01:00
Carlos Garnacho
be8d68c591 Update device configuration from gnome-settings-daemon
GsdWacomDevice has been updated, dragging GsdDeviceManager as a dependency
from g-s-d, which has been added to panels/common, and compiled as a
separate static libary, which is used by the wacom and mouse modules.

gsd-input-helper.[ch] is now in such library and has been removed from
the panel directories.

https://bugzilla.gnome.org/show_bug.cgi?id=743196
2015-01-20 20:44:13 +01:00
Rui Matos
1df796ac28 printers: Drop remaining deprecated API usage
https://bugzilla.gnome.org/show_bug.cgi?id=740986
2015-01-08 19:04:53 +01:00
Rui Matos
52c27cd672 shell: Drop deprecated API usage
https://bugzilla.gnome.org/show_bug.cgi?id=740986
2015-01-06 16:17:36 +01:00
Rui Matos
d93c51f228 shell: Unset sort terms when search entry is programatically cleared
Otherwise items would keep the previous search sort order when going
back to the overview.
2014-12-02 18:52:00 +01:00
Ondrej Holy
bd5ac1078d cc-editable-entry: don't use deprecated xalign on GtkButton 2014-11-20 11:32:33 +01:00
Debarshi Ray
38e7ea475a main: Disable SSLv3 because of POODLE
Since GOA is still using WebKit1, we need to set the environment
variable ourself. We can stop setting it once we port to WebKit2
because the network process will handle it for us.

https://bugzilla.gnome.org/show_bug.cgi?id=739960
2014-11-11 15:12:18 +01:00
Ondrej Holy
192888fea4 cc-editable-entry: avoid using deprecated GtkAlignment and GtkMisc
https://bugzilla.gnome.org/show_bug.cgi?id=736013
2014-10-31 08:53:24 +01:00
Michael Catanzaro
4ad8e2e85e shell: Use correct window icon
The window icon should match the icon specified in the desktop file.

https://bugzilla.gnome.org/show_bug.cgi?id=724937
2014-07-18 18:28:36 +02:00
Bastien Nocera
f528de73aa shell: Make list box max height configurable
So that the Media sharing dialogue in the Sharing panel isn't too high.
2014-06-26 16:00:45 +02:00
Bastien Nocera
588928a946 shell: Add support for mixed height list boxes in helper
This fixes problems with the networks list boxes in the sharing panel
which have mixed heights.
2014-06-26 16:00:45 +02:00
Rui Matos
4393e212b1 shell: Make list box scrolling helper work for unmapped widgets 2014-06-26 14:46:19 +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
Christophe Fergeau
700889c81a shell: Remove last reference to "INCLUDES"
c61d9e5a95 replaced use of INCLUDES with AM_CPPFLAGS, but there was
still one reference to INCLUDES in shell/Makefile.am.
AM_CPPFLAGS will apply globally, so we don't need to explicitly set
per-target CFLAGS/CPPFLAGS to its value.

https://bugzilla.gnome.org/show_bug.cgi?id=732189
2014-06-25 15:09:02 +02:00
Christophe Fergeau
c61d9e5a95 shell: 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:46:43 +02:00
Bastien Nocera
b3a61bc6f5 shell: Add GtkListBox helpers
Add helpers for GtkListBox sizing, and setting separators.

https://bugzilla.gnome.org/show_bug.cgi?id=732106
2014-06-24 11:35:30 +02:00
Ondrej Holy
07f3416e04 cc-editable-entry: use GtkStack instead of GtkNotebook
The mechanism of setting label padding had to be changed consequently.

It fixes also following warnings:
(gnome-control-center:32638): Gtk-WARNING **: GtkEntry 0x28bcef0 is mapped but not child_visible
(gnome-control-center:32638): Gtk-WARNING **: GtkEntry 0x28bcef0 is mapped but visible=1 child_visible=0 parent GtkNotebook 0x2b86600 mapped=1

https://bugzilla.gnome.org/show_bug.cgi?id=694325
2014-06-23 14:59:20 +02:00
Yosef Or Boczko
bc7fddb01e shell: Use the new support for RTL icons in GtkIconTheme
https://bugzilla.gnome.org/show_bug.cgi?id=730597
2014-05-23 12:31:25 +03:00
Rui Matos
13abc75273 shell: Make search results sorting smarter
Instead of just sorting by the name the sort order will now be:

1. Panels whose name match a search term
2. Panels whose keywords match the most search terms
3. Panels whose description match the most search terms
4. The remaining panels by name

https://bugzilla.gnome.org/show_bug.cgi?id=729027
2014-05-16 11:59:48 +02:00
Rui Matos
98a2ab2603 shell: Keep the filter terms cached
This avoids calling g_strsplit() for every model item when filtering.

https://bugzilla.gnome.org/show_bug.cgi?id=729027
2014-05-16 11:59:48 +02:00
Ryan Lortie
4736b03ed9 hostname-helper: use GLib transliteration API
Use GLib's new transliteration API to avoid the shortcomings of iconv().

Also solve an existing problem where strings entered in decomposed forms
wouldn't be properly transliterated.  Always normalise before attempting
transliteration.

Bump GLib dependency to 2.39.91 for the new feature.

https://bugzilla.gnome.org/show_bug.cgi?id=724194
2014-02-21 07:57:03 -05:00
Daniel Mustieles
2c5951819d Updated FSF's address 2014-01-29 11:27:38 +01:00
Bastien Nocera
4700b6f61e shell: Disable type-ahead in search window
And force Ctrl+F to be disabled as well, by unsetting the
search column after setting the model.

https://bugzilla.gnome.org/show_bug.cgi?id=722296
2014-01-16 12:37:20 +01:00
Cosimo Cecchi
73137e2071 application: activate application when launching a panel
This ensures the control-center window is correctly presented if the
application is already running when the action is activated.

https://bugzilla.gnome.org/show_bug.cgi?id=721969
2014-01-13 09:21:47 -08:00
Yosef Or Boczko
c50b63cd78 shell: Fix headerbar item positions
https://bugzilla.gnome.org/show_bug.cgi?id=721830
2014-01-09 12:43:10 +02:00
Bastien Nocera
ce0387d54f shell: Assert when the panel is empty
Rather than getting a segfault.

https://bugzilla.gnome.org/show_bug.cgi?id=719711
2013-12-06 11:59:03 +01:00
Benjamin Otte
d54b8864ab shell: Set iconview number of columns to 6
This ensures that the overview page keeps its size and doesn't grow
wider than it should be.
2013-11-26 16:54:54 +01:00
Yosef Or Boczko
3ab34035a5 shell: Use margin-start/end instead of margin-left/right
https://bugzilla.gnome.org/show_bug.cgi?id=712661
2013-11-19 22:34:52 +02:00
Yosef Or Boczko
11a074525c shell: Align better the buttons in the headerbar
https://bugzilla.gnome.org/show_bug.cgi?id=708000

Signed-off-by: Yosef Or Boczko <yoseforb@gmail.com>
2013-09-27 12:15:25 +03:00
Rui Matos
be35af45c9 shell: Make sure we don't start with a selected icon
If focus ends up in the icon view we get an ugly selection so avoid
that at least initially.
2013-09-04 01:31:38 +02:00
Rui Matos
04b24631ab Revert "shell: Make sure we don't focus the icon view when starting"
This reverts commit 8e0f4e7be0 - there's
a better fix in the next commit.
2013-09-04 01:31:37 +02:00
Rui Matos
8e0f4e7be0 shell: Make sure we don't focus the icon view when starting
If focus ends up in the icon view we get an ugly selection so avoid
that at least initially.
2013-09-03 19:52:46 +02:00
Bastien Nocera
7bfc2f64f4 shell: Avoid width changes when searching
In some locales, the description will be too long, so
ellipsise it to avoid the window changing width.

https://bugzilla.gnome.org/show_bug.cgi?id=706626
2013-08-28 12:32:54 -04:00
Yosef Or Boczko
c713b4f972 shell: Fix stretched header bar lock button 2013-08-21 20:42:09 +03:00
Rui Matos
c1f2787c10 shell: Don't start search while on regular panels
... either by just typing or pressing ctrl+F or ctrl+S.

https://bugzilla.gnome.org/show_bug.cgi?id=706268
2013-08-20 13:06:14 +01:00
Bastien Nocera
c0fc740e15 shell: Remove setting invisible characters on entry
It's completely unused
2013-08-20 00:35:30 +02:00
Bastien Nocera
8c7efd538b shell: Start search when typing
https://bugzilla.gnome.org/show_bug.cgi?id=706268
2013-08-20 00:35:30 +02:00
Bastien Nocera
65c0b26888 shell: Use GDK_EVENT_* macros
Instead of TRUE/FALSE

https://bugzilla.gnome.org/show_bug.cgi?id=706268
2013-08-20 00:35:30 +02:00
Yosef Or Boczko
ef995c0728 shell: Use a search bar for the search entry
https://bugzilla.gnome.org/show_bug.cgi?id=704217
2013-08-18 23:20:34 +03:00
Yosef Or Boczko
9de9364ba5 shell: Set the headerbar as our titlebar and add a close button
- set "All Settings" as title of the headerbar
  (in the overview page)
- set the name of the each panel as title of the headerbar
- remove "hide-titlebar-when-maximizes" property
- add separator and close button to the headerbar
  (set "show-close-button" property as true)

https://bugzilla.gnome.org/show_bug.cgi?id=704217
2013-08-18 23:20:34 +03:00
Thomas Wood
eca503bcc5 shell: prevent a warning if the monitor number is not available yet
https://bugzilla.gnome.org/show_bug.cgi?id=705297
2013-08-02 16:35:26 +01:00