gtk_entry problem in a gtk_dialog

2005-06-30 Thread Colossus
Hi, I have a gtk_dialog with a gtk_entry and a button. Before clickink Ok the user must supply a filename in the gtk_entry. The problem: if the user doesn't do this I have a gtk_message_dialog appears with an error message but to give control again to the gtk_dialog ? The execution of the code

Re: [gnome-db] a gtk-app with arm-linux-gcc

2005-06-30 Thread Rodrigo Moya
On Thu, 2005-06-30 at 16:47 +0530, Raghavendra wrote: Hi all, we are developing a gtk apllication with libgda as a backend processor it works without any problems when gcc is used. but when arm-linux-gcc( as we are developing a application for handheld devices namely simputer) is used it

atk error

2005-06-30 Thread Tomaz Canabrava
When i tryied to compile the simplest program written using Gtkmm, i got this output error: It was not possible to find the beginning of the procedure atk_relation_add_target on the Dinamic linked library libatk-1.0-0.dll I downloaded the precompiled atk package on the Tor Lillqvist site. What

Re: GTK dialog ESC key problem

2005-06-30 Thread Christopher Anderson
The problem is that, as Tim said, hitting cancel emits a GTK_RESPONSE_DELETE_EVENT, not a GTK_RESPONSE_CANCEL. So with your code, if the user hits escape, your if statement will go to the ok part. Here's what you should use instead: switch (response) { case GTK_RESPONSE_CANCEL:

GtkNotebook problem

2005-06-30 Thread David Cooke
Hi, I have recently begun migrating a long-neglected app from Gtk1.2 to Gtk2. I have so far made the minimum alterations necessary to compile. I have a GtkNotebook in the main window, and find that GtkEntry and GtkClist widgets displayed in a notebook page do not respond at all to the

Re:combo box with some preset

2005-06-30 Thread Muthiah Annamalai
--- [EMAIL PROTECTED] Josh! From: Joshua A. Andler [EMAIL PROTECTED] Basically I'd want a combo box with some preset values, but spinbuttons on it to tweak from there. Is this doable with GTK? I guess anything is doable with a 2D drawing kit is doable in GTK+. Ask GIMP, Inkscape, GNOME and

[gnome-db] [Newbie, libgda] Problem with libgda -

2005-06-30 Thread Uzytkownik
I'd like to check if libgda could create SQLite db. $ cat sqlite-create.c #include libgda/libgda.h void do_connection() { GdaClient *client; GdaConnection *connection; GdaCommand *command; client = gda_client_new(); g_print(CONNECTING\n);

sensing window destruction

2005-06-30 Thread Michal Porzuczek
Hi, I was wondering how it is possible to sense when a widget is closed by the user and send change a specific variable as a result. Furthermore, is there a way other then gtk_widget_destroy to destroy/close widget windows because this causes seg faults for me in some occasions and in others

RE: combo box with some preset

2005-06-30 Thread Joshua A. Andler
Otherwise, well copy code of spin button, and write a new widget, but deriving from combo, instead of entry. combo-spin! Maybe simpler - without changing gtk code: Put the combo in a table of 2x2 (rowspan 2) Put two buttons in the remaining 2 boxes with up and down buttons. Glue

How compile resource inside .o file?

2005-06-30 Thread 顺珉 吴
I want all icons and images my programm used be packaged in to the final execute binary file. How can I do this? Thanks. ___ 雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱 http://cn.mail.yahoo.com/?id=77071

Grabbing focus under Metacity Gnome2.10

2005-06-30 Thread Tristan Sloughter
My program Tilda(http://tilda.sf.net) needs to be able to grab focus when the user presses a key requesting for Tilda to reappear. For some reason this works fine in most window managers (xfwm4, fluxbox...) but under Metacity focus does not go to Tilda when it reapears. This: gtk_window_present