signals (and disconnecting them)

2005-04-04 Thread Vadim Berezniker
Let's say we have the following code: some_func(); g_signal_handlers_disconnect_by_func(obj, func, param); If some_func() causes a signal to be emitted on obj and then almost immediately I disconnect the handler, will my handler receive the event before being disconnected or is there a chance

Re: signals (and disconnecting them)

2005-04-04 Thread Vadim Berezniker
[EMAIL PROTECTED] wrote: I'm not an expert but: Events that are queue'd are not scheduled until glib iterates again, so they will be lost yes. Even signals you emit by hand will be lost after the handler is unhooked. Atleast logic should be like that. I may be a bit crazy but it can make sense

Re: A numbered column in a Gtk::TreeStore

2005-03-29 Thread Vadim Berezniker
Bryan Forbes wrote: I'm working on audio support in Coaster and I have a Gtk::ListView to view a Gtk::TreeStore of tracks for an audio disc the user is creating. I need a column for the track number that automatically updates with the correct track number.

changing expand/fill pane parameters (without repacking)

2005-03-15 Thread Vadim Berezniker
Is it possible to change the expand/fill parameters of a paned's children without repacking them? (Repacking them is a huge performance hit) ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

GtkCellRendererCombo questions

2005-03-12 Thread Vadim Berezniker
1) Is there any way to add a separator item into the list? 2) Is there any better way to differentiate which item was selected in the combo? Right now, by hooking into the changed event, the callback simply receives the text of the item. I want to at least know which row in the backing store was

Re: Changing [entire] background of a GtkTextView

2003-08-31 Thread Vadim Berezniker
Vadim Berezniker wrote: I want to change the entire background of a GtkTextView to the background of its parent container. Using Tags, I can only change the background of the parts of the view with text. Changing the background using the widget style has no effect. (The only thing that seems

GtkLabel wrapping (or lack thereof)

2003-08-27 Thread Vadim Berezniker
Even after enabling wrapping on a label, it only wraps once and to a boundary I don't even understand. (Some labels wrap at one width, and some at another width.) Also the label does not rewrap when the parent container is resized. I also tried modifying the underlying PangoLayout with no

Re: How to change the text on a menu?

2003-08-27 Thread Vadim Berezniker
J. Davison de St. Germain wrote: Hi, Can someone please tell me how to change the text on a menu? For example, if I created the menu with Turn On Light and someone selects it, I wish to change the text to Turn Off Light. I would have expected to call gtk_menu_item_set_label() or some such, but

Re: setting an new font and new font size to an gtk_label

2003-08-25 Thread Vadim Berezniker
Luiz Rafael Culik Guimaraes wrote: Dear Friends How to change the default font of an gtk_label item as well the font size (in C is prefer) This is the method I use: PangoFontDescription *font_desc = pango_font_description_from_string(font_string); GtkRcStyle *style =

Re: Changing the contens of boxes

2003-08-21 Thread Vadim Berezniker
Jorge Santos wrote: Hello, I'm just starting to use GTK+ for an Interfaces Design course I'm taking at school and I need to change part of a window at the press of a button, is this possible? or do do I have to create a new window?, if this is so, how do I go about destroying the new window and

Re: How to strcmp data from gtk_entry?

2003-08-18 Thread Vadim Berezniker
george carter wrote: I'm having a small problem with using the data from a gtk_entry. I would like a user to enter a username and password into a gtk_entry. I don't have a problem with connect the button signals or anything. I'm calling a function which should compare the gtk_entry data

Re: Treeview help needed

2003-08-17 Thread Vadim Berezniker
wilfried kopp wrote: Hi everybody, I am stuck with a segmentation fault caused by a treeview and I have pent hours trying to figure out what's wrong with no success. Here is how I create the model (I simplified the code... but this version crashes as well...) while (item) {

Re: Something Connects to the Internet

2003-08-17 Thread Vadim Berezniker
Ibrahim El-Shafei wrote: From this I noticed that it tries to connect to something through the Internet if I'm connected. What is it? While this is not exactly pertinent to this list, I might as well try answering it anyway. It might be trying to lookup the hostname of your machine. Connect to

Re: Completely remove a GtkWidget from Memory

2003-08-14 Thread Vadim Berezniker
Christian Schneider wrote: Hallo, in my programm I've got the following global pointer: void on_fileselectionfensterglobal_destroy (GtkObject *object, gpointer user_data) { ... gtk_widget_destroy (fileselectionfensterglobal); } You're not assigning anything to

Re: Code compiles...but doesn't work (user input w/ gtk_entry )

2003-08-14 Thread Vadim Berezniker
void ClearEntry ( GtkButton * CancelButton, gpointer data ) { GtkWidget * textentry ; gtk_entry_set_text ( GTK_ENTRY ( textentry ), ) ; } You're trying to set text on something that's not even initialized. Calling a variable 'textentry' won't magically point it to the text

Re: Documentation for g_strconcat

2003-07-30 Thread Vadim Berezniker
Shiraz Baig wrote: I am trying to locate the documentation of following functions or variables but I couldn't find it. http://developer.gnome.org/doc/API/glib/glib-string-utility-functions.html#G-STRCONCAT http://developer.gnome.org/doc/API/glib/glib-lexical-scanner.html It should be in the glib

pango layout extents (ok under linux, problems under win32)

2003-07-17 Thread Vadim Berezniker
Using pango 1.2.1 and gtk 2.2.1 in 'English' locale. (For both windows and linux). I create a new label, set the text and then attempt to calculate extents using the various extents functions availabe. i.e. I tried retrieving the extents via the appropriate pango function, tried iterating over