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 711856 - Truncated switches in Automatic Suspend Dialog
Truncated switches in Automatic Suspend Dialog
Product: gnome-control-center
Classification: Core
Component: Power
Other Linux
: Normal normal
: ---
Assigned To: Richard Hughes
Control-Center Maintainers
: 710508 (view as bug list)
Depends on:
Reported: 2013-11-11 17:38 UTC by Volker Sobek (weld)
Modified: 2014-04-25 14:49 UTC
See Also:
GNOME target: ---
GNOME version: ---

Truncated switches in Automatic Suspend Dialog (13.80 KB, image/png)
2013-11-11 17:38 UTC, Volker Sobek (weld)

Description Volker Sobek (weld) 2013-11-11 17:38:19 UTC
Created attachment 259576 [details]
Truncated switches in Automatic Suspend Dialog

See attachment.
Comment 1 Bastien Nocera 2013-11-13 12:13:28 UTC
Is that in GNOME 3 with gnome-shell, in some other desktop environment?

Looks like bug 710909 which is already fixed.
Comment 2 Volker Sobek (weld) 2013-11-13 14:22:52 UTC
That's with gnome-shell, current f20. gnome-screenshot (metioned in bug 710909) shows up correctly.
Comment 3 Bastien Nocera 2013-11-14 11:24:43 UTC
Setting the GTK+ theme to "Default" doesn't fix the problem.

The power.ui file is from:

$ cat foo.c
#include <gtk/gtk.h>

int main (int argc, char **argv)
	GtkBuilder *builder;

	gtk_init (&argc, &argv);

	builder = gtk_builder_new_from_file ("power.ui");
	gtk_widget_show_all (GTK_WIDGET (gtk_builder_get_object (builder, "automatic_suspend_dialog")));

	gtk_main ();

	return 0;

$ gcc -o foo foo.c `pkg-config --cflags --libs gtk+-3.0`

If you make the dialog resizable (edit the power.ui file), just clicking in the corner will resize the dialog and draw the switches properly. I think that the bug is in the GtkSwitch's minimum width request.
Comment 4 Matthias Clasen 2013-11-16 22:10:09 UTC
I've made two changes to the power.ui file to fix this:

1) Take out
         <property name="resize_mode">immediate</property>

2) Remove the margin-left and margin-right settings on the combo boxes

With those two changes, things look correct.
Comment 5 Bastien Nocera 2014-04-25 14:49:22 UTC
*** Bug 710508 has been marked as a duplicate of this bug. ***