Re: GList

2005-08-18 Thread HuamiSoft Hubert Sokolowski
Hi! On Thu, 18 Aug 2005 00:52:45 -0500 Tristan Sloughter [EMAIL PROTECTED] wrote: I am using GLists and want to make sure I am freeing all the memory, and not twice or course. There are three possible functions for removing an element from the list: g_list_remove (GList *list,

Re: GList

2005-08-18 Thread David Necas (Yeti)
On Thu, Aug 18, 2005 at 12:52:45AM -0500, Tristan Sloughter wrote: I am using GLists and want to make sure I am freeing all the memory, and not twice or course. There are three possible functions for removing an element from the list: g_list_remove (GList *list, gconstpointer data);

Re: GList

2005-08-18 Thread HuamiSoft Hubert Sokolowski
On Thu, 18 Aug 2005 09:56:10 +0200 David Necas \(Yeti\) [EMAIL PROTECTED] wrote: On Thu, Aug 18, 2005 at 12:52:45AM -0500, Tristan Sloughter wrote: I am using GLists and want to make sure I am freeing all the memory, and not twice or course. There are three possible functions for

dynamically changing color of labels and edit boxes

2005-08-18 Thread Faria, Sydney C
I checked out gtk_widget_modify_bg() and gtk_widget_modify_fg() and they will do the job. When I checked out gdk_color_parse(const gchar *spec, GdkColor *color) the spec string is obvious, 0x00 will do, but how to create a GdkColor? I looked at gdk_colormap_alloc_color(), then

Re: Getting workspace number?

2005-08-18 Thread Jan-Marek Glogowski
Hi I would like to write a command line application that outputs the current workspace (under GNOME, I had someting in WindowMaker, but this does not work in GNOME). I have tried the following: ... All workspace stuff depends on the window manager, so I guess for GNOME you have to check the

Re: Cannot hide dialog until signal handler exits

2005-08-18 Thread Jan-Marek Glogowski
Hi The signal handler for a button in my main window launches a file chooser dialog, then processes the selected files. I try to hide the dialog during processing with 'gtk_widget_hide (dialog);' but this does not take effect until the signal handler exits. Is there a way to hide the dialog

Re: [GtkMenu] Callback problem with popups submenus

2005-08-18 Thread Jan-Marek Glogowski
Hi Emmanuel For me it works as expected. I just added a gtk_main(), a gtk_init(...) and a print()-callback and it works (on Debian Sarge gtk+ 2.6.4) For gtk_menu_popup I used ..., 0, gtk_get_current_event_time()); Maybe something else is wrong in your code? Jan-Marek

Re: Cannot hide dialog until signal handler exits

2005-08-18 Thread The Saltydog
On 8/13/05, Pseudo Nym [EMAIL PROTECTED] wrote: The signal handler for a button in my main window launches a file chooser dialog, then processes the selected files. I try to hide the dialog during processing with 'gtk_widget_hide (dialog);' but this does not take effect until the signal

Re: g_signal_emit_by_name

2005-08-18 Thread Jan-Marek Glogowski
Hi snip a lot of code You're misunderstanding the _emit_ functions. They are supposed to be used inside GObjects to run their attached signal handlers. So a soluting would be: gboolean your_old_code(...) { return FALSE; // destroy return TRUE; // do not destroy } gboolean

Re: GList

2005-08-18 Thread Chris Vine
On Thursday 18 August 2005 08:51, HuamiSoft Hubert Sokolowski wrote: always when you allocate a memory, you need to free it by your self. to free a list completely you need to free /data/ by your self if it points to some memory that you allocated. g_list_remove removes an element from a list

Re: GList

2005-08-18 Thread HuamiSoft Hubert Sokolowski
On Thu, 18 Aug 2005 20:17:34 +0100 Chris Vine [EMAIL PROTECTED] wrote: On Thursday 18 August 2005 08:51, HuamiSoft Hubert Sokolowski wrote: always when you allocate a memory, you need to free it by your self. to free a list completely you need to free /data/ by your self if it points to

GTK+ 2.6.10 released

2005-08-18 Thread Matthias Clasen
GTK+ 2.6.10 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.6/ http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.6/ gtk+-2.6.10.tar.bz2 md5sum: 520090ef291e35ba93397060e20f5025 gtk+-2.6.10.tar.gzmd5sum: 2683ef3ac133ed69bc12691d9bb3edab This is a bug fix release and is source

Re: dynamically changing color of labels and edit boxes

2005-08-18 Thread Gian Mario Tagliaretti
2005/8/18, Faria, Sydney C [EMAIL PROTECTED]: How do I get a GdkColor to use with gdk_color_parse()??? something like: GdkColor colGreen; gdk_color_parse (green, colGreen); gtk_widget_modify_fg (button_Widget, GTK_STATE_NORMAL, colGreen); cheers -- Gian Mario Tagliaretti PyGTK GUI

a sequence to edit a text view...

2005-08-18 Thread Joaquim Azevedo
I'm a begginer in GTK and I use glade to create a interface... but I need to edit a text view. I set it editable but not happen... I think is that a correct sequence... A part of code: char result[150]; int position; GtkWidget *tb_result, *top_level; top_level =

warn on deprecated

2005-08-18 Thread Boncek, John
Is there any way to have the compiler warn on the use of deprecated GTK content? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: warn on deprecated

2005-08-18 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Boncek, John wrote: Is there any way to have the compiler warn on the use of deprecated GTK content? Define the macros GTK_DISABLE_DEPRECATED, GDK_DISABLE_DEPRECATED, and, optionally, G_DISABLE_DEPRECATED (if you're using glib directly...).

How do I remove one row from a GtkTreeStore?

2005-08-18 Thread Wallace Owen
I used the function gtk_tree_store_set () to put some data into the treestore. I've got half a dozen root nodes, and several of them have child nodes. All looks spiffy. Now I want to remove the 4th item from the tree. When I put things into the tree I made a path from the new iter, made a row

Re: How do I remove one row from a GtkTreeStore?

2005-08-18 Thread Chris Vine
On Friday 19 August 2005 00:03, Wallace Owen wrote: I used the function gtk_tree_store_set () to put some data into the treestore. I've got half a dozen root nodes, and several of them have child nodes. All looks spiffy. Now I want to remove the 4th item from the tree. When I put things