Drag and drop widget
Hi there. I need an explanation about how to drag and drop widget. I saw a tutorial where one man shows how to transfer a text/plain data between a CList (deprecated)... but I don't imagine how to transfer a whole GTK+ widget. Should I destroy source widget and create exactly new in new place (like emulation drag and drop) or you already have a beauty way? P.S. tutorials wanted ;-) ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
gtk_text_buffer_insert function does not insert the new text onto the text view buffer immediately?
Hi all, I am writing a simple application with GTK+, I updated the text view area with the text using gtk_text_buffer_insert function. I am wondering why the new text was not displayed immediately on the text view right after the line: gtk_text_buffer_insert (..., new text); ? The new text was displayed after the application has finished other statements like: copying a big file...? Could anyone point me out how can I display the new text value immediately when the gtk_text_buffer_insert() function is called? Thanks, Soulivanh ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Rearrange childes of VBOX
Hi there ;-) I have a window with included vbox, which includes some count of widgets. When I press button, I want to change position of this widgets in this vbox ;-) How to do it? ANSI art: ++ | Window | | +--+ | | | vbox | | | | ++ | | | | | widget 1 | | | | | ++ | | | | ++ | | | | | widget 2 | | | | | ++ | | | | ++ | | | | | widget 3 | | | | | ++ | | | | ++ | | | | | widget 4 | | | | | ++ | | | +--+ | ++ I want to switch position of widget 1 and (for example) widget 4. How to do it? P.S. Also I want to do it with DnD, but, for now, it's not so important ;-) ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
re: gtk_text_buffer_insert function does not insert...
Have you tried forcing the main run loop to execute? i.e.: while (gtk_events_pending()) gtk_main_iteration(); I am writing a simple application with GTK+, I updated the text view area with the text using gtk_text_buffer_insert function. I am wondering why the new text was not displayed immediately on the text view right after the line: gtk_text_buffer_insert (..., new text); ? The new text was displayed after the application has finished other statements like: copying a big file...? Could anyone point me out how can I display the new text value immediately when the gtk_text_buffer_insert() function is called? Thanks, Soulivanh -- Garth Upshaw Garth's KidStuff ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
How to make a gtktreeview column flexible?
Hi, i have a gtktreeview filling the complete width of a window. Now i want the view to always use the full width. I therefore want the middle column (a text column) to be flexible. I want it to be as wide as possible for any given window width. So if you make the window wider i want this column to become wider. If i just enable ellipsis in the columns text renderer the column gets very small and only a fraction of the window width is used. If i make it a fixed width it's exactly that: fixed width. How do i make the column always use a much space as possible but never more than available? Till ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Rearrange childes of VBOX
2008/4/25 AlannY [EMAIL PROTECTED]: I have a window with included vbox, which includes some count of widgets. When I press button, I want to change position of this widgets in this vbox ;-) How to do it? try: http://library.gnome.org/devel/gtk/stable/GtkBox.html#gtk-box-reorder-child P.S. Also I want to do it with DnD, but, for now, it's not so important ;-) I do this with a gtktable and it works fine, you shluld be OK. John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Learning Glade
Hi, I'm a relative newcomer to GTK+ programming, but I've been using GNU/Linux for about a year and a half, know it pretty well, and am enjoying writing applications for it. However, I feel it will be easier for me to write graphical applications with an interface designer. The GNOME Library (http://library.gnome.org/ ) wasn't very useful and I haven't been able to find any decent, up-to-date tutorials on Glade. Links and/or sample code will be appreciated :) ~The Unix Geek http://theunixgeek.blogspot.com/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list