Commit graph

306 commits

Author SHA1 Message Date
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
Jasper St. Pierre
f8da96e425 shell: Make CcNotebook buildable 2012-06-12 13:58:17 -04:00
Jasper St. Pierre
54d24f0574 shell: Remove unnecessary tabs 2012-06-12 13:58:15 -04:00
Jasper St. Pierre
5d228b707a shell: Fix wrong function being used to get width
get width better than get height...
2012-06-12 18:28:01 +01:00
Bastien Nocera
7d7fc2e124 shell: Fix possible crashers when there are no pages
Wouldn't happen in gnome-control-center. Spotted by Jasper St. Pierre
2012-06-12 18:17:38 +01: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
0fdecb67c3 shell: Update test-notebook for API change 2012-06-11 14:29:39 +01:00
Bastien Nocera
56bd29ebf3 shell: Make it possible to not animate transitions
In CcNotebook.
2012-06-11 14:29:38 +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
Bastien Nocera
93bc61e0b4 shell: Fix --verbose not working anymore 2012-05-23 18:07:08 +01:00
Bastien Nocera
a2d338b2d8 shell: Add debug to CcNotebook scrolling 2012-05-23 18:07:08 +01:00
Bastien Nocera
95d5e61100 shell: Fix first selection not working
We weren't saving the last_width early enough.
2012-05-23 17:08:28 +01:00
Bastien Nocera
359f029419 shell: Fix keyboard focus in animated notebook
But just for panels, the main overview is still sub-par.
2012-05-22 18:21:37 +01:00
Bastien Nocera
b82141038e shell: CcNotebook can focus indeed 2012-05-22 18:21:37 +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
0b93e7c80f shell: Make all-settings button always square
By wrapping it in an aspect frame.

https://bugzilla.gnome.org/show_bug.cgi?id=670551
2012-05-21 19:16:55 +01:00
Bastien Nocera
9e6ed56939 shell: Fix possible warning on startup
When started with a specific panel listed.
2012-05-21 18:51:18 +01: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
c626ba5cdf shell: Add application menu
Add a simple application menu containing just "Help" and "Quit".

https://bugzilla.gnome.org/show_bug.cgi?id=675471
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
6827068ade cc-panel: Add get_help_uri() vfunc
We want to allow panels to point to a specific help page, so add
a vfunc for that.

https://bugzilla.gnome.org/show_bug.cgi?id=675471
2012-05-18 18:48:37 +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
948867b6d3 shell: Fix resetting page selection
When the page selection happens when another page selection hasn't
started yet, we need to cancel the previous animation, or only one
of them might be effectively acted upon.

This fixes the page from being selected if the search term is changed
quickly (you'd end up at the overview page instead of staying on the
search results page).

Requires the clutter patch from:
https://bugzilla.gnome.org/show_bug.cgi?id=676334

https://bugzilla.gnome.org/show_bug.cgi?id=676328
2012-05-18 17:43:08 +01: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
835a09e1f8 shell: Destroy the page instead of removing it
Because we don't actually need the child simply removed.
Works-around run-time warnings with clutter-gtk.
2012-05-16 13:17:12 +01:00
Bastien Nocera
dbfd9ecb59 shell: Fix another memleak in CcNotebook 2012-05-11 12:21:37 +01:00
Bastien Nocera
2ea396cee3 shell: Chain up CcNotebook's finalize function 2012-05-11 12:18:34 +01:00
Bastien Nocera
b96c440da9 shell: Remove left-over FIXME 2012-05-11 11:57:01 +01:00
Bastien Nocera
bec2efb36a shell: Try to always use delayed removal 2012-05-10 19:20:58 +01:00
Bastien Nocera
62d2bcf0b8 shell: Fix xrefs not working
We were scrolling to parts of the stage where we wouldn't have
a page anymore. Don't do that, and only remove pages when we're
done with animations.
2012-05-10 18:36:21 +01:00
Bastien Nocera
9225b11112 shell: Update animated notebook TODO 2012-05-10 11:22:50 +01:00
Bastien Nocera
f8c0eceb80 shell: Use CcNotebook instead of GtkNotebook 2012-05-09 17:42:13 +01:00
Bastien Nocera
74aa98b7c8 shell: Add animated notebook
Powered by gtk-clutter.
2012-05-09 16:50:21 +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
William Jon McCann
3bc75764c6 Use menubar style class for toolbar
https://bugzilla.gnome.org/show_bug.cgi?id=673869
2012-05-08 18:51:21 +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