GNOME Bugzilla – Bug 706188
Ensure Extract button is a constant size
Last modified: 2013-08-20 14:43:14 UTC
If the translation of 'Stop' was longer than that of 'Extract' the extract button would change size when it was clicked. Fix by adding fake buttons with both labels to a size group as for the play and select all buttons.
Created attachment 251985 [details] [review] Ensure Extract button is a constant size
Review of attachment 251985 [details] [review]: ::: src/sj-main.c @@ +2160,3 @@ + size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL); + + fake_button1 = gtk_button_new_with_label (_("Extract")); As discussed in the stock items bug, it would be better to have the underline so that the fake button exactly matches the actual one. @@ +2166,3 @@ + fake_button1); + + fake_button2 = gtk_button_new_with_label (_("Stop Extracting Now")); I guess this is a leftover from your testing, the label that is currently used is "Stop"
Created attachment 252414 [details] [review] Updated patch with 'use-underline' set for the fake buttons and the stop label corrected - sorry I should have spotted that for myself before I posted the first patch.
Comment on attachment 252414 [details] [review] Updated patch with 'use-underline' set for the fake buttons and the Looks good, now, thanks!
Created attachment 252432 [details] [review] Updated patch, added missing GTK_BUTTON casts
Attachment 252432 [details] pushed as 013cb9e - Ensure Extract button is a constant size