Commit graph

112 commits

Author SHA1 Message Date
Bastien Nocera
e7d6514a11 shell: Only link to clutter-gtk with cheese support 2012-08-18 16:09:24 +01:00
Bastien Nocera
69b2a05b25 shell: Remove CcNotebook
https://bugzilla.gnome.org/show_bug.cgi?id=682127
2012-08-18 16:09:01 +01:00
Bastien Nocera
10c00125f4 shell: Drop panel transitions
They're not finished and don't match what the designers would want.

https://bugzilla.gnome.org/show_bug.cgi?id=682127
2012-08-18 16:03:19 +01:00
Bastien Nocera
72fd5636e5 shell: Add GtkNotebook helper functions
https://bugzilla.gnome.org/show_bug.cgi?id=682127
2012-08-18 16:02:39 +01:00
Bastien Nocera
ee32c358f1 shell: Don't handle shortcuts with excess modifiers
Ctrl+Alt+W shouldn't be handled the same way as Ctrl+W.

https://bugzilla.gnome.org/show_bug.cgi?id=675475
2012-07-16 18:05:04 +01:00
Bastien Nocera
3b4f577652 shell: Fix not being able to assign Ctrl+Q to a shortcut
Because the shell window was capturing it before the key editing
cell had a change to get to it.

s/g_signal_connect/g_signal_connect_after/

https://bugzilla.gnome.org/show_bug.cgi?id=671448
2012-07-16 17:05:48 +01:00
Bastien Nocera
4db7021513 shell: Fix search results not appearing
Introduced in commit d382c42e5c by
some overeager code removal.

https://bugzilla.gnome.org/show_bug.cgi?id=678514
2012-06-21 10:36:08 +01:00
Jasper St. Pierre
fd3afa8d4f shell: Handle non-existant panels more gracefully
If we're at the overview screen and try to launch a non-existant panel,
we shouldn't remove the scroll view.

https://bugzilla.gnome.org/show_bug.cgi?id=677980
2012-06-20 19:17:36 +01:00
Jasper St. Pierre
d382c42e5c shell: Remove reparenting hacks
Now that CcNotebook is buildable, we don't need to do these ugly hacks.
2012-06-12 13:58:17 -04:00
Bastien Nocera
42c65b5c5f shell: Use GtkSearchEntry
And require GTK+ 3.3.5 for it.
2012-06-11 19:07:01 +01:00
Bastien Nocera
94a46524b5 shell: Don't animate between overview and search pages 2012-06-11 14:29:39 +01:00
Bastien Nocera
f2a9d3a478 shell: Fix crash when using keynav in overview
get_item_views() was expecting all the children of the overview
to be of type "CcShellCategoryView".

It's not the case since 620e70113c
added GtkSeparators as children.

We now just skip them non-views in get_item_views().

https://bugzilla.gnome.org/show_bug.cgi?id=677314
2012-06-06 16:13:35 +01:00
William Jon McCann
e18742c90e Implement a new search results design
Search results aren't laid out evenly and they are packed together too tightly.
Also, panel descriptions are truncated. There is plenty of space available, we
might as well use it.

https://bugzilla.gnome.org/show_bug.cgi?id=654977
2012-05-22 11:43:13 -04:00
Bastien Nocera
85dbb1d8c5 shell: Update scrolled window height on smallness change
When the small mode changes, make sure to update the scrolled
window's natural height.

https://bugzilla.gnome.org/show_bug.cgi?id=673869#c47
2012-05-21 18:02:35 +01:00
Bastien Nocera
8efba88f4c shell: Use enum for small screen
Instead of 2 variables to track the unset status.
2012-05-21 16:03:00 +01:00
Bastien Nocera
a112361267 shell: Don't use workarea height
Instead of monitor height to check for the available height, as
the workarea height won't have been updated fast enough after
a monitors-changed signal.

https://bugzilla.gnome.org/show_bug.cgi?id=673869#c47
2012-05-21 15:45:19 +01:00
Florian Müllner
7e77b7b7da shell: Fix ctrl-w keybinding 2012-05-18 18:48:38 +02:00
Florian Müllner
ad4da16126 shell: Make the main window a GtkApplicationWindow
This is a prerequisite of using the new GMenu API. Also move the
check for small screen sizes introduced in commit 22ed5a9fd5, as
GtkApplicationWindows cannot be realized unless their application
property has been set.

https://bugzilla.gnome.org/show_bug.cgi?id=675471
2012-05-18 18:48:38 +02:00
Florian Müllner
78717031db shell: Make sure the "active-panel" property is updated
The (currently unused) cc_shell_get_active_panel() method is useless
unless "active-panel" is actually updated correctly.

https://bugzilla.gnome.org/show_bug.cgi?id=675471
2012-05-18 18:48:37 +02:00
Florian Müllner
ce8e1208bc shell: Pass the object to show_overview_page(), not its private
We will need it to update the "active-panel" property properly.

https://bugzilla.gnome.org/show_bug.cgi?id=675471
2012-05-18 18:48:37 +02:00
Bastien Nocera
19f2772107 shell: Rename search renderer
And cc- prefix it, like the rest of our widgets.
2012-05-18 11:48:29 +01:00
Bastien Nocera
f8c0eceb80 shell: Use CcNotebook instead of GtkNotebook 2012-05-09 17:42:13 +01:00
Bastien Nocera
8a01c7caf1 shell: Remove another use of page numbers 2012-05-09 16:09:04 +01:00
Bastien Nocera
43b53020ca shell: Move helper functions 2012-05-09 16:08:16 +01:00
Bastien Nocera
e01e33e76e shell: Remove prior panel at the last minute
Once we've already switch to a new panel.
2012-05-09 16:07:47 +01:00
Bastien Nocera
cdbd37fa47 shell: Add return value to activate_panel() 2012-05-09 16:07:23 +01:00
Bastien Nocera
d25563f5c4 shell: Flatten activate_panel()
And exit as soon as we fail.
2012-05-09 16:07:00 +01:00
Bastien Nocera
ec7f8c9b51 shell: Use widgets rather than page numbers
To differentiate children of a GtkNotebook.
2012-05-09 16:04:24 +01:00
Bastien Nocera
22ed5a9fd5 shell: Check for small screen before showing window
Map the window before displaying it, so we can maximise it straight
away and avoid visible resizing.
2012-05-08 19:15:19 +01:00
Bastien Nocera
ecda0ad5c0 shell: Lower the small screen fixed height
As this is the minimum size of the content view, not the whole window.
2012-05-08 19:12:46 +01:00
Bastien Nocera
3bd227a905 shell: Maximise window on monitor size change
When the monitor changes size, and we have a small screen, reset
small_screen_set so that we maximise the window.
2012-05-08 18:54:28 +01:00
Bastien Nocera
c3fa222461 Revert "shell: Reset "small_screen_set" when we use a big screen"
This reverts commit 3e5f488160.
2012-05-08 18:53:04 +01:00
Bastien Nocera
f264ebea0b shell: Set the minimum content height
Instead of using gtk_widget_size_request() on the parent scrolled
window, to make sure that border are taken into account when sizing
the icon views.
2012-05-08 18:51:21 +01:00
Bastien Nocera
3e5f488160 shell: Reset "small_screen_set" when we use a big screen
Otherwise we wouldn't maximise the screen again.
2012-05-08 18:46:22 +01:00
Jon McCann
9c2e8c28f5 Hide window titlebar when maximized
https://bugzilla.gnome.org/show_bug.cgi?id=673869
2012-05-08 17:04:04 +01:00
Jon McCann
796d4ebafa Fit three columns of search results
And center labels vertically that have no search matching text.

https://bugzilla.gnome.org/show_bug.cgi?id=673869
2012-05-08 17:04:03 +01:00
Jon McCann
620e70113c Add horizontal separators between sections
Based on patch from Ubuntu

https://bugzilla.gnome.org/show_bug.cgi?id=673869
2012-05-08 17:03:58 +01:00
Jon McCann
ad0e02f100 shell: Be smarter about smaller screen sizes
Make the minimum window size smaller, and the window resizable when
using small screens.

Based on patch from Ubuntu

https://bugzilla.gnome.org/show_bug.cgi?id=673869
2012-05-08 17:02:01 +01:00
Jon McCann
d955d484da shell: Increase default window size
https://bugzilla.gnome.org/show_bug.cgi?id=673869
2012-05-08 17:02:01 +01:00
Bastien Nocera
b393ca6d02 shell: Move all sizing hacks in one location
And make sure that the overview has no scrollbars to start with.
Add a FIXME to handle smaller sized screens later on.
2012-05-08 17:02:01 +01:00
William Jon McCann
9d55273c14 Revert "Increase default window size"
This reverts commit f36d42b9d1.
2012-05-01 14:55:42 -04:00
William Jon McCann
523a85f704 Revert "Add horizontal separators between sections"
This reverts commit e924ea03fa.
2012-05-01 14:55:41 -04:00
William Jon McCann
b796b4c376 Revert "Hide window titlebar when maximized"
This reverts commit 700ea6a1aa.
2012-05-01 14:55:38 -04:00
Jon McCann
700ea6a1aa Hide window titlebar when maximized
https://bugzilla.gnome.org/show_bug.cgi?id=673869
2012-05-01 14:09:09 -04:00
Jon McCann
e924ea03fa Add horizontal separators between sections
Based on patch from Ubuntu

https://bugzilla.gnome.org/show_bug.cgi?id=673869
2012-05-01 14:09:09 -04:00
Jon McCann
f36d42b9d1 Increase default window size
And be smarter about small screen sizes.

Based on patch from Ubuntu

https://bugzilla.gnome.org/show_bug.cgi?id=673869
2012-05-01 14:09:09 -04: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
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
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