gimp r26242 - in branches/soc-2008-tagging: . app/widgets
- From: aurisj svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26242 - in branches/soc-2008-tagging: . app/widgets
- Date: Sun, 20 Jul 2008 09:25:35 +0000 (UTC)
Author: aurisj
Date: Sun Jul 20 09:25:35 2008
New Revision: 26242
URL: http://svn.gnome.org/viewvc/gimp?rev=26242&view=rev
Log:
2008-07-20 Aurimas JuÅka <aurisj svn gnome org>
* app/widgets/gimpcombotagentry.c
(gimp_combo_tag_entry_popup_list): fixed popup width to properly match
tag entry width.
Modified:
branches/soc-2008-tagging/ChangeLog
branches/soc-2008-tagging/app/widgets/gimpcombotagentry.c
Modified: branches/soc-2008-tagging/app/widgets/gimpcombotagentry.c
==============================================================================
--- branches/soc-2008-tagging/app/widgets/gimpcombotagentry.c (original)
+++ branches/soc-2008-tagging/app/widgets/gimpcombotagentry.c Sun Jul 20 09:25:35 2008
@@ -410,9 +410,6 @@
g_list_free (tag_list);
g_strfreev (current_tags);
- width = GTK_WIDGET (combo_entry)->allocation.width;
- height = gimp_combo_tag_entry_layout_tags (popup_data, width);
-
viewport = gtk_viewport_new (NULL, NULL);
gtk_viewport_set_shadow_type (GTK_VIEWPORT (viewport), GTK_SHADOW_NONE);
gtk_container_add (GTK_CONTAINER (viewport), drawing_area);
@@ -426,11 +423,12 @@
frame = gtk_frame_new (NULL);
gtk_container_add (GTK_CONTAINER (frame), scrolled_window);
+ width = GTK_WIDGET (combo_entry)->allocation.width - frame->style->xthickness * 2;
+ height = gimp_combo_tag_entry_layout_tags (popup_data, width);
gdk_window_get_origin (GTK_WIDGET (combo_entry)->window, &x, &y);
max_height = GTK_WIDGET (combo_entry)->allocation.height * 7;
screen_height = gdk_screen_get_height (gtk_widget_get_screen (GTK_WIDGET (combo_entry)));
- width += frame->style->xthickness;
- height += frame->style->ythickness;
+ height += frame->style->ythickness * 2;
popup_height = MIN (height, max_height);
if (y > screen_height / 2)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]