hy;hen/underscore equivalence in signal names?

2005-02-03 Thread Boncek, John
I typed an underscore instead of a hyphen by mistake in a GtkEntry signal name, "insert_text" instead of "insert-text", at one of 2 places the name was used. It worked. I inverted both of them and it still worked. Apparently these are interchangeable, at least in this one instance, in GTK 2.2.4.

Newbie: glade-2 generated code differ with tutorial

2005-02-03 Thread Edward Yang
I am new to gtk+. I am reading the tutorial on gtk site. I also created a test project using glade-2 (2.6.8). But the test program generated by glade-2 cannot close after I click on the x window button. After some investigation, I found that the delete_event/destroy event handler prototypes are

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: Newbie: glade-2 generated code differ with tutorial

2005-02-03 Thread Bruno G. San Alejo
Hello, I had a problem somewhat similar with Glade. It just didn't add the code for the handlers of the destroy and delete events and I ended up adding the handlers myself so that the applications really quit. I guess that we are suppoused to add them manually. Edward Yang wrote: I am new to gt

running without a mainlopp for unittests

2005-02-03 Thread Stefan Kost
hi hi, I currently fight with some highlevel unit test, that should basically start the application and immeditely exit. The Problem I have is that instead of calling gtk_main() I want to init everything and then shut-down. The test-framework stats tests with fork to capture crashing. Before I in

file_chooser's parent: is NULL OK?

2005-02-03 Thread Allin Cottrell
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 save a displayed graph to file: when the fil

Re: file_chooser's parent: is NULL OK?

2005-02-03 Thread Matthias Clasen
On Thu, 2005-02-03 at 13:23 -0500, 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 exampl

Re: running without a mainlopp for unittests

2005-02-03 Thread Tristan Van Berkom
On Thu, 03 Feb 2005 19:07:48 +0100, Stefan Kost <[EMAIL PROTECTED]> wrote: > hi hi, > > I currently fight with some highlevel unit test, that should basically start > the > application and immeditely exit. > The Problem I have is that instead of calling gtk_main() I want to init > everything and

Re: hy;hen/underscore equivalence in signal names?

2005-02-03 Thread Paul Pogonyshev
Boncek, John wrote: > I typed an underscore instead of a hyphen by mistake in a GtkEntry signal > name, "insert_text" instead of "insert-text", at one of 2 places the name > was used. It worked. I inverted both of them and it still worked. > Apparently these are interchangeable, at least in this

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

Re: hy;hen/underscore equivalence in signal names?

2005-02-03 Thread Stefan Kost
with the only expection, as Mathhias has teached me recently, when connection to notify:: signals use the minus. So I generally use the minus to avoid confusion. Stefan Boncek, John wrote: > I typed an underscore instead of a hyphen by mistake in a GtkEntry signal > name, "insert_text" instead of

Re: hy;hen/underscore equivalence in signal names?

2005-02-03 Thread Tristan Van Berkom
On Thu, 3 Feb 2005 21:06:21 +0200, Paul Pogonyshev <[EMAIL PROTECTED]> wrote: > Boncek, John wrote: > > I typed an underscore instead of a hyphen by mistake in a GtkEntry signal > > name, "insert_text" instead of "insert-text", at one of 2 places the name > > was used. It worked. I inverted both

Re: running without a mainlopp for unittests

2005-02-03 Thread Stefan Kost
Hi, I use check too ;). Are your tests available somehwere ? Stefan Tristan Van Berkom wrote: > On Thu, 03 Feb 2005 19:07:48 +0100, Stefan Kost > <[EMAIL PROTECTED]> wrote: > >>hi hi, >> >>I currently fight with some highlevel unit test, that should basically start >>the >>application and imme

RE: hy;hen/underscore equivalence in signal names?

2005-02-03 Thread Boncek, John
Thanks for the clarification. I'm surely not the only one that didn't know this. -Original Message- From: Tristan Van Berkom [mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 1:26 PM To: Paul Pogonyshev Cc: Boncek, John; gtk-app-devel-list@gnome.org Subject: Re: hy;hen/underscor

Re: running without a mainlopp for unittests

2005-02-03 Thread Tristan Van Berkom
On Thu, 03 Feb 2005 20:41:39 +0100, Stefan Kost <[EMAIL PROTECTED]> wrote: > Hi, > > I use check too ;). > Are your tests available somehwere ? Hmmm, like I said; I dont really use them for GUI elements so my mainloop tests dont include gtk_init()... the test bodies that use mainloops have this k

Multiple timeouts

2005-02-03 Thread marcodev
I have a section of code that invokes g_timeout_add() to begin a data capture routine. The code can be invoked several times but the data collection function remains the same (the argument to the timeout holds the details of the data that needs to be collected): TIMEOUT = g_timeout_add (rate, C

Re: Multiple timeouts

2005-02-03 Thread Tristan Van Berkom
On Thu, 03 Feb 2005 21:49:43 +, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I have a section of code that invokes g_timeout_add() to begin a data capture > routine. The code can be invoked several times but the data collection > function remains the same (the argument to the timeout holds

GLib 2.6.2 released

2005-02-03 Thread Matthias Clasen
GLib 2.6.2 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.6/ glib-2.6.2.tar.bz2 md5sum: 31fafaf9b1a96ab804c078fb965eb529 glib-2.6.2.tar.gzmd5sum: a3ea78af76a290c21ebac545ffb44aae GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. I