What is the simplest way to run an app from GTK and read its output ?

2005-11-17 Thread Colossus
even though the docs says: 'Sets a function to be called when the child indicated by pid exits, at a default priority, G_PRIORITY_DEFAULT.' So how can an executable be run from GTK and read its output ? Thank you, -- Colossus Xarchiver, a GTK2 only archive mana

How can I have a progressbar inside a statusbar ?

2005-11-21 Thread Colossus
ThunderBird's email client window (when you download your email ) ? Thanks, -- Colossus Xarchiver, a GTK2 only archive manager - http://xarchiver.sourceforge.net Cpsed, a Linux OpenGL 3D scene editor - http://cpsed.sourceforge.net Mizio, a QT proxy hunter scanner tool - http://mizio.sourceforg

Re: How can I have a progressbar inside a statusbar ?

2005-11-22 Thread Colossus
actly what I was looking for ! -- Colossus Xarchiver, a GTK2 only archive manager - http://xarchiver.sourceforge.net Cpsed, a Linux OpenGL 3D scene editor - http://cpsed.sourceforge.net Mizio, a QT proxy hunter scanner tool - http://mizio.sourceforge.net __

Re: Simple GDK app segfaults for unknown reason

2006-01-20 Thread Colossus
László Monda wrote: Could someone here explain why does it segfault? Compile it with the -g flag and then run it in gdb. When the segfault occurs issue bt. You should have the line where the segfault occurs. -- Colossus Xarchiver, a GTK2 only archive manager - http

Re: Gtk with shellscript

2006-02-05 Thread Colossus
Sandeep KS wrote: How can i make the shellscript to get executed in the backend and at the same time continue with the frontend work? Look at the source code of xarchive: it does just what you need: http://xarchive.sourceforge.net -- Colossus Xarchiver, a GTK2 only archive manager - http

Notification bubbles, how ?

2006-02-20 Thread Colossus
Hi, I saw the screenshots of the forthcoming Ubuntu here: https://wiki.ubuntu.com/DapperFlight4#head-91e9d44f863c79fef08d0428bf17a5a87ed92628 my question is: how to realize those notification bubble comics style? Thanks, -- Colossus Xarchiver, a GTK2 only archive manager - http

gtk_drag_finish: is really needed ?

2006-02-22 Thread Colossus
ved), NULL); I'm in doubt if in the on_drag_data_received function I must use gtk_drag_finish since the code works with and without it. Thanks, -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.sourceforge.net Cpsed, a Linux OpenGL 3D scene editor - http://cpsed.

gtk_selection_data_get_uris and 'file://' problem

2006-02-22 Thread Colossus
ename without file:// ? Thanks, -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.sourceforge.net Cpsed, a Linux OpenGL 3D scene editor - http://cpsed.sourceforge.net Mizio, a QT proxy hunter scanner tool - http://mizio.sourceforg

Re: gtk_selection_data_get_uris and 'file://' problem

2006-02-22 Thread Colossus
Colossus wrote: Is there a Glib function who gives me back the filename without file:// ? As it always happens after sending the email I got the function: g_filename_from_uri, sorry ! -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.sourceforge.net Cpsed, a

Re: gtk_drag_finish: is really needed ?

2006-02-22 Thread Colossus
Colossus wrote: I'm in doubt if in the on_drag_data_received function I must use gtk_drag_finish since the code works with and without it. Today is the day of the self answers ! Yeah I must use it otherwise after a while I see the icon self dragging by itself ! -- Colossus Xarchiver, a

GSList and g_filename_from_uri free memory problem

2006-02-23 Thread Colossus
problem is that when I free filename the GSList data becames corrupted, but the docs says that g_filename_from_uri returns allocated memory, so what can I do ? Once I put filename in the GSList I don't need it anymore. Is filename freed when I call g_slist_free ? -- Colossus Xarchiver, a Linu

Re: GSList and g_filename_from_uri free memory problem

2006-02-23 Thread Colossus
are real pointers at all), therefore it cannot make copies of the data, cannot free them, etc. It just stores some untyped pointers. So how to solve the problem ? -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.sourceforge.net Cpsed, a Linux OpenGL 3D scene edi

Re: GSList and g_filename_from_uri free memory problem

2006-02-23 Thread Colossus
s me back ! -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.sourceforge.net Cpsed, a Linux OpenGL 3D scene editor - http://cpsed.sourceforge.net Mizio, a QT proxy hunter scanner tool - http://mizio.sourceforge.net ___ gt

Re: GSList and g_filename_from_uri free memory problem

2006-02-23 Thread Colossus
from g_filename_from_uri and what the others nine ones ? -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.sourceforge.net Cpsed, a Linux OpenGL 3D scene editor - http://cpsed.sourceforge.net Mizio, a QT proxy hunter scanner tool - http://mizio.sourceforg

Re: GSList and g_filename_from_uri free memory problem

2006-02-23 Thread Colossus
I use g_filename_from_uri to convert the filename but this function allocates memory that I must free. Since the user can drag and drop more than one file ( you noticed the while loop in the code ? ) when later I issue g_free ( filename ) only the last pointer will be freed and the others ? -- Col

Re: GSList and g_filename_from_uri free memory problem

2006-02-23 Thread Colossus
g_slist_free(Files_to_Add); //this frees the list Hum, what about using directly Files_to_Add instead of next_ptr ? -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.sourceforge.net Cpsed, a Linux OpenGL 3D scene editor - http://cpsed.sourceforge.net Mizio, a QT proxy h

Re: GSList and g_filename_from_uri free memory problem

2006-02-23 Thread Colossus
e the GSList. Long life to GTK+2 !!! -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.sourceforge.net Cpsed, a Linux OpenGL 3D scene editor - http://cpsed.sourceforge.net Mizio, a QT proxy hunter scanner tool - http://mizio.sourceforg

Re: GSList and g_filename_from_uri free memory problem

2006-02-23 Thread Colossus
Santhosh wrote: I hope this helps... Surely it helps, this way I can free all the pointers in one shot without iterating through the GSList with the while loop. Thank you so much Santosh !! -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.sourceforge.net

Drag from a KDE window and drop to GTK one

2006-02-23 Thread Colossus
Hi, I'm coding drag and drop feature to my app, Xarchiver, I was wondering if the drag from a Konqueror (KDE) window and drop to the GTK window of my app will work. Is there some GTK additional call to perform to have the above work ? Thanks, -- Colossus Xarchiver, a Linux GTK+2 only ar

How to know when user pushes Del key ?

2006-02-24 Thread Colossus
Hi, I did a search in the archive but I only found replies related to the delete event when the user clicks the X on window. I need to know how to catch the event when the user pushes the Del key on the keyboard such as it happens in Thunar new xfce file manager. Thanks, -- Colossus Xarchiver

GTK and KDE compatibility

2006-02-27 Thread Colossus
based ? Thanks, -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.sourceforge.net Cpsed, a Linux OpenGL 3D scene editor - http://cpsed.sourceforge.net Mizio, a QT proxy hunter scanner tool - http://mizio.sourceforge.net ___ gtk-app-dev

Re: GTK and KDE compatibility

2006-02-28 Thread Colossus
Daniel Espinosa wrote: GTK and KDE has it's own bucle to manage events, there a project working around it at: http://gparts.blogspot.com/ Right now this url is unreachable. Running GIMP under KDE the drag is correctly detected by Gimp, how can this be done ? -- Colossus Xarchiver, a

Re: GTK and KDE compatibility

2006-02-28 Thread Colossus
Daniel Espinosa wrote: http://gparts.blogspot.com/ Ok, I see. Does Gimp use Gparts to accept files dragged from the Konqueror window ?? If it doesn't, I'm wondering which GTK functions one have to call to accept events from KDE window inside a GTK one ! -- Colossus Xarchiver, a L

Drag and drop question, more drop than drag !

2006-03-01 Thread Colossus
hen I drag a row from the treeview of my app inside the window of Thunar, it's not drawed a border around thunar window, meaning that the drop event is not detected. Is it a matter of signals or what else ? Thanks, -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchi

Re: GTK and KDE compatibility

2006-03-01 Thread Colossus
Eduardo M KALINOWSKI wrote: Well, you can always see The Gimp's source code to discover how it's done, and them implement it in your application. I thought about this, but the huge size of Gimp's source code is what who discourage me to do that ! -- Colossus Xarchiver, a L

Re: GTK and KDE compatibility

2006-03-02 Thread Colossus
itself. I use text/uri-list instead of text/plain, maybe this causes my app not to receive the drag data ? -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.sourceforge.net Cpsed, a Linux OpenGL 3D scene editor - http://cpsed.sourceforge.net Mizio, a QT proxy hunter

Re: Drag from a KDE window and drop to GTK one

2006-03-03 Thread Colossus
Colossus wrote: Hi, I'm coding drag and drop feature to my app, Xarchiver, I was wondering if the drag from a Konqueror (KDE) window and drop to the GTK window of my app will work. Is there some GTK additional call to perform to have the above work ? Thanks, Thanks to Benedikt of XFC

Re: GTK and KDE compatibility

2006-03-03 Thread Colossus
Colossus wrote: I connected the signal "drag_data_received" to the window of my app. However when dragging not from a GTK window ( kde konqueror for example ) my app doesn't receive the signal. Is GTK compatible with event generated from other GUIs such as QT upon which KDE is b

How to detect if a glist->data is a GUINT_TO_POINTER for not freeing it ?

2006-04-21 Thread Colossus
Hi, I have to fill a GList with strings and unsigned long int. The content of the GList is not always the same so I don't know wich element is a string to free or a GUINT_TO_POINTER that I don't have to free. Is there a trick to do so ? Thanks, -- Colossus Xarchiver, a Linux GTK+2 on

Re: How to detect if a glist->data is a GUINT_TO_POINTER for not freeing it ?

2006-04-21 Thread Colossus
Enrico Tröger wrote: give it some value *iptr = 100l; Hi Enrico, thanks for replying. Which value is the above ? Hexadecimal one ?? Or what else ? -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.xfce.org Cpsed, a Linux OpenGL 3D scene editor - http

Re: How to detect if a glist->data is a GUINT_TO_POINTER for not freeing it ?

2006-04-21 Thread Colossus
ore), &iter, i, fields->data, -1); And in this line I get the segfault ! Obviously I declared that column as G_TYPE_UINT64; It's related to the allocated u long long int pointer because if I use GUINT_TO_POINTER with G_TYPE_UINT it works. Do you have any idea about the crash ?

Re: How to detect if a glist->data is a GUINT_TO_POINTER for not freeing it ?

2006-04-21 Thread Colossus
Hi, Thank you all for your kind answers. -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.xfce.org Cpsed, a Linux OpenGL 3D scene editor - http://cpsed.sourceforge.net Mizio, a QT proxy hunter scanner tool - http://mizio.sourceforge.net

Is it allowed to read twice or more in the GIO channel watch ?

2006-04-28 Thread Colossus
iver%2Ftrunk%2Flibxarchiver%2Fsupport-arj.c&rev=21282&sc=1 Thank you, -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.xfce.org Cpsed, a Linux OpenGL 3D scene editor - http://cpsed.sourceforge.net Mizio, a QT proxy hunter scanner tool - http://mizio.sou

DnD from treeview with multiple rows selected

2006-06-27 Thread Colossus
Hi, I'm trying to implement XDS protocol to my app, xarchiver. I have two rows selected in the treeview, when I drag these two rows and drop them in Thunar file manager, everything goes wrong. When I drop only one row it works. So my question is: how to retrieve the content of the rows selected

Problem with the search facility on http://mail.gnome.org/archives/gtk-app-devel-list/

2006-06-27 Thread Colossus
Hi, this is the message when trying to use the search facility: Not Found The requested URL /mailman/search was not found on this server. Regards, -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.xfce.org Cpsed, a Linux OpenGL 3D scene editor - http

Re: using pipes with g_spawn_command_line_sync

2006-08-24 Thread Colossus
. What's the problem? see file rpm.c from xarchiver sources. -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.xfce.org Xscreencast, a DE independent desktop session recorder - http://xscreencast.berlios.de Cpsed, a Linux OpenGL

Single click with eggstatusicon.c: possible?

2006-08-30 Thread Colossus
atusicon.c Thanks, Giuseppe Torelli -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.xfce.org Xscreencast, a DE independent desktop session recorder - http://xscreencast.berlios.de Cpsed, a Linux OpenGL 3D scene editor - http://cpsed.sourc

Rubberband effect on the desktop window

2006-09-04 Thread Colossus
Hi, I'm trying to realize a rubberband effect on the desktop window. Does anyone have any clue ? It's better to use cairo or directly Xrender? Thanks, -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.xfce.org Xscreencast, a DE independent desktop sessio

Re: Rubberband effect on the desktop window

2006-09-05 Thread Colossus
Colossus wrote: > I'm trying to realize a rubberband effect on the desktop window. Does > anyone have any clue ? It's better to use cairo or directly Xrender? For future reference, I found one using cairo in byzanz sources. -- Colossus Xarchiver, a Linux GTK+2 only archiv

Conversion from GdkPixbuf to png

2006-09-08 Thread Colossus
Hi, I used the search facility but I was unable to find any results. Does gdk/gtk have any function to convert a GdkPixbuf or a GtkImage to a png ? Or I have to use libpng instead ? -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.xfce.org Xscreencast, a DE

Detecting if a key is pressed in a callback function

2006-10-13 Thread Colossus
Hi, I have a callback function like this: g_signal_connect ((gpointer) exe_menu, "activate", G_CALLBACK (xa_convert_sfx), NULL); I would like to detect if the SHIFT key is pressed in the xa_convert_sfx() routine. Is this possible? -- Colossus Xarchiver, a Linux GTK+2 only archi

Re: Gtk 2.10 DnD Behaves differently then 2.8 DnD

2006-11-15 Thread Colossus
s) and when some pages are added to it. Under gtk 2.10.6 the signal is not emitted at all in both cases. What can I do to have to drop detected when the notebook has no pages (my window app empty) and when it has some ones? P.S. I even tried to connect the drag-data-received to the archive->tree

Re: Gtk 2.10 DnD Behaves differently then 2.8 DnD

2006-11-15 Thread Colossus
Colossus wrote: > Just some more info about the matter. The signal "drag-data-received" > is connected to the mainwindow this way: Ok, the problem is the gtk_notebook widget. If I comment out the whole code which creates it the drag_data_received signal is emitted. Can someon

Re: Gtk 2.10 DnD Behaves differently then 2.8 DnD

2006-11-16 Thread Colossus
>Colossus wrote: > Can someone of you tell me how to overcome this problem? I really need > the notebook widget in my app. Obvious things are under the nose. I forgot to gtk_drag_dest_set () the notebook widget. -- Colossus Xarchiver, a Linux GTK+2 only archive manag

Conversion from GdkRegion to GdkPixbuf

2006-11-28 Thread Colossus
Hi, I have some image data in a GdkRegion, I need to use gdk_pixbuf_save() to save those image data in a png format. How can I convert it? Thanks, -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.xfce.org Xscreencast, a DE independent desktop session recorder - http

Calling gtk_notebook_get_menu_label_text () in a for loop

2006-12-04 Thread Colossus
mory leaks if I call gtk_notebook_get_menu_label_text() repeatedly? -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.xfce.org Xscreencast, a DE independent desktop session recorder - http://xscreencast.berlios.de Cpsed, a Linux OpenGL 3D scene editor - http://cpsed.

gtkfiledialog automatic sort in gtk 2.10.x

2006-12-20 Thread Colossus
Hi, Is it possible to disable automatic sort when using the gtkfiledialog under gtk 2.10.x? I haven't found anything relevant in the docs. Thanks, -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.xfce.org Xscreencast, a DE independent desktop session recorder -

tooltip on gdk_pixbuf in gtk_icon_view

2007-02-08 Thread Colossus
nref (icon_pixbuf); gtk_widget_show (prefs_iconview); I get errors during runtime because I can't set a tooltip that way on a gdk_pixbuf, can someone help me please? -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.xfce.org Xscreencast, a DE independent desktop s

Checking if a program in path

2005-05-15 Thread Colossus
Hi, I'm building an app with the GTK for the first time, I'm just moving the first steps. I need to know if a program is available, so I thought to try open the file with the -e flags, but maybe there is already something inside glib ?? -- Colossus Cpsed, a Linux OpenGL 3D scene e

Is there a vector class in in GTK ?

2005-05-16 Thread Colossus
Hi, I'm programming a frontend in C with GTK. Is there a vector like class available with GTK or glib ? -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

g_signal_connect: what are the "detailed_signal" ?

2005-05-17 Thread Colossus
Hi, I need to know what are is the signal strings to give to g_signal_connect() but I didn't find any specs of them in doc. Possible ? -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailing lis

GtkFileChooserDialog do not reacts when clicking on button NEW

2005-05-17 Thread Colossus
X (hbox), archive_types, TRUE, TRUE, 0); gtk_widget_show_all (hbox); g_signal_connect (G_OBJECT (new_archive_dialog),"response",G_CALLBACK (new_file_response_cb),new_archive_dialog); gtk_window_set_modal (GTK_WINDOW (new_archive_dialog),TRUE); gtk_widget_show_all (new_archive_dia

How can I access gtk_tree_view declared in interface.c from callback.c ?

2005-05-19 Thread Colossus
view1 = NULL; <- here I got the error } Thanks for the attention, -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Gtk file filter with a label just before the filter widget

2005-05-19 Thread Colossus
Hi, I need to a have a label just to the very left of a gtk_file_filter, however I got the filter but not the label close to it. I get a lot of assertion failed when try to pack a gtk filter with a label with gtk_box_pack_start. Is it possible to achieve that ? Thank you, -- Colossus Cpsed, a

Added my files to src/Makefile.am but

2005-05-20 Thread Colossus
efined reference to `OpenZipArchive' collect2: ld returned 1 exit status OpenZip archive is a function included in zip.c.When I issue make in the gcc line above there is not zip.o but I included them in the src/Makefile.am Could someone help please ? -- Colossus Cpsed, a Li

Re: Added my files to src/Makefile.am but

2005-05-20 Thread Colossus
Colossus wrote: Could someone help please ? Sorry, I forgot to do this: ## Process this file with automake to produce Makefile.in -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailing list gtk-app

GtkFileFilter with a custom tooltip

2005-05-23 Thread Colossus
nvalid for instance `0x82ac4c8' (xarchiver:5585): GLib-GObject-WARNING **: gsignal.c:1716: signal `unrealize' is invalid for instance `0x82ac4c8' and obviously my tooltip is not shown, instead it's show the gtk standard one. Is it possible to achieve this ? Thank you, -- Co

Retrieve the selected filter name when having more than one

2005-05-23 Thread Colossus
e it always return the last one, the zip even do I select Bzip2 for example. Is it possible to do what I'm asking ? Thank you, -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

gspawn_async_with_pipes questions

2005-05-25 Thread Colossus
do I have to give to these arguments ?? Please help, -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel

Re: gspawn_async_with_pipes questions

2005-05-25 Thread Colossus
Olivier Sessink wrote: I use this for example to close the stderr of the child and make it a copy of the stdout. Thank you Olivier, but how to read the output of the command unzip -l so to put it into the gtk_tree_view ? -- Colossus Cpsed, a Linux OpenGL 3D scene editor http

g_io_channel problems

2005-05-30 Thread Colossus
ll), if I remove them I got the files in the zip archive plus some null. I look into the source of graveman and I see the author leaves those lines, the output of cdrecord is pure ascii as the one of unzip, why this different behaviour ? Thanks, -- Colossus Cpsed, a Linux OpenGL 3D s

Distinguish between G_IO_ERR and G_IO_HUP

2005-05-30 Thread Colossus
t the G_IO_ERR conditions is never met, while the G_IO_HUP is met when both the pipe ends and when the unzip returns an error; how can I distinguish the two conditions so to have my application emits an appropriate gtk_dialog with an error message when unzip fails to open the zip archive ? -- Col

Re: Distinguish between G_IO_ERR and G_IO_HUP

2005-05-30 Thread Colossus
h (ioc, cond, func, data); return ioc; } Both of them or g_child_watch_add replaces g_io_add_watch ?? -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-l

Multiple delimeters with g_strsplit

2005-06-01 Thread Colossus
Hi, I have a string this way: "Name Surname AddressTelephone" I'm not able to split it as: "Name" "Surname" "Address" "Telephone" with g_strsplit. I tried as delimeter " +" to mean multiple spaces as in regular expre

gtk_tree_model_iter_n_children (same gtkliststore) works in a file while not in another

2005-06-01 Thread Colossus
Number of rows: %d", gtk_tree_model_iter_n_children (GTK_TREE_MODEL(liststore), NULL) ); Why this different behaviour ? -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailing list gtk-app-de

How to remove all the columns of a GtkListStore in one shot ?

2005-06-03 Thread Colossus
r for loop to remove a column at a time, is there a way to remove ALL of them is one shot as gtk_list_store_clear() for the rows ? Thank you, -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Delete a gtktextbuffer to fill it again

2005-06-14 Thread Colossus
xtbuf, &enditer, line, strlen( line ) ); Where am I wrong ?? -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Delete a gtktextbuffer to fill it again

2005-06-14 Thread Colossus
Colossus wrote: I fill the text gtk_text_buffer this way: if (line != NULL) gtk_text_buffer_insert(textbuf, &enditer, line, strlen( line ) ); As it always happens after sending this email to the list I got the solution: I forgot to call gtk_text_buffer_get_start_iter(textbuf, &enditer

g_main_context_prepare(): main loop already active in another thread

2005-06-14 Thread Colossus
k_set_locale (); gtk_init (&argc, &argv); . } When it happens that a child exits with an error status I got the message as in the subject. Where am I wrong ? -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ _

GTK and the stressed vowels ( à è ì ò ù )

2005-06-14 Thread Colossus
Hi, I have to insert in a liststore some filenames containing stressed vowels. I get a Pango layout warning message in the console and the GUI hangs. How to avoid this ? Thanks, -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net

example treeview of Thunderbird

2005-06-17 Thread Colossus
Hi, is there an example on the internet on how to create a treview like the one of thunderbird (I mean the left side that contains the local folder) ?? And what about the left side of the window that appears when you click on Edit/Preferences (always of Thunderbird) ?? Thank you, -- Colossus

Calling GTkFileChooserDialog from a GtkDialog

2005-06-21 Thread Colossus
Hi, I have a dialog with a Gtk_entry and a button. I want to display a GtkFileChooserDialog when the user pushes the button from the GtkDialog; the choosen path should be displayed into the Gtk entry. How can I achieve this ? -- Colossus Cpsed, a Linux OpenGL 3D scene editor http

Re: Calling GTkFileChooserDialog from a GtkDialog

2005-06-22 Thread Colossus
John Cupitt wrote: http://developer.gnome.org/doc/API/2.0/gtk/GtkFileChooserButton.html Many thanks !! -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list

Re: Calling GTkFileChooserDialog from a GtkDialog

2005-06-22 Thread Colossus
response = gtk_dialog_run ( GTK_DIALOG ( prefs_window ) ); if ( response == GTK_RESPONSE_CANCEL) { gtk_widget_destroy ( prefs_window ); return; } // How to fill the gtk_entry created in the prefs() function ? Thank you, --

Re: Calling GTkFileChooserDialog from a GtkDialog

2005-06-22 Thread Colossus
e sub/folder on the user's hard disk ? Are you aware of a software who uses it so I can look at its source code ? Thank you, -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailing list gtk-app-

Re: The expander arrow (triangle) in TreeView

2005-06-23 Thread Colossus
ample still has the triangle so it hasn't to depend from the theme as far as I can see. -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail

Re: The expander arrow (triangle) in TreeView

2005-06-23 Thread Colossus
t uses +- sign. Regards, -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: The expander arrow (triangle) in TreeView

2005-06-23 Thread Colossus
frontend to zip,rar,bzip2 ecc to give the user the way to extract the files by clicking on the +- signs to surf the content of the hard disk. -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailin

Re: The expander arrow (triangle) in TreeView

2005-06-23 Thread Colossus
ave implemented this "beautiful to see feature" in XUL language ? -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: The expander arrow (triangle) in TreeView

2005-06-23 Thread Colossus
reate GUIs. I don't see any valid reason to remove it in GTK 2.0. Are you aware of a theme who replaces the triangle with the +- sign ? And what about the lines, does exist a theme who implements it ? -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourc

GTK dialog ESC key problem

2005-06-27 Thread Colossus
Hi, I have a gtk-dialog built with glade with the two buttons Cancel and Ok. When I push the ESC key on the keyboard the code behaves as I clicked Ok with the mouse on the dialog and this is not correct. How can I avoid this behaviour ? -- Colossus Cpsed, a Linux OpenGL 3D scene editor http

Re: GTK dialog ESC key problem

2005-06-27 Thread Colossus
) { gtk_widget_destroy ( prefs_window ); return; } else { //It goes here, where is my mistake ?? gtk_widget_destroy ( prefs_window ); switch (ChoosenArchiveType) { -- Colossus Cpsed, a Linux

gtk_entry problem in a gtk_dialog

2005-06-30 Thread Colossus
e control again to the gtk_dialog ?? -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gtk_entry problem in a gtk_dialog

2005-06-30 Thread Colossus
t a return statement the dialog window doesn't reply anymore when I click on Cancel and Ok, because the part of the code who handle them has been already executed. My problem is how to "go back" without having another dialog window being opened. -- Colossus Cpsed, a Linux Op

Re: Child windows with Gtk+-2.6.4

2005-07-04 Thread Colossus
[EMAIL PROTECTED] wrote: Hi all, i'm new in gtk and i have to develop an application with a lot of windows. >I remember that with delphi, it is possible to open a window in the mother window. >Is it possible with gtk+ ? developer.gnome.org/doc/API/2.0/gtk/GtkWindow.html -- Colossu

Re: How to convert file names from

2005-07-20 Thread Colossus
stressed vowels, for example. I have forced the ISO885 9-1 encoding to avoid the segmentation fault when opening such archives. -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailing list gtk-app

Finding an item in treeview by its name, implemented now ?

2005-07-21 Thread Colossus
Hi, I found this on the archive: http://mail.gnome.org/archives/gtk-app-devel-list/2002-October/msg00139.html but it is of 2002, has that way been implemented now ? Or I have to traverse the entire treeview and compare the string as suggested in the link above ? -- Colossus Cpsed, a Linux

strangeness of g_signal_connect

2005-07-25 Thread Colossus
e parameter, gpointer data , I never receive the word dummy. Instead if the same function is declared with two parameters: void on_add_files_activate ( GtkWidget *useless , gpointer data); I can successfull print the value "dummy" pointed by data. Could gtk developers explain thi

Re: strangeness of g_signal_connect

2005-07-25 Thread Colossus
andling the "clicked" event for a GtkButton. And for this event, the prototype of the callback handler is I just tried to replace gpointer with G_OBJECT but nothing to do, the value dummy is never received by the function. I must use two parameters and get rid of the first one to receive

disabling a widget when no rows are selected problem

2005-09-05 Thread Colossus
tive (Delete_button,FALSE); else gtk_widget_set_sensitive (Delete_button,TRUE); g_print ("**%d\n",selected); } Any help would be greatly appreciated. -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/

Re: disabling a widget when no rows are selected problem

2005-09-05 Thread Colossus
John Coppens wrote: I suspect you use a tree_view or so? Yes. You can unselect a row using Ctrl-Click on the row. This is what I did but why does the function gtk_tree_selection_count_selected_rows ( selection ) keep on returning 1 ? -- Colossus Cpsed, a Linux OpenGL 3D scene editor

Re: disabling a widget when no rows are selected problem

2005-09-06 Thread Colossus
Colossus wrote: This is what I did but why does the function gtk_tree_selection_count_selected_rows ( selection ) keep on returning 1 ? Solved by connecting the selection and not the treeview to the changed signal. -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net

g_spawn_async_with_pipes: the GUI freezes anyway

2005-09-21 Thread Colossus
( child_pid , (GChildWatchFunc) ExitStatus , NULL ); return (gulong) child_pid; May someone help please ? -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-li

Re: Memory question

2005-09-28 Thread Colossus
rror(errno)) ); return; Thank you, Colossus Allin Cottrell wrote: Yes, since the allocated string will not be freed by gtk_entry_set_text(). gchar *text = g_strdup_printf("banana %d", i); gtk_entry_set_text(GTK_ENTRY(entry), text); g_free(te

Re: Memory question

2005-09-29 Thread Colossus
ERROR,GTK_BUTTONS_OK,g_strerror(errno)); Colossus Christian Neumair wrote: Because g_strerror returns a const char * (meaning that you may not/can't/don't have to free it, since your app doesn't own the memory), you can simply call ShowGtkMessageDialog (GT

Re: Memory question

2005-09-29 Thread Colossus
Ok, the correct way is to cast g_strerror to (char *): response = ShowGtkMessageDialog (GTK_WINDOW (MainWindow),GTK_DIALOG_MODAL,GTK_MESSAGE_ERROR,GTK_BUTTONS_OK,(char *) g_strerror(errno)); This way i don't get any warning. Colossus wrote: Hi, I did as you suggested me but gcc

more documentation about g_io_add_watch ??

2005-09-30 Thread Colossus
turn TRUE; } The documentation about g_io_add_wath is very poor, can someone share light on this matter: why g_io_add_watch locks the GUI ? Thank you, -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list

Re: more documentation about g_io_add_watch ??

2005-09-30 Thread Colossus
Colossus wrote: The documentation about g_io_add_wath is very poor, can someone share light on this matter: why g_io_add_watch locks the GUI ? As usual one gets the answer after sending the email: it was needed to set the flag G_IO_FLAG_NONBLOCK on the GIOChannel to avoid the lock. GTK

redirecting output to a file with g_spawn_async

2005-09-30 Thread Colossus
I have the output redirected to the file /mnt/foo ? -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: redirecting output to a file with g_spawn_async

2005-09-30 Thread Colossus
Colossus wrote: Hi, I tried with g_spawn_async_with_pipes and with gspawn_async but it does not work. In the first case the output (the decompressed bzip2 file) is redirected to a GTK window so I used g_spawn_async (no pipes) but the output is directed to the shell window from which I ran my

  1   2   >