mirror of https://github.com/GNOME/gimp.git
set a fixed width on the "filename" and "info" labels so they clip their
2004-03-16 Michael Natterer <mitch@gimp.org> * app/widgets/gimpthumbbox.c (gimp_thumb_box_new): set a fixed width on the "filename" and "info" labels so they clip their texts rather than expand the thumb_box when the text is too wide (spotted by Jonathan Blandford).
This commit is contained in:
parent
b6d5a948bb
commit
d227b41eb1
|
@ -1,3 +1,10 @@
|
|||
2004-03-16 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/widgets/gimpthumbbox.c (gimp_thumb_box_new): set a fixed
|
||||
width on the "filename" and "info" labels so they clip their texts
|
||||
rather than expand the thumb_box when the text is too wide
|
||||
(spotted by Jonathan Blandford).
|
||||
|
||||
2004-03-15 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/core/core-enums.[ch] (enum GimpUndoType): replaced
|
||||
|
|
|
@ -144,7 +144,8 @@ gimp_thumb_box_new (Gimp *gimp)
|
|||
GtkWidget *label;
|
||||
GtkStyle *style;
|
||||
gchar *str;
|
||||
GtkRequisition requisition;
|
||||
GtkRequisition info_requisition;
|
||||
GtkRequisition progress_requisition;
|
||||
|
||||
g_return_val_if_fail (GIMP_IS_GIMP (gimp), NULL);
|
||||
|
||||
|
@ -251,11 +252,14 @@ gimp_thumb_box_new (Gimp *gimp)
|
|||
/* don't gtk_widget_show (box->progress); */
|
||||
|
||||
/* eek */
|
||||
gtk_widget_size_request (box->info, &requisition);
|
||||
gtk_widget_set_size_request (box->info, -1, requisition.height);
|
||||
gtk_widget_size_request (box->info, &info_requisition);
|
||||
gtk_widget_size_request (box->progress, &progress_requisition);
|
||||
|
||||
gtk_widget_size_request (box->progress, &requisition);
|
||||
gtk_widget_set_size_request (box->filename, requisition.width, -1);
|
||||
gtk_widget_set_size_request (box->info,
|
||||
progress_requisition.width,
|
||||
info_requisition.height);
|
||||
gtk_widget_set_size_request (box->filename,
|
||||
progress_requisition.width, -1);
|
||||
|
||||
return GTK_WIDGET (box);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue