After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 662728 - Problem with Dia Comment/"scrolled_window". Text Entry to small.
Problem with Dia Comment/"scrolled_window". Text Entry to small.
Status: RESOLVED NOTGNOME
Product: dia
Classification: Other
Component: objects
0.97.x
Other Linux
: Normal normal
: ---
Assigned To: Dia maintainers
Dia maintainers
: 667965 689162 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-10-26 00:45 UTC by xcongenius
Modified: 2012-11-28 06:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The comment entry is way to small vertically! (62.67 KB, image/png)
2011-10-26 00:45 UTC, xcongenius
Details
The code works! Now the comment entry is visible. (40.74 KB, image/png)
2011-10-26 00:47 UTC, xcongenius
Details

Description xcongenius 2011-10-26 00:45:55 UTC
Created attachment 199987 [details]
The comment entry is way to small vertically!

Hi,

I recently upgraded to Ubuntu 11.10 and noticed that the Comment section in the attributes and operations tab were way too small to see anything. See dia.png to see what I mean.

I checked out the source code and seem to have found a fix.

This is the code before which doesn't work, from class_attributes_dialog.c:
gtk_table_attach (GTK_TABLE (table), scrolledwindow, 1,2,3,4, GTK_FILL | GTK_EXPAND,0, 0,0);

This is what I changed to get it to show the comment entry (see dia_fixed.png)
gtk_table_attach (GTK_TABLE (table), scrolledwindow, 1,2,3,4, (GtkAttachOptions)GTK_FILL, (GtkAttachOptions)GTK_FILL, 0, 0);

I don't know how many other people having the same problem, but this should fix it.

Thanks
Comment 1 xcongenius 2011-10-26 00:47:32 UTC
Created attachment 199988 [details]
The code works! Now the comment entry is visible.
Comment 2 xcongenius 2011-10-26 00:49:41 UTC
Forgot to mention that this problem occurs in the operation and attributes sections.
Comment 3 Hans Breuer 2011-10-27 19:55:45 UTC
Sorry, to me this looks like there is something screwed in Ubuntu and I don't think it's reasonable to work around that on the application level. So if this is actually only showing on Ubuntu 11.10 that should be the place to look for the root cause.
Comment 4 Hans Breuer 2011-11-01 10:07:18 UTC
> Created an attachment (id=199988) [details]
> The code works! Now the comment entry is visible.
To make Dia work as before without a code change just use:
LIBOVERLAY_SCROLLBAR=0 dia

The root cause seems to be some misbehaviour with the overlay-scrollbar package in Ubuntu. Reporting the bug there might help it being fixed:
https://bugs.launchpad.net/ubuntu/+source/overlay-scrollbar
Comment 5 Hans Breuer 2012-01-15 20:21:44 UTC
*** Bug 667965 has been marked as a duplicate of this bug. ***
Comment 6 Hans Breuer 2012-11-28 06:58:25 UTC
*** Bug 689162 has been marked as a duplicate of this bug. ***