Re: g_strsplit

2005-10-05 Thread The Saltydog
On 10/5/05, Matthias Clasen <[EMAIL PROTECTED]> wrote: > On Wed, 2005-10-05 at 16:29 +0200, The Saltydog wrote: > If you are already scared by that, then maybe C is not the right > language for you ? How about using e.g python ? I was jocking.

g_strsplit

2005-10-05 Thread The Saltydog
This is more related to Glib than to gtk+, but I wonder if anyone can help. I have an array of strings, created with g_strsplit() function. Then I need to add another array, also created with the same function, or some single string.. Is there a shortcut to accomplish this, or should I play with r

Re: First column header in GtkTreeView?

2005-10-03 Thread The Saltydog
On 10/2/05, Christian Neumair <[EMAIL PROTECTED]> wrote: > Maybe you should create two GtkTreeViews that share one model and pack > both into scrolled windows with different scroll policies. These two > scrolled windows should then be packed into one hbox. Good luck! :) The problem is that I want

Re: First column header in GtkTreeView?

2005-10-02 Thread The Saltydog
On 10/2/05, Christian Neumair <[EMAIL PROTECTED]> wrote: >Good luck! :) ...it sound like I need a lot of it! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: First column header in GtkTreeView?

2005-10-02 Thread The Saltydog
On 10/1/05, The Saltydog <[EMAIL PROTECTED]> wrote: > On 10/1/05, Christian Neumair <[EMAIL PROTECTED]> wrote: > > > > Do you want to arrange that your tree view does no horizontal scrolling > > at all, or that only the second column scrolls? > > No, I n

Re: First column header in GtkTreeView?

2005-10-01 Thread The Saltydog
On 10/1/05, Christian Neumair <[EMAIL PROTECTED]> wrote: > > Do you want to arrange that your tree view does no horizontal scrolling > at all, or that only the second column scrolls? No, I need horizontal scrolling, but the first column must be fixed as an header. The treeview should scroll from t

First column header in GtkTreeView?

2005-09-30 Thread The Saltydog
Is there any way to have the first column fixed in a GtkTreeView, not scrolling to the left? I need to headers: the first row and the first column... ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/g

Re: GLib gettext and UTF-8

2005-09-27 Thread The Saltydog
On 9/27/05, David Rosal <[EMAIL PROTECTED]> wrote: > In my GTK2 program, I use the macro _(str) to translate the strings. > "str" is in english (ASCII), but the translation may be encoded in an > arbitrary codeset (e.g. ISO-8859-1 or KOI-8...). The question is: Does > the glib macro _(str) convert

Re: gtk 2.8.3

2005-09-10 Thread The Saltydog
On 9/10/05, Mystilleef <[EMAIL PROTECTED]> wrote: > The problem only seems to happen on Ubuntu for me. Are you by any chance using > Ubuntu? yes. Breezy. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listi

horizontal window size and toolbar

2005-09-07 Thread The Saltydog
How can I force the horizontal main window size, in order to show the full toolbar elements? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

gtk 2.8.3

2005-09-06 Thread The Saltydog
I have recently updated to Gtk+ 2.8.3 and I have noticed that each time I open a GtkFileChooserDialog in my application, I got this message: Gtk-CRITICAL **: gtk_file_system_path_is_local: assertion `path != NULL' failed With previous version of Gtk+, I was not getting this. What am I missing?

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 h

Re: how to hide close button in gtk dialog

2005-08-08 Thread The Saltydog
On 8/8/05, Yogesh M <[EMAIL PROTECTED]> wrote: > found it, sometimes it is neccessary to avoid > confusion. > > for example in a dialog i have a cancel button, now if > the window show a close button, it is a confusion that > whether the window closes or the cancel activates or > both. You can wo

Re: how to hide close button in gtk dialog

2005-08-07 Thread The Saltydog
On 8/7/05, Yogesh M <[EMAIL PROTECTED]> wrote: > when i create a new dialog, it comes with close button, i am talking about > the button in the title bar. how to disable/remove it You should NEVER play with this. It is against Gnome Human Interface Guidelines: http://developer.gnome.org/projects

Re: how to hide close button in gtk dialog

2005-08-07 Thread The Saltydog
On 8/7/05, Yogesh M <[EMAIL PROTECTED]> wrote: > > how to hide close button in gtk dialog? > What do you mean by "hide"? If you don't want the close button, just don't create it, if you need to set it to "grey" (unsensitive), you should use gtk_widget_set_sensitive(,FALSE);

Re: mounted device list

2005-08-06 Thread The Saltydog
On 8/5/05, Brian J. Tarricone <[EMAIL PROTECTED]> wrote: > > Note that /proc/mounts is not portable... Is /etc/mtab portable? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: mounted device list

2005-08-05 Thread The Saltydog
On 8/5/05, John Coppens <[EMAIL PROTECTED]> wrote: > Probably the easiest way to do that is to access the /etc/mtab file or > the /proc filesystem (/proc/mounts) Yes, I am currently accessing /etc/mtab, but I need some more data such as total size, bytes available (a sort of df), so I should write

mounted device list

2005-08-05 Thread The Saltydog
Is there some VFS or glib function to get the list of all mounted devices with their mount points, or should I use standard GNU-C libraries? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-de

Re: XML library

2005-08-05 Thread The Saltydog
On 8/5/05, Bhatnagar Achindra <[EMAIL PROTECTED]> wrote: > Is there any XML library available in GTK natively, try libxml http://xmlsoft.org/html/libxml-lib.html ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailm

Re: Web Queries through GTK

2005-08-05 Thread The Saltydog
On 8/5/05, Bhatnagar Achindra <[EMAIL PROTECTED]> wrote: > I need to make http: Get/Post queries through my GTK application, I have used successfully libcurl or libsoup. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.o

VFS monitor

2005-08-02 Thread The Saltydog
I am using gnome_vfs_monitor_addto monitor a directory. When there are subsequent changes to the dirctory, the application crashes with this message: libgnomevfs-ERROR **: file gnome-vfs-monitor.c: line 246 (actually_dispatch_callback): assertion failed: (callback_data->send_state != CALLBACK_

Re: who can help me!!

2005-07-30 Thread The Saltydog
On 7/30/05, xue_hu2001 <[EMAIL PROTECTED]> wrote: > I am making a problem using glade . I have insert a image into the > window , now I wang to copy one region to another place in the same > picture . how can I do , if anybody have any ideas? Can > gdk_draw_drawable do it ? how to use it ? help me

gtkcomboboxentry

2005-07-29 Thread The Saltydog
I have read that use of gnome_entry_new is deprecated, but GtkComboBoxEntry doesn't have the same "history-saving" functionality.. I need to set up a GtkComboBoxEntry with an "history" list. Should I handle it by myself, or is there any replacement function? ___

radiobuttons

2005-07-29 Thread The Saltydog
I need to query a group of radiobuttons to know which one is active. Should I get each one's state or is there a shortcut? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: inclusion of vfs modules

2005-07-29 Thread The Saltydog
On 7/29/05, Iago Rubio <[EMAIL PROTECTED]> wrote: > snip Great and exhaustive reply, thank you! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

inclusion of vfs modules

2005-07-29 Thread The Saltydog
In my program I need to include the right header for gnome_vfs_get_file_mime_type. I have found that the header is in /usr/include/gnome-vfs-module-2.0/libgnomevfs/gnome-vfs-mime.h. If I put this include line: #include the module is not found, even if I add the right path for inclusion. The only

Re: gtk_tree_store_set

2005-07-28 Thread The Saltydog
On 7/28/05, Stefan Kost <[EMAIL PROTECTED]> wrote: > hi, > > and why do you pass the guint64 to a slot of type G_TYPE_DOUBLE? > Either cast to (double) or use G_TTYPE_UINT64 for the column. > Apart its a good idea to use an enum for the columns ids ;) > Yes, I have just realized that! I am chang

Re: gtk_tree_store_set

2005-07-28 Thread The Saltydog
On 7/28/05, Tim Müller <[EMAIL PROTECTED]> wrote: > So what GTypes are those columns, ie. what does your gtk_tree_store_new() line > look like? > > What type does your calc() function return? float? int? something else? > > What type is g_fs.used? > This is tree_store_new: GtkTreeStore

Re: gtk_tree_store_set

2005-07-28 Thread The Saltydog
On 7/28/05, Brian J. Tarricone <[EMAIL PROTECTED]> wrote: > If you post a section of source code showing what you're trying to do, > we might be able to help. > sorry. This is my code: ** gtk_tree_store_append(model,&firstiter,NULL);

gtk_tree_store_set

2005-07-28 Thread The Saltydog
I am experiencing some problem on gtk_tree_store_set when compiled on amd64 or powerpc. The segfault I have in such cases is referring to the fact that the argument list is not ended with -1. Looking at the gtk+ code, I have found that gtk_tree_store_set is calling gtk_tree_store_set_valist, but th

Re: To spawn or not to spawn? This is the question...

2005-07-27 Thread The Saltydog
On 7/26/05, Tristan Van Berkom <[EMAIL PROTECTED]> wrote: > if you use threads for this you dont have to bother with all the > gdk_threads_enter/leave stuff as long as your child thread is just > a worker thread, it can communicate with a GAsyncQueue. The online documentation is very poor concerni

Re: Directory selecting

2005-07-27 Thread The Saltydog
On 7/27/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Could anyone tell me how to solve this problem? I'm quite lost. I tried > to google on this, but most results where either irrelevant, or ended up > with this same question, but not the answer :) GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER

To spawn or not to spawn? This is the question...

2005-07-26 Thread The Saltydog
I have an application that performs deep directory recurrent scanning. During such scan, at each iteration, I execute while (gtk_events_pending()) { gtk_main_iteration(); }in order to keep the GUI updated from the directory scans results. It works fine, at an acceptable speed. Now my que

GtkHTML

2005-07-21 Thread The Saltydog
does anybody know where can I find documentation concerning use of GtkHTML? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Is it possible to use int in labels?

2005-07-20 Thread The Saltydog
On 7/20/05, Søren Juul <[EMAIL PROTECTED]> wrote: > Is it possible to use a int in labels? or is it only chars? > > Søren J you can pack the int into a string with functions like sscanf() and then set the resulting string into the label. ___ gtk-app-dev

Re: libwww

2005-07-20 Thread The Saltydog
On 7/20/05, Arx Henrique <[EMAIL PROTECTED]> wrote: > libcurl is very good too > > i'm using here to get html content from one pabe and write in gtkhtml widget. Thanks you.. And where can I get the API reference for libgtkhtml? ___ gtk-app-devel-list ma

Re: libwww

2005-07-20 Thread The Saltydog
On 7/20/05, The Saltydog <[EMAIL PROTECTED]> wrote: > I was looking at libwww, but it doesn't seem to be suitable for gtk+ > applications.. Is there any equivalent library with the same > functionalities? More on this... I have found libsoup, that is glib-based. But there

libwww

2005-07-20 Thread The Saltydog
I was looking at libwww, but it doesn't seem to be suitable for gtk+ applications.. Is there any equivalent library with the same functionalities? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk

Re: How to convert file names from

2005-07-20 Thread The Saltydog
On 7/20/05, Christian Schneider <[EMAIL PROTECTED]> wrote: > file == Null if a german special charakter is > involved! > You should use g_filename_to_utf8() or g_locale_to_utf8() before displaying the string in a gtkwidget.. ___ gtk-app-devel-list mail

Re: changing the model in a treeview

2005-07-20 Thread The Saltydog
On 7/19/05, Roger Leigh <[EMAIL PROTECTED]> wrote: > > Yes. Just call gtk_tree_view_set_model(). Yes, but what if the alternative model requires a different column-layout of the treeview? Can I change dynamically the layout when switching to other model, or should I keep things separated and cr

changing the model in a treeview

2005-07-19 Thread The Saltydog
I need to switch (from user action) 2 different models on the same gtktreeview. Is it allowed? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

gcc versions..

2005-07-16 Thread The Saltydog
I have problems with different versions of gcc. With gcc v.3.3.5, this line complies fine: g_array_append_val(hardLinkArray,(guint)inode); with gcc v.4, I am getting this error: error: invalid lvalue in unary '&' I have also tried removing the cast (guint) before the variable inode, and with 3

greying a treeviewcolumn

2005-07-15 Thread The Saltydog
In my application I have a TreeViewColumn which holds a column of checkboxes. Depending on user actions, I need to "grey" the whole checkboxes, so they become un-editable... I didn't find the way to do that. ___ gtk-app-devel-list mailing list gtk-app-dev

Re: changing treeview header title

2005-07-15 Thread The Saltydog
On 7/15/05, The Saltydog <[EMAIL PROTECTED]> wrote: > How can I change the title of a TreeView column already inserted? found, sorry: gtk_tree_view_column_set_title () ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome

changing treeview header title

2005-07-15 Thread The Saltydog
How can I change the title of a TreeView column already inserted? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: tree expand

2005-07-12 Thread The Saltydog
You can find a nice tutorial here: http://scentric.net/tutorial/treeview-tutorial.html ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

parsing HTML

2005-07-12 Thread The Saltydog
What I am really missing from Perl is the libwww library to create user-agents, parse HTML code, etc... Is there such a tool available also for gtk+/glib, or maybe I should switch to mono/gtk#?? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnom

Re: closing a GtkFileChooserDialog

2005-07-09 Thread The Saltydog
On 7/9/05, Eduardo M KALINOWSKI <[EMAIL PROTECTED]> wrote: > If you only call the function to destroy the dialog after your long > subroutine, it will only be destroyed after the subroutine, naturally. > You must call gtk_widget_destroy before calling the subroutine. Besides, > it might be necessar

closing a GtkFileChooserDialog

2005-07-09 Thread The Saltydog
I have an annoying problem... Open a GtkFileChooserDialog, select the file, click "Open"... then execute a time-demanding subroutine. The dialog doesn't close until the subroutine exists. This is a snap of the code: ** if (gtk_dialog_run (GTK_D

Re: main loop

2005-07-09 Thread The Saltydog
On 7/9/05, The Saltydog <[EMAIL PROTECTED]> wrote: > It is due to the fact that I am running a time-demanding deep routine > in main before executing gtk-main. Then, from the routine I am > executing > > while (gtk_events_pending()) { gtk_main_iteration(); } > > so th

Re: main loop

2005-07-09 Thread The Saltydog
On 7/9/05, Maciej Katafiasz <[EMAIL PROTECTED]> wrote: > This error means you don't have any mainloop running that could be > stopped. Seems like you're running gtk_main_quit() too many times, you > should rather exit the process (via exit() or return from main()). It is due to the fact that I am

Re: g_io_channel

2005-07-08 Thread The Saltydog
On 7/8/05, Vivien Malerba <[EMAIL PROTECTED]> wrote: > Beware however that depending on the contents of your structure, you > may have some problems if you exchange data this way between machines > which do not have the same endian-ness (if it's on the same machine, > then no problem!). should no

g_io_channel

2005-07-08 Thread The Saltydog
I need to send a data structure over an io_channel. In the reference manual, I found that the only available instruction to write data in a channel is: GIOStatus g_io_channel_write_chars(GIOChannel *channel, const gchar *buf,

main loop

2005-07-07 Thread The Saltydog
I need to stop my application even if a loop is running. By executing gtk_main_quit() I got this error: Gtk-CRITICAL **: gtk_main_quit: assertion `main_loops != NULL' failed ..but I didn't started any new loop. It is the main loop that is running. How can I safely stop it? __