Re: GtkListStore and Threads problems

2005-06-16 Thread Peter Bloomfield
On 06/15/2005 07:55:45 PM Wed, Lorena Salinas wrote: Here is a graphic to show where (I suppose) the problem is: [ snip ] T1: gtk_main() starts to read the 5 columns of row 1 from the model shared with the working thread (using gtk_tree_model_get()) T2: the working thread locks GTK main t

Re: GtkListStore and Threads problems

2005-06-15 Thread Peter Bloomfield
On 06/15/2005 10:11:53 AM Wed, Lorena Salinas wrote: Here is part of the function... valid = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (my_model), &iter); while (valid) { gtk_tree_model_get (GTK_TREE_MODEL (my_model), &iter, MYMODEL_COL_STATUS, &status, -1); /* do some long calculations

Re: GtkListStore and Threads problems

2005-06-14 Thread Peter Bloomfield
On 06/14/2005 02:20:16 PM Tue, Lorena Salinas wrote: Hi, This is what I do inside the worker_thread function (create_and_start_worker_thread ()) every time I want to update the model: gdk_threads_enter();/* get GTK thread lock */ gtk_list_store_set (GTK_LIST_STORE (host_model), &i

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

2005-06-14 Thread Peter Bloomfield
On 06/14/2005 09:52:19 AM Tue, Colossus wrote: 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 ? See

Re: Removin all Widgets from a VBox

2005-06-08 Thread Peter Bloomfield
On 06/08/2005 08:13:53 AM Wed, Muthiah Annamalai wrote: Hi! I think Ive a solution to what youre asking me. Why not just create your own box, pack it in the dialog's vbox, and pack your widgets in it? When you want to change them, destroy your box and recreate it. ___

Re: Signals question

2005-06-02 Thread Peter Bloomfield
On 06/02/2005 10:32:03 AM, Derrick J Houy wrote: In a simple text editor, I have a "docked" find/replace bar, as apposed to the common dialog version. The problem I had is that when pressing Ctrl-v inside either the find or the replace entry box, the text is pasted into the editing window

Re: State changing of Toggle Buttons

2005-05-30 Thread Peter Bloomfield
On 05/30/2005 04:44:00 PM, Michal Porzuczek wrote: Hi, I was wondering if it is possible to set a Toggle Button's state to something else when you are inside another Toogle Button's callback. I know there is the gtk_toggle_button_set_active method but that requires you to have the GtkTog

Re: GnomeDateEdit

2005-05-30 Thread Peter Bloomfield
On 05/30/2005 05:42:49 AM, abhi rocks wrote: hi Could someone please tell me how to access the GtkEntry field in the GnomeDateEdit widget. I believe you can't. Or it would be cooler if someone could tell me how to extract the date and time from time_t data type. g_date_set_time will initia

Re: Manual Menu Creation - Accelerator Groups

2005-05-27 Thread Peter Bloomfield
On 05/27/2005 07:41:18 AM, Daniel Pekelharing wrote: Hi all, I'm trying to create a menu for my app manually. No problems with the menu it works fine, but I don't quite understand how to assign accelerator's to an item. My question(s): How do I add an accelerator to an accelerator group? And ho

Re: signal passing

2005-05-25 Thread Peter Bloomfield
On 05/25/2005 06:36:00 AM, srinivas wrote: hi ; thanks for reply; from on_text_entry_activate i can call the out put handler, but from on_button_next how to call output handler. i am not getting how to get the entry object from interface.c to callbacks.c. in on_text_entry_activate, due to

Re: signal passing

2005-05-24 Thread Peter Bloomfield
On 05/24/2005 07:24:17 AM, Peter Bloomfield wrote: [ snip ] Why go through the whole process of emitting a signal? Put the output code in a handler ^^^ I meant in a helper! ___ gtk-app-devel-list mailing list gtk-app-devel

Re: signal passing

2005-05-24 Thread Peter Bloomfield
On 05/24/2005 05:12:57 AM, srinivas wrote: [ snip ] if (strlen(s)>0) Better: if (s[0] != '\0') [ snip ] and in "on_button_next_clicked" callback i just added the one u given. void on_button_next_clicked (GtkButton *button, gpointer user_d

Re: gtk_combo_box_get_active_text not defined

2005-05-22 Thread Peter Bloomfield
On 05/22/2005 07:46:05 AM, y g wrote: hi gtk_combo_box_get_active_text is not defined (and trully is as i looked on the source code of gtkcombobox.h, which probably means i am using an older version of gtk2 gtk_combo_box_get_active_text is "Since 2.6"... so the question is how can i

Re: launching web-browser

2005-05-21 Thread Peter Bloomfield
On 05/21/2005 08:51:05 AM, Gyözö Both wrote: thanks for your answers. if possible, i'd like to have a solution that only uses gtk/glib, i wouldn't want to have a gnome-dependency in my app. is there a way? gyözö So would I--if you find one, please be sure to post it! Peter ___

Re: launching web browser

2005-05-21 Thread Peter Bloomfield
On 05/21/2005 03:15:48 AM, Gyözö Both wrote: hi, is there a good (and easy) way to launch the system's default web browser with a given url from my gtk program? See . __

Re: gtk_tree_model_get() --> when to free results???

2005-05-10 Thread Peter Bloomfield
On 05/10/2005 09:40:04 AM, Olivier Sessink wrote: Hi all, in the documentation from gtk_tree_model_get() at http://developer.gnome.org/doc/API/2.0/gtk/ GtkTreeModel.html#gtk-tree-model-get I read: "If appropriate, the returned values have to be freed or unreferenced." my question is: when is

Re: GtkTreeView SIGNALS

2005-05-03 Thread Peter Bloomfield
On 05/03/2005 10:34:02 AM, John Coppens wrote: On Tue, 3 May 2005 10:11:49 -0400 André Pedralho <[EMAIL PROTECTED]> wrote: I'm trying to use the single click on a GtkTreeView. Is there a way for me? The row-activated signal is activated with a double click... I'm needind one that is launched wi

Re: g_signal_connect

2005-05-03 Thread Peter Bloomfield
On 05/03/2005 09:14:35 AM, Tomaz Canabrava wrote: Little trouble here =) the g_signal_connect works like what? g_signal_connect(GTK_WIDGET(widget), signal("clicked"), G_CALLBACK(Function), (gpointer) "Data"); but the callbacks functions have the GtkWidget *Widget as a 1st parameter, and... well, i

Re: GList

2005-05-03 Thread Peter Bloomfield
On 05/02/2005 01:13:49 PM, ÐÐÑÑÐÐ Ñ wrote: i think that the result of next code must be 3. but i have 0 ...because l is still NULL, and g_list_length(NULL) is 0. g_list_append returns the address of the first item in the list with its appended item, so you should use: if uncomment "l=

Re: GTK window and thread

2005-05-02 Thread Peter Bloomfield
On 05/02/2005 09:50:55 AM, Frederic Beck wrote: Hello Here's my problem : i have a daemon running in the background, and i want it to show popups after some events. I'm new in using GTK, so i took a look at the tutorial, and i managed to create the window and show it. The popup window is clo

Re: GNOME Indentation Style

2005-04-29 Thread Peter Bloomfield
On 04/29/2005 07:50:13 AM, John (J5) Palmieri wrote: [ snip ] You should use whatever the project has chosen. If you are starting a new project the majority of GNOME programs are coded using the 8 space tab "kernel" indentation style. What is important is not the coding style used but that

Re: connecting entry to button

2005-04-24 Thread Peter Bloomfield
On 04/24/2005 12:24:36 PM, Yucehan Kutlu wrote: Hi when press okay the title on the entry will be write on console but i cannot connect enter function to okay button program compile normaly but hiting okay it gives this error (iler:5219): GLib-GObject-WARNING **: invalid cast from `GParamBoo

Re: problems to make the datas appear in a TREE ...

2005-04-21 Thread Peter Bloomfield
On 04/21/2005 02:22:44 AM, Santhosh wrote: Hi, Sorry for the late reply. I haven't checked my mails... > Now , I did what you say (populate the thee in the same level), and > every thing is working fine, except when I click in a element showed > -> I get a SEGFAULT !! It's probably bad data in the

Re: printing HtmlView (from libgtkhtml)

2005-04-20 Thread Peter Bloomfield
On 04/20/2005 08:18:55 AM, Hubert Sokolowski wrote: Hi! How to easily print the content of HtmlView created with html_view_new () ? Or some way to save it to a postscript file? The HtmlView api (libgtkhtml/view/htmlview.h) is quite sparse--nothing about printing, saving, or otherwise exporting

Re: problems to make the datas appear in a TREE ...

2005-04-18 Thread Peter Bloomfield
On 04/18/2005 04:57:27 PM, Antonio Gomes wrote: Hi every one, I'm getting some troubles to make datas appear in a gtk tree store ... i'm pasting the piece of code in my app that is resposible to create and populate the tree [ code snipped ] after all this code, there is no segfaults but nothin

Re: TreeView multiple selection

2005-04-15 Thread Peter Bloomfield
On 04/14/2005 11:01:01 AM, [EMAIL PROTECTED] wrote: Hi all, I'm trying to transfer a selection between to treeviews : on is an iconview the other is a treeview, both of them uses the same model. If you have a similar on_treeview_selection_changed callback, they're probably getting in each oth

Re: Callbacks from an idle function

2005-04-08 Thread Peter Bloomfield
On 04/08/2005 11:41:57 AM, Vivien Malerba wrote: On Apr 8, 2005 5:26 PM, Peter Bloomfield <[EMAIL PROTECTED]> wrote: [ snip ] Perhaps you're trying to use gdk_threads_enter recursively? Instant lock... I did not use gdk_threads_enter()/gdk_threads_leave() when I posted the messag

Re: Callbacks from an idle function

2005-04-08 Thread Peter Bloomfield
On 04/08/2005 10:22:59 AM, Vivien Malerba wrote: [ snip ] However, still from the same function, I then destroy the custom widget, and the whole application locks. A backtrace from gdb attached to the locked application gives: (gdb) bt #0 0x00ad37a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2

Re: help regarding the combobox

2005-04-08 Thread Peter Bloomfield
On 04/08/2005 01:40:02 AM, poonam chokshi wrote: hello, I am using the combobox in the heirarchy as shown -Main window -secframe -secfixed -seccmb Now i am trying to add some data to the the combo box usingthe g_list_append() function in my own callba

Re: int problems on amd64

2005-03-29 Thread Peter Bloomfield
On 03/29/2005 10:06:59 AM, Roland Smith wrote: [ snip ] I'm using GTK+ on FreeBSD 5.3 amd64 without problems. Any program casting int to void* is b0rken. ...which is why glib provides these: Peter ___

Re: rubberbanding with GTK1* and GTK2* again

2005-02-27 Thread Peter Bloomfield
On 02/26/2005 07:12:35 AM, kees wrote: Hello folks, Thanks everybody for trying to help me!! Since you're using the x[] and y[] arrays to remember a location between calls to drawareacb(), they need to be declared static. I've no idea how this worked under Gtk1! Peter

Re: GtkTreeModelFilter question

2005-02-13 Thread Peter Bloomfield
On 02/13/2005 08:12:52 AM, Maulet wrote: Hi all, I'm having problems with GtkTreeModelFilter. The following sample program simply builds a window with a tree view inside. A tree model filter wraps the tree model of the tree view. The filter uses a visible function that always returns FALSE. S

Re: gdk_threads_enter/leave() in threaded and non threaded situation

2005-02-10 Thread Peter Bloomfield
On 2005.02.10 16:20, Stefan Kost wrote: hi hi, I have a gobject property that is set (via g_object_set()) from within a thread and from the main thread. Further I have signal handlers that watch this via notify::property. These signal handler call gtk functions. Therefore in these signal hand

Re: file_chooser's parent: is NULL OK?

2005-02-03 Thread Peter Bloomfield
On 2005.02.03 13:23, Allin Cottrell wrote: The second parameter to gtk_file_chooser_dialog_new() is GtkWindow *parent. I've been in the habit of putting my app's main window in as the parent, but I notice that this sometimes produces undesirable results. For example, using the file chooser to

File chooser

2005-02-03 Thread Peter Bloomfield
Hello! I need some help with the new file chooser, in folder mode. The widget should present a folder name to the user, with the option to change it to either another existing folder or a new one. GtkFileChooserDialog in GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER mode seems to be the way to go

Re: compare entry with list

2005-01-25 Thread Peter Bloomfield
On 01/25/2005 07:24:51 AM, Vinod Joseph wrote: Hello Members Please guide me why this operation fails logically for some values at some times [ snip ] const gchar *entry_text; entry_text = gtk_entry_get_text (GTK_ENTRY (entry)); [ snip] g_free(entry_text); Perhaps because you're deallocatin