Commit graph

386 commits

Author SHA1 Message Date
Bastien Nocera
c735e4e689 shell: Remove custom marshallers 2012-12-11 17:09:05 +01:00
Bastien Nocera
4dd36b4279 shell: Simplify desktop file loading
By using known patterns for the desktop file name.
2012-12-11 17:09:04 +01:00
Bastien Nocera
3686cf7eb8 shell: Make all control-center plugins static
This makes loading faster, with less I/O, avoids unnecessary
code duplication (around 1k lines shaved), and ensures that
all the panels link and work appropriately.

By the same token, it will stop external panels from being
created, and loaded.

https://bugzilla.gnome.org/show_bug.cgi?id=690036
2012-12-11 17:07:39 +01:00
Bastien Nocera
80dc7c83cb shell: Remove the unused "Other" section of the shell 2012-12-11 17:07:38 +01:00
Cosimo Cecchi
867fff4f4c shell: use the "view" style class for the main viewport
Currently, gnome-themes-standard sets a white background on all
GtkViewport widgets.
We want to stop rendering one by default, so add a style class to the
main viewport that ensures it gets the same background as the icon
views it packs inside.

https://bugzilla.gnome.org/show_bug.cgi?id=689700
2012-12-07 10:50:59 -05:00
Bastien Nocera
1e2f8202ae shell: Fix alignment of home button in RTL languages
https://bugzilla.gnome.org/show_bug.cgi?id=689533
2012-12-06 10:08:14 +01:00
Bastien Nocera
ae24773740 shell: Print the name of the missing icon 2012-12-03 14:57:42 +01:00
Bastien Nocera
d52ff9e8b2 shell: Better help for panel and panel args
https://bugzilla.gnome.org/show_bug.cgi?id=669283
2012-12-03 08:23:06 +01:00
Cosimo Cecchi
2dee0fd591 build: Import egg-list-box as a git submodule
https://bugzilla.gnome.org/show_bug.cgi?id=687490
2012-11-27 11:32:11 +01:00
Thomas Wood
174776a7c0 shell: Ensure the home button is the correct height
To allow the home button to have the correct height, the aspect frame it is
inside has to be given enough horizontal space to allow the button to be
square. The home button also needs to be in a size group with the
"search-entry" widget rather than the "entry-alignment" widget, since the
latter is resized when the search entry is shown or hidden.

https://bugzilla.gnome.org/show_bug.cgi?id=681510
2012-11-06 16:35:16 +00:00
Bastien Nocera
c21640fa6b shell: Rename to "Settings"
"System" settings seem like the wrong thing to tweak to get
to things like background, and a number of other preferences.

Rename the desktop file and the window "Settings"

https://bugzilla.gnome.org/show_bug.cgi?id=681543
2012-11-06 10:14:23 +01:00
Jeremy Bicha
da1754961a shell: Add F1 accelerator to show help
https://bugzilla.gnome.org/show_bug.cgi?id=687485
2012-11-02 21:00:42 -04:00
Bastien Nocera
4f8ac6639e shell: Don't remove old panel if new one is broken
If a valid panel fails to load (outdated library, file missing, etc.)
don't remove the old panel, but keep it around instead.
2012-11-02 17:26:45 +01:00
Giovanni Campagna
e178a200c1 Remove previous panel widget when switching to a new one
If we don't remove it, it intereferes with the layout of the new panel
and cause weird overallocation effects.

https://bugzilla.gnome.org/show_bug.cgi?id=687232
2012-11-02 17:26:45 +01:00
Bastien Nocera
b3287e1b97 shell: Fix entering the same panel twice
Manually this time.

https://bugzilla.gnome.org/show_bug.cgi?id=684812
2012-09-25 21:25:19 +02:00
Bastien Nocera
876d41b141 shell: Pass args to existing panels
When re-activating the same panel, we could destroy and recreate the
panel, or better reuse the panel, and set the new argv
(usually to switch pages).

Since we're changing the "argv" property of panels to not be construct-
only anymore, we reviewed the panels for potential memory leaks as well.

https://bugzilla.gnome.org/show_bug.cgi?id=684490
2012-09-20 22:58:32 +02:00
Bastien Nocera
ab435aa9e1 shell: Rename current_panel to current_panel_box
So that we can use current_panel for the current panel, not
for the container parent of the panel.

https://bugzilla.gnome.org/show_bug.cgi?id=684490
2012-09-20 22:58:32 +02:00
Matthias Clasen
a955ec4152 Switch files created by me to GPLv2+
This matches the rest of the control-center code base.
https://bugzilla.gnome.org/show_bug.cgi?id=683420
2012-09-06 19:07:09 -04:00
Matthias Clasen
41a79d6a35 Fix big editable labels
The code we used to match the entry and label font size and
weight broke down with the latest CSS improvements in GTK+.
Use a new GtkEntry api for this instead.
The GTK+ requirement has been bumped to 3.5.13.
2012-08-31 15:12:05 -04:00
Ray Strode
b0e7a5efa8 panels: add register macro
Bastien says he doesn't like the blank class_finalize
functions in every panel and he would like a wrapper
macro to hide them.

This commit does that.
2012-08-21 14:32:33 -04:00
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
Cosimo Cecchi
1b3e877ef2 shell: remove CcStrengthBar
Panels are all ported to GtkLevelBar instead.

https://bugzilla.gnome.org/show_bug.cgi?id=679984
2012-07-16 11:29:26 +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
Matthias Clasen
8c9a1eec33 Be robust against extraneous signal emissions
It seems that we are occasionally get duplicate ClutterTimeline::completed
emissions. Make the code robust against that.

https://bugzilla.gnome.org/show_bug.cgi?id=677946
2012-06-20 19:14:04 +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
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