GNOME Bugzilla – Bug 711856
Truncated switches in Automatic Suspend Dialog
Last modified: 2014-04-25 14:49:22 UTC
Created attachment 259576 [details] Truncated switches in Automatic Suspend Dialog See attachment.
Is that in GNOME 3 with gnome-shell, in some other desktop environment? Looks like bug 710909 which is already fixed.
That's with gnome-shell, current f20. gnome-screenshot (metioned in bug 710909) shows up correctly.
Setting the GTK+ theme to "Default" doesn't fix the problem. The power.ui file is from: https://git.gnome.org/browse/gnome-control-center/plain/panels/power/power.ui $ 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.
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.
*** Bug 710508 has been marked as a duplicate of this bug. ***