Commit graph

89 commits

Author SHA1 Message Date
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
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
Rodrigo Moya
1865c9ba3d shell: Make sure we gtk_widget_show the search view 2011-09-28 13:34:17 +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
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