Re: How do you get the data from a GList?

2006-11-17 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Nov 17, 2006 at 09:44:01AM -0600, Steven Boyls wrote: > I have created a GList with the following code : >GList *my_list; >GtkTreeSelection *selection; >GtkTreeModel *model; > >selection = gtk_tree_vie

Problem with GtkDialog and gtk_widget_destroy()

2006-11-17 Thread Kevin Lambert
I have been using Glade to create the xml for the dialog then used libglade to create the actual dialog. The dialog is shown and works as expected EXCEPT that when I press Cancel (which call gtk_dialog_response(GTK_DIALOG(dialog), GTK_RESPONSE_CANCEL)) the button grays but the dialog itself does

Re: How do you get the data from a GList?

2006-11-17 Thread Matias Torres
Ouch! change this next = g_slist_next (node); to node = g_slist_next (node); ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: How do you get the data from a GList?

2006-11-17 Thread Matías Torres
you can iterate through the list: node = mylist; while (next) { gtk_tree_model_get_iter (treemodel, &iter, GTK_TREE_PATH (node->data)); /* Gets data in column COLUMN (zero based) and copies (depending the type) it into data*/ gtk_tree_model_get (model, &iter, COLUMN, &data, -1);

How do you get the data from a GList?

2006-11-17 Thread Steven Boyls
I have created a GList with the following code : GList *my_list; GtkTreeSelection *selection; GtkTreeModel *model; selection = gtk_tree_view_get_selection(list_file_treeview); model = gtk_tree_view_get_model(list_file_treeview); my_list = gtk_tree_select

Re: install gtk 2.8.20 on windows

2006-11-17 Thread Tor Lillqvist
GuiGui writes: > I've tried to download some librairies at > http://www.gimp.org/~tml/gimp/win32/downloads.html but I don't know > how to do. Please be more specific. What did you try to do, and in what way did it fail? > I'm working on Dev C++ Why don't you ask the Dev C++ list for help the

install gtk 2.8.20 on windows

2006-11-17 Thread GuiGui
Hi, I've juste crashed my HDD who was on Linux... and I've only windows now and I need to install gtk2.8.20. I don't know how to install it. I've tried to download some librairies at http://www.gimp.org/~tml/gimp/win32/downloads.html but I don't know how to do. I'm working on Dev C++ Thanks. G

Re: GTK+ Signals

2006-11-17 Thread Yeti
On Fri, Nov 17, 2006 at 09:31:35AM +0100, Ralf Stephan wrote: > > Is this possible in C++? I suppose the Gtkmm list would be more appropriate for this. But if you mean `in C++ not using C++ bindings' -- what problems you got into? Yeti -- Whatever. _

Re: How to scale Gtk-GUI application

2006-11-17 Thread Ralf Stephan
> I want to scale my Gtk-GUI application (which is basically large in > size, not fitted with the screen) dynamically depending upon screen > size. I am thinking that can be done by modifying .gtkrc-2.0 file. > > Please help me, how can I modify .gtkrc-2.0 file or please tell me any > other ap

Re: GTK+ Signals

2006-11-17 Thread Ralf Stephan
> - use g_signal_add_emission_hook() to catch all emissions of > a signal for all instances > > - use g_signal_list_ids() to get all signals that objects of > a given type can emit and then connect to them in a loop > for an instance; note you have to recusrsively scan parent > classes and

Draw widgets to a GdkDrawable/GdkPixbuf i nstead of screen

2006-11-17 Thread todd_lau
Hi, I want to draw some interested widgets to a GdkDrawable/GdkPixbuf for later use (e.g., printing preview, transparent, screenshot ...). How can I achieve this goal? I tried to follow things gdk did for double-buffering (gdk_window_begin_paint_region and gdk_window_end_paint), but it di