mirror of https://github.com/GNOME/gimp.git
Bug 749123 - File->Open thumbnail information label misaligned...
...until dialog window is resized Immediate eye cancer guaranteed when looking at this patch.
This commit is contained in:
parent
eb5bdebe6a
commit
b5f55ba0ce
|
@ -510,12 +510,28 @@ gimp_thumb_box_thumbnail_clicked (GtkWidget *widget,
|
|||
TRUE : FALSE);
|
||||
}
|
||||
|
||||
static void
|
||||
this_is_ugly (GtkWidget *widget,
|
||||
GtkAllocation *allocation,
|
||||
gpointer data)
|
||||
{
|
||||
gtk_widget_queue_resize (widget);
|
||||
|
||||
g_signal_handlers_disconnect_by_func (widget,
|
||||
this_is_ugly,
|
||||
data);
|
||||
}
|
||||
|
||||
static void
|
||||
gimp_thumb_box_imagefile_info_changed (GimpImagefile *imagefile,
|
||||
GimpThumbBox *box)
|
||||
{
|
||||
gtk_label_set_text (GTK_LABEL (box->info),
|
||||
gimp_imagefile_get_desc_string (imagefile));
|
||||
|
||||
g_signal_connect_after (box->info, "size-allocate",
|
||||
G_CALLBACK (this_is_ugly),
|
||||
"this too");
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue