GTK and C# comparison: compare and contrast discussion

2004-12-30 Thread Neil Zanella
GTK provides some support for component-based (as opposed to object-based) programming, and if so, then how is the component paradigm accomplished in GTK? Feedback welcome, Best Regards, Neil Zanella ___ gtk-list mailing list gtk-list@gnome.org http

Re: g_signal_handlers_block_by_func

2004-12-08 Thread Neil Zanella
On Mon, 6 Dec 2004 09:08:43 -0500, Tristan Van Berkom [EMAIL PROTECTED] wrote: On Fri, 3 Dec 2004 16:33:27 -0700, Neil Zanella [EMAIL PROTECTED] wrote: Hello, I would like to know whether the function call g_signal_handlers_block_by_func can be applied to (external) events

spinbutton problem with numeric input

2004-12-04 Thread Neil Zanella
Hello, I am using a spinbutton for numeric input. The problem is that when I set the numeric property to on I cannot seem to enter text with the keyboard. On the other hand, when the numeric property is off, it is possible to enter non-numeric junk characters into the spinbox which is also not

g_signal_handlers_block_by_func

2004-12-03 Thread Neil Zanella
Hello, I would like to know whether the function call g_signal_handlers_block_by_func can be applied to (external) events in the same way as it can be applied to (internal) Gtk signals so as to temporarily block them and then call g_signal_handlers_unblock_by_func Do both of these work on

date entry widgets for GTK on Windows

2004-12-02 Thread Neil Zanella
Hello, Can someone please point me to a date entry widgets that will compile on GTK on windows (i.e. must not be a gnome widget). If you know of such a widget which I can use temporarily until something makes it into the real GTK core set of widgets then I would be very happy to use it. Thanks,

hiding windows when pressing on window manager (X)

2004-12-02 Thread Neil Zanella
Hello, I would like to know, is there a way to tell GTK that when the user clicks on the window manager's (X) usually found in the upper right hand corner of window frames, the window is to be hidden instead of destroyed? This behavior is the one needed for child windows of parent windows which

GtkCList: is row selected?

2004-12-02 Thread Neil Zanella
Hello, I would like to know whether there is a way to programmatically determine whether a particular row is selected in a columned list. How come there is no such method to do this? Thanks, Neil ___ gtk-list mailing list [EMAIL PROTECTED]

Re: GtkEntry and numeric floating point input

2004-12-01 Thread Neil Zanella
, 29 Nov 2004 07:29:03 -0800, Vlietstra, Joe (NSSD) [EMAIL PROTECTED] wrote: Neil Zanella [EMAIL PROTECTED] wrote: I've got a GtkEntry and I need to confine user input into this widget to numeric values which will fit into the underlying C data types. What is the best way to do

Re: g_string_insert_c

2004-11-29 Thread Neil Zanella
On Sat, 27 Nov 2004 16:53:52 +0100, Sven Neumann [EMAIL PROTECTED] wrote: Hi, Neil Zanella [EMAIL PROTECTED] writes: I would like to know whether g_string_insert_c inserts the character before the character at the specified position or after. It inserts the character at the specified

GtkCList and scrollbar configuration

2004-11-27 Thread Neil Zanella
Hello, I would like to know whether it is possible to configure GtkCList (or the replacement widget) so as to have the vertical scrollbar displayed on the left instead of on the right, or, optionally, have scrollbars on both sides. This would be useful for really wide tables where the user has to

GtkEntry and numeric floating point input

2004-11-27 Thread Neil Zanella
Hello, I've got a GtkEntry and I need to confine user input into this widget to numeric values which will fit into the underlying C data types. What is the best way to do this? If the values were only allowed to be integers I'd use a GtkSpinBox (I think that's what it's called), but since they

g_string_insert_c

2004-11-26 Thread Neil Zanella
Hello, I would like to know whether g_string_insert_c inserts the character before the character at the specified position or after. The documentation does not mention this but I think it should be more specific. Thanks, Neil ___ gtk-list mailing list

gtk_tree_model_get_iter_first

2004-11-24 Thread Neil Zanella
Hello, I would like to know how come gtk_tree_model_get_iter_first doesn't just return a GtkTreeIter and set it to NULL when the end of the iteration is reached rather than returning a boolean? Why is the design of the API such that it returns a boolean instead? Wouldn't the approach I describe

Re: columned list

2004-11-24 Thread Neil Zanella
This is very interesting but something very odd happens when I press the down arrow key on a GtkCList which has just been created with text in it and has no selections: the first row gets a box, and if I keep moving with the down keyboard key I end up with two boxes. This is with GTK 2.4.13. Then

Re: gtk_tree_model_get_iter_first

2004-11-24 Thread Neil Zanella
and are not expected to be used beyond block scope, so by having them on the stack you need not free them. Interesting explanation. Others welcome... Best Regards, Neil On Wed, 24 Nov 2004 23:29:51 +, Tim Müller [EMAIL PROTECTED] wrote: On Wednesday 24 November 2004 23:03, Neil Zanella wrote: I

Re: GtkToggleButton signals question

2004-11-23 Thread Neil Zanella
On Sun, 21 Nov 2004 22:06:54 -0600, James M. Cape [EMAIL PROTECTED] wrote: On Sun, 2004-11-21 at 19:27 -0700, Neil Zanella wrote: Hello, I would like to know whether the following behavior is reliable, since it is not documented in the API reference: When I press a GtkToggleButton

Re: another GtkToggleButton signal question

2004-11-23 Thread Neil Zanella
at 19:49 -0700, Neil Zanella wrote: Hello, Can I also rely on the fact that if a GtkToggleButton is active then a function call to set its active state to TRUE is not going to trigger a signal. In general, is it true that signal handlers are invoked when properties are CHANGED

GtkCList: number of columns

2004-11-23 Thread Neil Zanella
Hello, Is there a way to get the number of columns in the deprecated GtkCList widget? Thanks, Neil ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

gtk_clist_append() question

2004-11-23 Thread Neil Zanella
Hello, I would like to know, when I call gtk_clist_append() does the underlying GtkCList widget take ownership of the char ** parameter? So do I have to create a new one for each new row to avoid segfaults? Thanks, Neil ___ gtk-list mailing list

g_object_unref

2004-11-22 Thread Neil Zanella
Hello, The developer documentation does not mention here so I thought I'd ask on this list. Is it OK to call g_object_unref() on a NULL pointer (with nothing happening)? Thank you, (and I think this should be mentioned in the docs) Neil ___ gtk-list

GtkToggleButton signals question

2004-11-21 Thread Neil Zanella
Hello, I would like to know whether the following behavior is reliable, since it is not documented in the API reference: When I press a GtkToggleButton (suppose the button goes from being pressed out to pressed in), I notice that the toggled signal is emitted _AFTER_ the button becomes pressed

another GtkToggleButton signal question

2004-11-21 Thread Neil Zanella
Hello, Can I also rely on the fact that if a GtkToggleButton is active then a function call to set its active state to TRUE is not going to trigger a signal. In general, is it true that signal handlers are invoked when properties are CHANGED BY A FUNCTION OR USER ACTION, and not when a function

columned list

2004-11-20 Thread Neil Zanella
Hello all, Please don't tell me about Columned List being deprecated: I know. What I would like to ask about it is, when I move with the up and down arrows, a rectangular box moves, but the blue highlighting stays in the same place (unlike what happens when I click with the mouse). Could someone

G_CONST_RETURN

2004-11-19 Thread Neil Zanella
Hello, When looking at the GTK API I see several places that use G_CONST_RETURN. What are these macros there? I cast their effect away with casts, but I am not sure whether that is the right thing to do. I wonder whether someone can elaborate on this (not sure why a function would have to return

g_list_next(foo) vs. foo-next

2004-11-18 Thread Neil Zanella
Hello, I was just wondering whether g_list_next(foo) and foo-next are really the same or not. It seems to me that they are but that the former construct is preferable for object-oriented-like reasons. Thanks, Neil ___ gtk-list mailing list [EMAIL

Re: newbie question: connecting signals to callbacks

2004-11-05 Thread Neil Zanella
On Tue, 2 Nov 2004 09:17:13 +, Tim Müller [EMAIL PROTECTED] wrote: Yes, it's fine to call a function with more arguments than it takes (in C). I think your explanation is missing some detail... could you explain that again please??? #include stdio.h #include string.h int main(void) {

Re: running real time application behind glade

2004-11-01 Thread Neil Zanella
Hi, I would like to help you except I do not fully understand your question... How is the fact that your application is real time different in this context. I.e. what does it have to do with Glade? Are you trying to embed an OpenGL window within some widgets? What OS are you running? If I

Re: undocumented parameters

2004-11-01 Thread Neil Zanella
OK, I am now connecting the switch-page for notebooks which seems to be the only one that works. However, void foo(GtkNotebook *notebook, GtkNotebookPage *page, guint page_num, gpointer data) { assert(page_num == (guint) gtk_notebook_get_current_page(notebook)); ... } The above assertion

newbie question: connecting signals to callbacks

2004-11-01 Thread Neil Zanella
Hello, I have a basic question which I would like to ask: The function prototype for gtk_main_quit() is: void gtk_main_quit(void); The GtkObject signal prototype for the destroy callback is: void user_function(GtkObject *object, gpointer user_data); Yet I can connect the two as follows:

undocumented parameters

2004-10-31 Thread Neil Zanella
There is a bunch of undocumented parameters at: http://developer.gnome.org/doc/API/2.0/gtk/GtkNotebook.html#GtkNotebook-select-page In the following, I guess arg1 is the index of the page? I'm just guessing, but it would be nice if they were documented properly. Thanks. And BTW what is the name of

just a couple of migrating newbie questions

2004-10-22 Thread Neil Zanella
Hello, Anyone know how to popup a window with a frame? Also, what is the difference between fprintf() and gprint(). Is there a GDK documentation for the G_ macros and stuff other than the GTK API and Tutorial (for the lower layer library)? OK, I'll just keep going through the API... Well

GTK+ Qt widget stack: how?

2004-10-10 Thread Neil Zanella
Hello, I am migrating from Qt to GTK+ and from Qt designer to Glade. Hence, I would like to know the following as I cannot seem to find the answers in the GTK+ documentation: -- 1. Qt Designer has the following widet, called a widget