Attach objects to text in GtkTextview

2005-08-25 Thread Mathias Andre
Hi, I'm using a GtkTextView to display some text. Now what'd I'd like to do is to attach some extra informations to words. For example attach a file's uri to a particular word (like a link in web browser). I could attach a GtkTextTag to a word, but then I would need to create one different TextTag

Re: gobjects, glists and arrays beginners question

2005-05-26 Thread Mathias Andre
Hi Kim, You can find a really complete GObjects tutorial at http://www.le-hacker.org/papers/gobject/ If you don't really know where to start have a look at the boilerplate gobject code in this tutorial. Good luck, Mathias ___ gtk-app-devel-list mailin

Re: Window size and position

2005-04-24 Thread Mathias Andre
Thanks for all the answers. I found the reason why the window was moving slightly eveytime I stored/restored its position. >From developer.gnome.org: http://developer.gnome.org/doc/API/2.0/gtk/GtkWindow.html#gtk-window-get-position --- gtk_window_get_position() is not 100% reliable because the X

Window size and position

2005-04-21 Thread Mathias Andre
Hello, I'm currently coding a small application. I want the main window to remember its size and position every time it is started. To do so i call gdk_drawable_get_size and gdk_window_get_position when the program exits, and gdk_window_move_resize when the program is started again. For some stra