You can use the insert-text signal of GtkTextBuffer to filter input and
the mark-set signal to catch cursor movements.
Pavel Syomin wrote:
Hi, I'm try to create something like console widget using GtkTextView,
but I'm confronted with some difficults. I want to process user input
before change
You need to call
while( g_main_iteration (FALSE));
to update the progress bar. The gtk_progress_bar_set_fraction queues
draw requests that are then executed
inside gtk main event loop. Be careful that calling g_main_iteration
also processes user messages, so if the user
clicks on something, the
Yes, just use
gboolean(*timeout_callback)(gpointer data);
int tag = gtk_timeout_add( 100, timeout_callback, user_data);
to add your function and
gtk_timeout_remove(tag);
to turn it off.
timothy johnson wrote:
I am new to gtk, and trying my hand at writing a mp3player, I am
working on
Mishael A Sibiryakov wrote:
Hello.
I have a two small question about GtkTextView and about how it works
with scrolled window widget.
1. I have a TextView witch is placed to scrolled window (this is simple
chat window), and i want to do automatic scroll is new message inserted
to
I that case you need to use
gtk_text_view_scroll_to_iter
to force an update.
Mishael A Sibiryakov wrote:
, 12/04/2005 10:15 -0700, Paolo Costabel :
Mishael A Sibiryakov wrote:
Hello.
I have a two small question about GtkTextView and about how it works
with scrolled window widget
Is there a way to scroll the last line of a text view to the top of the
view? I tried to use the align parameter like this:
gtk_text_view_scroll_to_iter (GTK_TEXT_VIEW(EditorTextView), iter, 0.0,
TRUE, 0.0, 0.0);
where iter points to the last line in the buffer, but the view only
scrolls so
The prototype for the pressed and released callback is
user_function (GtkButton cid:[EMAIL PROTECTED] *button,
gpointer user_data);
gpointer is typedef'd as void *. If you are getting a compiler error,
you are probably not including the right headers.
Felix Kater wrote:
I just tried this:
gtk_text_buffer_insert_at_cursor(buffer, \n\n\n\n, 4);
and works fine here (gtk 2.4.10).
What call are you using?
Felix Kater wrote:
Hi,
how do I insert a new line after I inserted text into a GtkTextBuffer?
I am using gtk 2.4 (with win32/mingw) and got gtk errors when I
gdk_window_set_cursor(GTK_WINDOW(window)-window, cursor);
ALLs soft wrote:
how i can hide cursor in this window (not GDK, it is GTK)? (code down don't
work but i can compile it without errors.)
do somebody can send me an example, maybe in gdk (with full source ready for
compile)?
thanks
Vinod Joseph wrote:
Hello Members
Please guide me why this operation fails logically for some values at
some times
Dosent give a consistent behavior...
Please help...
Callback_Function_on_userid_entry(GtkWidget *entry)
{
const gchar *entry_text;
entry_text = gtk_entry_get_text (GTK_ENTRY
10 matches
Mail list logo