luigiwalser <[EMAIL PROTECTED]> writes:

> ugtk2 should probably be a Product component choice in Bugzilla.  Oh
> well, onward with the bug.

i agree on this. warly, can you add ugtk2 as a subcomponent of
drakxtools ?

> If you use gtktext_insert to create an information window (say a gtk
> TextView inside of a ScrolledWindow) it will leave the cursor at the
> end, so if you view your window, often it'll appear scrolled all the
> way to the bottom, rather than the top which is usually what's
> desired.

this is the way gtk::text* behave, we do not do anything explicitely
unlike eg logdrake where we do explicit scolling:

         $log_text->scroll_to_iter(my $iter = $log_buf->get_end_iter,
                                   $log_text->0, 1, 0.5, 0.5);

  
> I propose adding: 
> $textview->get_buffer->set_text('', 0);
> near the end of the function (after text has been added to the
> TextView).

this would erase all the text we just added to the text buffer !!!!

> I can't think of a reason that this behavior would be undesired,
> because if you wanted the cursor at the end for the next insert,
> you'd just use the provided gtktext_append function anyway.

neither gtktext_append nor gtktext_insert move the cursor or scroll
the view: the only difference is that gtktext_insert overwrite
existing text by default whereas gtktext_append overide this default
to append text.
but none does anything regarding scrolling.
when we need this (eg: in logdrake), we do it explicitely.

@resolution=invalid


Reply via email to