GNOME Bugzilla – Bug 138875
gcalctool-ng - Display expands into two rows
Last modified: 2004-12-22 21:47:04 UTC
Entering for example 1+(2+3+...+20 into gcalctool triggers the bug.
Created attachment 26263 [details] A picture of the problem situation
Reassigning to Sami. This is only a problem with the new Use Arithmetic precedence mode in the gcalctool-ng branch.
This bug occurs also with CVS HEAD (version 4.4.3), which does not contain 5.x changes. This bug is now added to the TODO-list of 5.x. The correction will be made to 5.x if fix is not inherited earlier via merge from 4.x. If the fix is made to 5.x, the same fix is propably valid and can be used in 4.x. However, this bug is not at high priority in 5.x.
Ah, I missed that you were creating this expression with braces. I'll take it back and investigate. Thanks.
Reassigned.
There is now a horizontal scrollbar for display. There are currently two things that needs to be changed. 1. Scrollbar should be visible only when needed. 2. Scrollbar should be scrolled to the end when displayed string is appended.
1. Setting scrollbar policy to automatic reserves always empty space for scrollbar even if it's not there. 2. Calling following function after set_display() will cause the display to go sometimes blank. Just by clicking horizontal adjustment will restore display content. Currently I have no idea how hadjustment should be told to go to the max value after display has been updated. void update_hadjustment_to_upper() { GtkAdjustment *adjustment = gtk_scrolled_window_get_hadjustment(X->scrolled_window); gtk_adjustment_set_value(adjustment, adjustment->upper); }
*** This bug has been marked as a duplicate of 157757 ***