|
|
| Next: A former Rabbi embraces Islam |
| Author |
Message |
Bronson External

Since: Aug 04, 2007 Posts: 6
|
Posted: Sat Aug 04, 2007 4:52 am Post subject: GtkTextView and repaint Archived from groups: comp>os>linux>development>apps (more info?) |
|
|
Hi,
when i put text in my text view window, it shows only when i move
mouse around that window (window gets focus i suposse). Is there a way
to do it showing text immediately, not when i am handling with it?
Source code:
void gui_append(char* line) {
GtkTextIter iter;
GtkTextBuffer* textBuf;
if (line == NULL) {
return;
}
textBuf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text));
gtk_text_buffer_get_end_iter(textBuf, &iter);
gtk_text_buffer_insert(textBuf, &iter, line, strlen(line));
}
Thanks in advance for any help,
Przemek |
|
| Back to top |
|
 |
Bronson External

Since: Aug 04, 2007 Posts: 6
|
Posted: Sat Aug 04, 2007 4:55 am Post subject: Re: GtkTextView and repaint [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
On 4 Sie, 13:52, Bronson <psh....RemoveThis@gmail.com> wrote:
> Hi,
>
> when i put text in my text view window, it shows only when i move
> mouse around that window (window gets focus i suposse). Is there a way
> to do it showing text immediately, not when i am handling with it?
>
> Source code:
>
> void gui_append(char* line) {
> GtkTextIter iter;
> GtkTextBuffer* textBuf;
>
> if (line == NULL) {
> return;}
>
> textBuf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text));
> gtk_text_buffer_get_end_iter(textBuf, &iter);
> gtk_text_buffer_insert(textBuf, &iter, line, strlen(line));
>
> }
>
> Thanks in advance for any help,
>
> Przemek
All right,
i've managed that with
gdk_window_invalidate_rect(text->window, &text->allocation, TRUE);
gdk_window_process_updates(text->window, TRUE);
Best,
Przemek |
|
| Back to top |
|
 |
Bill Marcum External

Since: Dec 18, 2006 Posts: 286
|
Posted: Sun Aug 05, 2007 10:05 pm Post subject: Re: GtkTextView and repaint [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
On Sat, 04 Aug 2007 04:52:19 -0700, Bronson
<pshemu.TakeThisOut@gmail.com> wrote:
>
>
> Hi,
>
> when i put text in my text view window, it shows only when i move
> mouse around that window (window gets focus i suposse). Is there a way
> to do it showing text immediately, not when i am handling with it?
>
Maybe the foreground and background colors are the same when the window
is not focused.
--
"To YOU I'm an atheist; to God, I'm the Loyal Opposition."
-- Woody Allen |
|
| Back to top |
|
 |
|
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
| |
|
|