GtkToolButton hotkey and accelerators

2006-04-19 Thread Juan Pablo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi list. I used to set the hotkeys of buttons by settig an underscore before the letter on the label and to set the accels with glade. I wanted to do this for the GtkToolButtons in my main toolbar of my main window, but the underscore is ignored and g

refreshing widgets from callback

2006-04-19 Thread Fernando ApesteguĂ­a
Hi, I had a function to refresh some widgets. Inside this function I perfomed a gdk_threads_enter() / gdk_threads_leave() to prevent access from the secondary thread. update() { gdk_threads_enter() ... ... gdk_threads_leave() } I wanted to reuse this function from a callback, but since callbacks

Re: Animation in GtkTreeView

2006-04-19 Thread Dubravin Andrey
> Hello all, > I try to create animation using GtkCellPixmap in GtkTreeView using next > code: > > angle += PIXMAP_ROTATE_STEP; > rotated_pixbuf = pixmap_rotate (original_pixbuf, angle); > > gtk_list_store_set (GTK_LIST_STORE (tree_model), &iter, > FILE_LIST_COL_

gtk_selection_data_get_uris returns garbage

2006-04-19 Thread jim Pharis
I posted the below to the gtk-devel-list and now that I think about it it was probably the wrong list to post this question. So I apoligize for the cross-posting, but hopefully someone on this list can help me out here. --- I've got drag and drop working for a single item from Nautilus. I need to

Re: Changing cursor in GtkTextView widget.

2006-04-19 Thread Erik de Castro Lopo
Erik de Castro Lopo wrote: > Unfortunately, doing this after the top level call to > gtk_widget_show_all () is a PITA and doing before fails because > the call to gtk_text_view_get_window () returns NULL. While searching for something else I found a way to do this using g_signal_connect_after() t

Changing cursor in GtkTextView widget.

2006-04-19 Thread Erik de Castro Lopo
Hi all, After calling gtk_widget_show_all () on the top level window, I am able to change the cursor in an enclosed GtkTextView window by doing: GdkCursor *cursor = gdk_cursor_new (GDK_LEFT_PTR) ; GdkWindow *window = gtk_text_view_get_window (text_view, GTK_TEXT_WINDOW_TEXT) ; gdk_wi

Howto really debug gdk_x_error?

2006-04-19 Thread Wojciech Kromer
After 2-3 hours of running my application runs into gdk_x_error. I'm using : gtk+2.8.16, pango-1.12.0, glib-2.10.1, cairo-1.0.2, atk-1.11.3, glibc-2.3.2, pthreads compiled with gcc 3.3.4 (from scratchbox) I found only one thing: - removing call to gtk_label_set_markup inside timer funcion (set