Commit graph

183 commits

Author SHA1 Message Date
Richard Hughes
9eb047baff Always round up the CcStrengthBar rather than down
It's a measure of completeness, not of progress.
2012-04-04 14:37:28 +01:00
Bastien Nocera
74f2949022 shell: Fix cheese related crashers
By initialising threading in X11. It's like Totem 10 years ago
(except that libXi doesn't deadlock).

https://bugzilla.gnome.org/show_bug.cgi?id=669834
2012-02-17 12:48:13 +01:00
Richard Hughes
ae6e4040ac shell: Use the '@borders' CSS style for the CcStrengthBar outline 2012-02-15 10:07:45 +00:00
Richard Hughes
5d1b2d60a4 Add CcStrengthBar to display a smaller and neater progress bar
This will be used in the power and user-accounts panels.
2012-02-14 17:00:24 +00:00
Bastien Nocera
19f6de2ec4 shell: Force a pixel size for the "All Settings" button
Because it looks bad when scaled "slightly".
2012-02-08 16:17:26 +00:00
Robert Ancell
2f6adb1519 shell: Stop using deprecated gtk_vbox_new
https://bugzilla.gnome.org/show_bug.cgi?id=669621
2012-02-08 12:11:02 +00:00
Robert Ancell
64bbbd6999 shell: Fix compile warnings
https://bugzilla.gnome.org/show_bug.cgi?id=669627
2012-02-08 12:11:02 +00:00
Rodrigo Moya
be3c710650 shell: Add some keywords to shell's desktop file
https://bugzilla.gnome.org/show_bug.cgi?id=668823
2012-01-30 11:34:30 +01:00
Bastien Nocera
d3a282b9c3 shell: Unblur the all-settings button icon
https://bugzilla.gnome.org/show_bug.cgi?id=668219
2012-01-23 15:28:02 +00:00
Marco Trevisan
a5d897dae0 shell: Make the WM to be aware of the g-c-c panel content
Window managers such as unity need to know what panel
gnome-control-center is currently showing. Changing the window
role with the current panel ID is the best way to set a
locale-independent value.

https://bugzilla.gnome.org/show_bug.cgi?id=668504
2012-01-23 15:11:52 +00:00
Richard Hughes
dcb88a861d shell: Allow panels to register custom widgets in the shell header
This allows us to add the kill switch in the various different panels to match
the mockups, and also allows us to connect up any custom functionality the
designers want.

For example, in the bluetooth panel we might want to allow the GtkLabel to be
edited to change the bluetooth device name.
2012-01-09 15:24:57 +00:00
Vincent Untz
f4bcd50240 shell: Stop calling deprecated g_thread_init()
https://bugzilla.gnome.org/show_bug.cgi?id=667527
2012-01-09 11:20:49 +00:00
Rui Matos
c812b9ac16 Revert "shell: ensure the background and foreground colours are consistent"
This actually breaks unfocused windows theming and doesn't seem to be needed
otherwise.

This reverts commit aac24399f8.

https://bugzilla.gnome.org/show_bug.cgi?id=666723
2012-01-04 17:07:27 +00:00
Florian Müllner
4cd7b6c6dc .desktop: Drop prefix from X-GNOME-Keywords
The field has now been included in the spec, so use the standardized
name.
2011-12-19 16:26:40 +01:00
Bastien Nocera
27c45abda3 shell: Merge libgnome-control-center into main binary
This fixes problems with the CcEditableEntry type not being
registered and causing the printers and user-accounts panels not to
work. As we do not need to work on Windows, we do not need to split
out the library.
2011-11-07 18:03:14 +00:00
Bastien Nocera
c72062ba65 shell: Add a11y label for the All Settings button 2011-10-25 16:31:07 +01:00
Bastien Nocera
f9da94dbae shell: Use icon for "All Settings" button
https://bugzilla.gnome.org/show_bug.cgi?id=657043
2011-10-20 10:36:21 +01:00
Christian Persch
e1dbaef587 shell: Don't crash when loading the icon fails
https://bugzilla.gnome.org/show_bug.cgi?id=660513
2011-10-17 13:57:42 +01:00
Anders G. Jørgensen
7f7f33c853 Give focus to the search entry when showing the overview page.
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/833710
2011-10-13 13:13:23 +02:00
Bastien Nocera
ec739861f0 shell: Make Ctrl+W close panels
Ctrl+W will close the current panel, and go back to the
overview.

https://bugzilla.gnome.org/show_bug.cgi?id=660814
2011-10-13 10:55:24 +01:00
Bastien Nocera
484c08ca81 shell: Make Ctrl+Q work outside the overview
Because we were checking for the presence of the search entry
before acting on key presses, Ctrl+Q failed to work outside
the overview.
2011-10-13 10:53:08 +01:00
Vincent Untz
80bd53ce10 shell: Avoid crash when searching if a .desktop has no comment
The code doing the search assumes the description column is set, which
might not be the case.

https://bugzilla.gnome.org/show_bug.cgi?id=661494
2011-10-12 16:13:46 +01:00
Rodrigo Moya
1865c9ba3d shell: Make sure we gtk_widget_show the search view 2011-09-28 13:34:17 +02:00
Rodrigo Moya
8b96ec6d50 shell: Show the label for the category sections, which was being shown because of the gtk_widget_show_all replaced in previous commit 2011-09-20 15:44:58 +02:00
Rodrigo Moya
90e25402f3 shell: Use gtk_widget_show instead of _show_all in gnome_control_center_show
Using gtk_widget_show_all will make all invisible widgets show up when a
second instance of the shell is run from the command line.

https://bugs.launchpad.net/gnome-control-center/+bug/854544
2011-09-20 13:34:57 +02:00
Cosimo Cecchi
855bb77981 shell: set the follow-state property to TRUE for pixbuf renderers
So that the icon is correctly highlighted when hovered. In order to do
this, we have to stop using gtk_icon_view_set_pixbuf_column() and pack a
cell renderer manually instead.

https://bugzilla.gnome.org/show_bug.cgi?id=658910
2011-09-15 21:07:18 -04:00
Bastien Nocera
a7fc3352c6 shell: Replace window sizing code
We want a sensible minimum height and a maximum height, as
mentioned in the design pages.

This simplifies the code greatly, and will hopefully make
the window positioning work better as well.

https://bugzilla.gnome.org/show_bug.cgi?id=658068
2011-09-08 17:00:59 +01:00
Giovanni Campagna
1f9ae38c2f Add a way for panels to receive additional arguments.
This patch introduces the "argv" property to CcPanel. Panels that
wish to handle extra arguments shall override it and act
appropriately in the constructor.

https://bugzilla.gnome.org/show_bug.cgi?id=657093
2011-09-05 18:07:52 +02:00
Bastien Nocera
823c3ec14b shell: Use symbolic name for minimum height 2011-09-02 15:34:54 +01:00
Bastien Nocera
fed883bbec shell: Limit reading from our own apps directory
https://bugzilla.gnome.org/show_bug.cgi?id=657867
2011-09-02 14:30:44 +01:00
Bastien Nocera
22759b2116 Revert "shell: Only load desktop files from our dirs"
This reverts commit dde732b9a9.

https://bugzilla.gnome.org/show_bug.cgi?id=657867
2011-09-02 14:28:14 +01:00
Bastien Nocera
054f798b16 shell: Add Ctrl+Q as a way to exit the shell
https://bugzilla.gnome.org/show_bug.cgi?id=653443
2011-08-26 15:43:57 +01:00
Bastien Nocera
93d7d6b6ea shell: Don't repeat the item title when searching
https://bugzilla.gnome.org/show_bug.cgi?id=657020
2011-08-26 13:59:23 +01:00
Bastien Nocera
dde732b9a9 shell: Only load desktop files from our dirs
As we don't know how to load the extension points in the
other directories anyway. Stops system-wide desktop files
appearing in a prefixed build.
2011-08-26 11:35:27 +01:00
Vincent Untz
48dec984db shell: Do not add a trailing dash in search target when comment is empty
When the comment is empty, we do not want to add a dash to the search
target, as it will be a trailing one.

https://bugzilla.gnome.org/show_bug.cgi?id=655487
2011-08-02 10:16:11 +02:00
Vincent Untz
c635d8e875 shell: Port to new gnome-menus API
https://bugzilla.gnome.org/show_bug.cgi?id=655110
2011-08-01 19:41:36 +02:00
Marek Kasik
7962a25ecf Printers: Open firewall for required connections when searching for printers
This commit enables services mdns, ipp, ipp-client and samba-client on
firewall for 5 minutes for detection of network printers (#648784).
It enables required services permanently for printers selected by user
for addition then. It shows a notification for the permanent enable.
It uses firewalld, so if it is not installed or running it shows a warning
message to the user in the place where discovered printers will be shown
(both local and network). The warning disappears after the finish of
printers discovery (but not from network part if no printer was found).
2011-07-27 13:33:48 +02:00
Bastien Nocera
2066d456ab shell: Shrink vertically
So that it has more chances of fitting on a netbook screen. This is
done by removing the 6 pixel margin, and the 12 pixel bottom padding.

This gives us the whole panel with a height of around 550 pixels with
the default text size, which should be enough to display on a 600 pixels
high screen.

https://bugzilla.gnome.org/show_bug.cgi?id=645808
2011-07-14 15:24:03 +01:00
Michael Terry
0a8669a5b5 Add Unity to OnlyShowIn fields
https://bugzilla.gnome.org/show_bug.cgi?id=653661
2011-06-30 12:44:52 +01:00
Bastien Nocera
2e44890421 shell: Print warning for uninstantiable panels
Install stuff in /usr/local, desktop icon shows up, and it doesn't
work. That's because it can't load the GIO extension. Yell like a madman
about it.

https://bugzilla.gnome.org/show_bug.cgi?id=652583
2011-06-21 17:37:33 +01:00
Bastien Nocera
632501cf1c shell: " " isn't a search term, really
Don't re-filter for added trailing or leading spaces
2011-06-21 17:37:33 +01:00
Bastien Nocera
a37f8770e5 shell: Fix bad rendering of search results
Don't use pango_cairo_layout_path(), which doesn't do any
hinting whatsoever, use gtk_render_layout() from GTK+ instead,
as the text cell renderer already does.

With help from Matthias Clasen <mclasen@redhat.com>

https://bugzilla.gnome.org/show_bug.cgi?id=652709
2011-06-21 15:16:53 +01:00
Philip Withnall
5ec3fa9941 shell: Use proper Unicode ellipses in the search renderer 2011-06-17 12:30:05 +01:00
Bastien Nocera
8473ed33eb shell: Make --help-all and --help-gtk work
https://bugzilla.gnome.org/show_bug.cgi?id=652165
2011-06-10 17:23:56 +01:00
Florian Müllner
0402e73b8f shell: Don't update the visibility of the lock button
Currently the lock button's visibility is updated on permission
changes - if the active panel does provide a permission object,
the button is shown, otherwise hidden.
As GtkLockButton itself does manage its visibility, it is not
necessary to handle it in g-c-c. In fact it is harmful, as the
more sophisticated handling in GtkLockButton is overwritten: for
instances, GtkLockButton hides itself if an action is allowed and
the permission can not be released. By overwriting the behavior,
gnome-control-center ends up showing a non-functional button.

https://bugzilla.gnome.org/show_bug.cgi?id=652299
2011-06-10 17:37:57 +02:00
Cosimo Cecchi
4c405ae5bf shell: move the raised class hint to the tool item
This fixes the raised buttons in the primary toolbar with GTK+ master.
2011-06-06 16:05:20 -04:00
Matthias Clasen
e5072232ee Add a lockbutton to the toolbar
And populate it from the get_permission method added earlier.

https://bugzilla.gnome.org/show_bug.cgi?id=650292
2011-05-23 16:10:04 +01:00
Matthias Clasen
2219fc116c Register a symbolic icon size for icons in sidebar lists
That way, we can use 24, but still remain (at least theoretically)
themable for the benefit of large-print a11y themes.
2011-05-20 12:32:17 -04:00
Rodrigo Moya
a04a873d68 Kill warning in g_print call 2011-05-20 12:27:05 +02:00
Matthias Clasen
bb858701a3 Shell: Make ShellSearchRenderer accessible
Since GtkIconViews a11y implementation only takes text from
GtkCellRendererText::text, derive ShellSearchRenderer from
GtkCellRendererText and set the text property. Now orca
reads the search results nicely.
2011-05-16 00:52:07 -04:00