After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 677980 - shell: Handle non-existant panels more gracefully
shell: Handle non-existant panels more gracefully
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: shell
unspecified
Other All
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-06-12 22:01 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2012-06-20 18:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
shell: Handle non-existant panels more gracefully (2.79 KB, patch)
2012-06-12 22:01 UTC, Jasper St. Pierre (not reading bugmail)
reviewed Details | Review
shell: Handle non-existant panels more gracefully (2.71 KB, patch)
2012-06-13 23:56 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description Jasper St. Pierre (not reading bugmail) 2012-06-12 22:01:11 UTC
Doing:

  $ gnome-control-center
  $ gnome-control-center non-existant

will print a bunch of warnings. Fix those.
Comment 1 Jasper St. Pierre (not reading bugmail) 2012-06-12 22:01:12 UTC
Created attachment 216236 [details] [review]
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.
Comment 2 Bastien Nocera 2012-06-13 09:06:35 UTC
Review of attachment 216236 [details] [review]:

::: shell/gnome-control-center.c
@@ -946,3 @@
-			       priv->scrolled_window,
-			       TRUE);
-      g_warning ("Could not find settings panel \"%s\"", start_id);

That warning has a purpose.
Comment 3 Jasper St. Pierre (not reading bugmail) 2012-06-13 23:56:10 UTC
Created attachment 216359 [details] [review]
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.



Whoops, I removed it accidentally.
Comment 4 Bastien Nocera 2012-06-14 10:02:17 UTC
(In reply to comment #3)
> Created an attachment (id=216359) [details] [review]
> shell: Handle non-existant panels more gracefully

Patch itself looks fine.

> If we're at the overview screen and try to launch a non-existant panel,
> we shouldn't remove the scroll view.

I get:
** (gnome-control-center:9271): CRITICAL **: cc_notebook_remove_page: assertion `GTK_IS_WIDGET (widget)' failed
And the overview is still there. Granted it's not nice, but it's not as critical as removing the scroll view.
Comment 5 Jasper St. Pierre (not reading bugmail) 2012-06-14 16:59:57 UTC
The cc-notebook doesn't seem to handle it too well. If I then click on something, it doesn't do the fancy animation.
Comment 6 Bastien Nocera 2012-06-20 18:17:46 UTC
Attachment 216359 [details] pushed as fd3afa8 - shell: Handle non-existant panels more gracefully