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 603817 - Show less stuff on panel on low resolutions
Show less stuff on panel on low resolutions
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2009-12-04 21:05 UTC by Vincent Untz
Modified: 2010-08-11 14:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to save some panel space (2.33 KB, patch)
2009-12-04 21:05 UTC, Vincent Untz
rejected Details | Review

Description Vincent Untz 2009-12-04 21:05:44 UTC
Created attachment 149121 [details] [review]
Patch to save some panel space

We have this patch in openSUSE, and I'm wondering what you think about it -- whether it makes sense for it upstream.

It hides the clock if the screen width is less than 1024, and it can also hide the labels for the option widgets if the width is less than 1280.

Any opinion on this?
Comment 1 Ray Strode [halfline] 2009-12-04 21:34:19 UTC
Review of attachment 149121 [details] [review]:

I'm okay with it generally (not sure about yippi and mccann's opinion).

I think a nicer solution, though, might be to degenerate dynamically based on crowding.

e.g., don't say if "screen < blah run in low res mode" instead say "if panel doesn't have enough room for clock, hide clock".

::: gdm-2.29.1.orig/gui/simple-greeter/gdm-greeter-panel.c
@@ +970,3 @@
+        if (!screen)
+                screen = gdk_screen_get_default ();
+

should ben screen == NULL and should have braces to match gdm style

@@ +973,3 @@
+        /* If resolution is limited, hide clock to conserve horizontal space */
+
+        if (!screen || gdk_screen_get_width (screen) >= 1024)

checking the screen width isn't right.  if you have a netbook plugged into an external monitor and the login screen ends up on the netbook, you still want to hide things.

::: gdm-2.29.1.orig/gui/simple-greeter/gdm-option-widget.c
@@ +656,3 @@
+                if (!screen || gdk_screen_get_width (screen) >= 1280)
+                        gtk_widget_show (widget->priv->label);
+ 

same deal, needs spacing fixes and == NULL, and checking screen width is wrong.  should check monitor width instead (or better yet be less hard coded and more dynamic)
Comment 2 Brian Cameron 2009-12-05 00:54:14 UTC
I don't mind if GDM has smarts to make it look better.  However, I think that users, or at least the sysadmin should have control over what features are available.  Removing an arbitrary applet based on an arbitrary pixel size seems wrong.  

The sysadmin should have the ability to configure which applets are shown in
the panel in general.  If we have features to hide applets based on "crowding",
then the sysadmin should be able to enable or disable this feature.  Also, I
think that it would be nice if the sysadmin could decide what applets are
removed when crowding happens.  Perhaps gconf keys could be used to store this
sort of configuration.

This is a bit more complicated than the proposed patch, but I think it would be
better if this were more configurable.  If others feel that the proposed patch
is good enough for now, then we can discuss.  I'm not strongly opposed to this
particular hack if people think it's a reasonable feature until more sophisticated
configuration is available.
Comment 3 William Jon McCann 2010-06-22 03:06:00 UTC
Comment on attachment 149121 [details] [review]
Patch to save some panel space

Prefer to go with something that hides things as needed rather than use magic values.
Comment 4 Sebastien Bacher 2010-08-11 14:02:15 UTC
isn't that issue fixed in the current version with the labels not being displayed next to the entries?
Comment 5 Vincent Untz 2010-08-11 14:05:32 UTC
Yeah, I guess it is.