[gimp/gimp-2-8] Bug 749123 - File->Open thumbnail information label misaligned...
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Bug 749123 - File->Open thumbnail information label misaligned...
- Date: Tue, 25 Aug 2015 21:08:09 +0000 (UTC)
commit 43f187f5c351b0d06031f1774395bd922c3e1857
Author: Michael Natterer <mitch gimp org>
Date: Tue Aug 25 23:05:25 2015 +0200
Bug 749123 - File->Open thumbnail information label misaligned...
...until dialog window is resized
Immediate eye cancer guaranteed when looking at this patch.
(cherry picked from commit b5f55ba0cef2a51c26fd6635296f602980b388e8)
app/widgets/gimpthumbbox.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimpthumbbox.c b/app/widgets/gimpthumbbox.c
index 04b005f..8f74de6 100644
--- a/app/widgets/gimpthumbbox.c
+++ b/app/widgets/gimpthumbbox.c
@@ -511,11 +511,27 @@ gimp_thumb_box_thumbnail_clicked (GtkWidget *widget,
}
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]