Commit graph

57 commits

Author SHA1 Message Date
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
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
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
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
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
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
Gerd Kohlberger
0a918a27aa shell: Fix resizing when switching from panel to panel
set_active_panel_from_id doesn't remove the active
panel from the notebook before adding a new one. After that the shell
window can't shrink below the size of the original panel.

This might also cause crashers as some parts of the panel are left
alive, behind another notebook tab, ready to receive signals.

https://bugzilla.gnome.org/show_bug.cgi?id=636596
2011-03-17 11:51:19 +00:00
William Jon McCann
b86c55cf47 shell: oops gmenu_tree isn't a gobject
So don't unref it like one.
2011-03-07 16:20:11 -05:00
William Jon McCann
307f81e419 Reload the list of panels when the menu changes
https://bugzilla.gnome.org/show_bug.cgi?id=630902
2011-03-06 05:02:19 -05:00
Kjartan Maraas
d441df289c Avoid null pointer dereference and remove unused variable 2011-03-02 20:06:20 +01:00
Kjartan Maraas
916e4d2f16 shell: GCC 4.6 warning fixes
https://bugzilla.gnome.org/show_bug.cgi?id=642810
2011-03-02 18:09:17 +00:00
Bastien Nocera
367daae2e4 shell: Fix searching for anything hiding widgets
When searching, don't hide the search entry...
2011-02-14 15:57:13 +00:00
Thomas Wood
7172bc2b06 shell: make sure the search entry doesn't appear when in a panel
Prevent the search entry appearing when opening a panel from another panel.
2011-02-12 19:37:27 +00:00
Thomas Wood
fe7b2212cc shell: remove debugging output 2011-02-12 19:23:57 +00:00
Bastien Nocera
19082e16ac shell: Use symbolic icons in the search entry
https://bugzilla.gnome.org/show_bug.cgi?id=642167
2011-02-12 14:47:59 +00:00
Bastien Nocera
b009d6875b shell: Add shortcuts to focus search entry
Ctrl+S and Ctrl+F are used in overview mode to focus the search entry.

https://bugzilla.gnome.org/show_bug.cgi?id=409230
2011-02-02 11:38:02 +00:00
Bastien Nocera
c274f914cd shell: Avoid windows with no icons
Set the default icon for child windows as well, when setting the
panel's icon.
2011-01-24 13:49:37 +00:00
Thomas Wood
d50dadc8ac shell: only include items identified as settings panels in the list
Simplify the category requirements and do not include items that are not
settings panels.
2010-12-20 21:04:49 +00:00
Matthias Clasen
01f8f489d2 Shell: fix initial window size
The code is setting the min-content-height out of a ::size-allocate
handler, so the resulting size request is ignored. Doing a separate
size request in an idle has the desired effect.
2010-12-03 21:22:26 -05:00
Bastien Nocera
fbbb9c35a9 shell: Add -o parameter to show the overview
Instead of just presenting the main window.
2010-12-02 19:17:38 +00:00
Thomas Wood
aac24399f8 shell: ensure the background and foreground colours are consistent
Modify the colours of the viewport and category view widgets so that
they are consistent with the icon view.
2010-11-20 17:13:29 +00:00
Matthias Clasen
d7b2e3144d shell: start in the right size
When starting up with a single panel, we don't want to show the full-height
window initially.
2010-11-19 15:08:23 -05:00
Matthias Clasen
aef8513752 shell: Add keyword search
This commit makes search look at the X-GNOME-Keywords key. The key
is expected to hold a list of strings, and is translatable.

http://bugzilla.gnome.org/show_bug.cgi?id=634926
2010-11-15 18:04:57 -05:00
William Jon McCann
93f6035425 shell: subtract a hacky constant from the screen height for dialog height
Since the window also has a titlebar and toolbar.  Should probably
try to get the size of those somehow.
2010-11-13 11:46:41 -05:00
Gerd Kohlberger
9b985450f1 Add a get_toplevel accessor to CcShell
Can be used to parent dialogs in CcPanel implementations.
https://bugzilla.gnome.org/show_bug.cgi?id=621940
2010-11-05 00:42:55 +00:00
William Jon McCann
7d50b3787c [shell] Don't use window before it is realized 2010-11-01 16:58:40 -04:00
William Jon McCann
b2dc1dffa1 Do a better job of automatically sizing the window to fit contents
Try our best to avoid scrollbars.
2010-10-31 17:55:20 -04:00
William Jon McCann
b9b2767d33 Tighten up the spacing of the category views 2010-10-31 13:32:14 -04:00
Bastien Nocera
93ee44fe43 shell: Make it build and work against new GApplication 2010-10-22 14:08:11 +01:00
Bastien Nocera
cdffa4f46b shell: handle GtkSizeRequest removal 2010-10-06 11:45:33 +01:00
Javier Jardón
0df3b03247 Use gtk_widget_get_preferred_size() instead gtk_size_request_get_size()
As GtkSizeRequest was moved into GtkWidget
2010-09-30 19:42:23 +02:00
Bastien Nocera
0ae5a7b8cc shell: Make search entry single-iconed
As per Jakub's request.
2010-09-28 16:49:17 +01:00
Kalev Lember
4859ae9b30 bgo#629299 - Prefix key constants with _KEY
In GTK+ 3 key constants have gained _KEY prefix.
2010-09-10 15:00:13 -05:00
Kalev Lember
af28fbb0bd bgo#629299 - Remove deprecated use of gtk_icon_view_set_orientation
gtk_icon_view_set_orientation() was deprecated in GTK+ 2.22 and removed
in GTK+ 3 in favour of gtk_icon_view_set_item_orientation().
2010-09-10 15:00:07 -05:00
Thomas Wood
31dab0416b shell: change the fixed width to 675 pixels 2010-08-25 19:18:48 +01:00
Thomas Wood
84d07fee7a shell: use a fixed width for the main window
Use a fixed width for the shell, since resizing horizontally is more
awkward for the user than resizing vertically.
2010-07-22 17:48:18 +01:00
Thomas Wood
b7ab940c78 shell: make sure the background colours are updated if the style changes
Make sure the background of the main vbox uses base/text colour
combinations and is updated if the style changes
2010-07-22 17:29:47 +01:00
Thomas Wood
554e23aaf2 shell: allow the shell to shrink smaller than it's initial size
Reset the size request when opening a panel so that the new size can be
smaller than the size of the main view.
2010-07-16 15:18:07 +01:00
Thomas Wood
2e47f04fc9 shell: free the menu directory contents list 2010-07-16 14:44:14 +01:00
Thomas Wood
a1bf960a75 shell: resize the window to the size of the panel being opened
Resize the shell window when a panel is activated so that it is at the
natural size of the panel.
2010-07-14 16:22:06 +01:00
Thomas Wood
ce2f25082a shell: Fix build with recent GTK+ deprecations
GtkNotebookPage has been deprecated and the prototype of the
GtkNotebook::switch-page signal has changed.
2010-07-14 12:02:03 +01:00
Jonh Wendell
91c5e26bcf Make build works with GSEAL 2010-06-30 14:01:39 +01:00
Thomas Wood
6f7d9d9364 shell: don't call gtk_widget_show_all on the new panel
Don't call gtk_widget_show_all when loading a panel as there may be widgets
that the panel does not want to be visible initially.
2010-06-04 16:34:52 +01:00
Thomas Wood
b8d094cad7 shell: load the X-GNOME-Settings-Panel ID into the data model
Load the panel id from the .desktop file into the model so that it does not
need to be loaded again later.
2010-06-04 16:34:52 +01:00