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

Re: Gtk+ 2.7.0 tarball - make dist

2005-06-30 Thread J. Ali Harlow
On 28/06/05 16:50:40, Matthias Clasen wrote: You probably need a newer gtk-doc. We rely on a feature from cvs gtk-doc which copies files like question_index.sgml from docs/ reference/gtk to docs/reference/gtk/xml, replacing the usual gtk-doc shortcuts on the way. Ah. Much appreciated. I

Xft dependency

2005-06-30 Thread Mike Emmel
Is the Xft dependency still needed now that cairo is integrated ? It did not seem to be really used anymore. Mike ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list

GLib 2.7.1 released

2005-06-30 Thread Matthias Clasen
GLib 2.7.1 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.7/ glib-2.7.1.tar.bz2 md5sum: f6a6f4acd56b98e9372e5326e2657c10 glib-2.7.1.tar.gz md5sum: 739c01270ca2395db62e76751fc6fc84 This is the second development release leading up to GLib-2.8. Notes: * This is

Re: Discarding key pressed events.

2005-06-30 Thread Luca Cappa
Luca Cappa wrote: Hello, in my application I have some key handlers which receive input from the user. When the user press a key, a task has to be executed: this task could require a tiny time slice or a longer one. The problem is that if the user hold pressed a key and the relative task

Cannot start GTK apps - gdk_visual_decompose_mask

2005-06-30 Thread David Saxton
Hello, Recently (perhaps due to an upgrade to the system, or similar - I'm unsure when exactly it happened) gtk apps stopped working (the apps don't display any gui - just sit there taking up 100% cpu). This happens with all gtk apps tested - e.g. gimp, inkscape, gnumeric. Compiling gtk with

Drawing higher depth images

2005-06-30 Thread David Necas (Yeti)
Is it possible to use Gdk drawing functions (gdk_draw_arc(), etc.) to draw images of higher depth than system and save them? I can save GdkPixbufs. If there were drawing primitives in gdk-pixbuf, it would be everything I need. However I can draw only on GdkDrawables. To use

(no subject)

2005-06-30 Thread jalkadir
In my class, when I use the getter to display the value I get the right output, but when I try using the overloaded extractor operator () I get some hex value displayed. Here is some of the code: --- snip Main.cpp int main() { Money money(12.21); std::cout Value is: money.getAmount()

Getting the wrong output

2005-06-30 Thread jalkadir
In my class, when I use the getter to display the value I get the right output, but when I try using the overloaded extractor operator () I get some hex value displayed. Here is some of the code: --- snip Main.cpp int main() { Money money(12.21); std::cout Value is: money.getAmount()

GTK+2 on Linux and Windows

2005-06-30 Thread lmarcilly
Hi all! I am developping an application with Gtk+-2.6.4 on a windows box. I just want to know if it will work properly on a linux box where i have installed gtk+-2.6.4 ? Thanks in advance and sorry for my english! lm. ___ gtk-list mailing list

Re: GTK+2 on Linux and Windows

2005-06-30 Thread jalkadir
The best way to do this is to keep testing the program in each platfor. What I do is to develop in MSW and then I do test run on cygwin and for a more formal check I do a test run on one of the LINUX boxen. There have been insignificant discrepancies, but not many. Happy hacking!! Hi all! I

Re: GTK+2 on Linux and Windows

2005-06-30 Thread Benjamin Lau Wei Yii
You also need to sinder what functions you used in your program. If there are any functions specific to Windows, then you need to replace them with the appropriate function calls in order for it to run on Linux. but if you don't, and use GTK+ along with pure ANSI C, then it's alright.

Re: [Dev-C++] Getting the wrong output

2005-06-30 Thread jalkadir
Yes, I just notice that, so this are the changes I have made: --- Money.hpp friend std::ostream std::operator( std::ostream, const jme::Money ); friend std::istream std::operator( std::istream, jme::Money ); --- Money.cpp std::operator( std::ostream os, const jme::Money obj ) { os

pixel drawing

2005-06-30 Thread Andreas Bentlage
hi, i have the following 2 arrays. gfloat pixel[6000][1] = x[n] gfloat pixel[6000][2] = y[n] this 2 arrays contains the x/y values for 6000 rectangles drawn on a pixmap. Now my problem ... with button_press_event i catch the current x/y positions from screen. What i want is to draw the given

Re: Cannot start GTK apps - gdk_visual_decompose_mask

2005-06-30 Thread David Saxton
On Thursday 30 Jun 2005 14:26, you wrote: You don't really give us enough information to guess here. (My initial reaction is: that can't happen!) But we'd appreciate a bug in bugzilla, with: - Your GTK+ version - Information about your operating system (what distro and version, if

Re: Are there anybody interested in porting GTK to embedded dev board

2005-06-30 Thread Carl B. Constantine
* lin Yang ([EMAIL PROTECTED]) wrote: Hello,everybody! I'm working on porting GTK to Intel dev board. My goal is to develop a system like smart phone or PDA. After investegating Qt and GTK, I choose GTK as my graphic user interface.However it's not easy.Firstly, I port X11 onto the dev

Compiling GTK Test

2005-06-30 Thread Adolfo Eloy
Hello people! I have tryed to follow the steps posted by another mails, but even after try all things I can't compile my first program in my Fedora Core 3. Now, I'm trying to compile using the statement below: gcc -o base teste_gtk.c `pkg-config --libs gtk+-2.0` but I receive the follow

Re: Are there anybody interested in porting GTK to embedded dev board

2005-06-30 Thread John Cupitt
On 6/28/05, lin Yang [EMAIL PROTECTED] wrote: I'm working on porting GTK to Intel dev board. My goal is to develop a system like smart phone or PDA. After investegating Qt and GTK, I choose GTK as my graphic directfb has some useful stuff on their documentation page:

Re: Cannot start GTK apps - gdk_visual_decompose_mask

2005-06-30 Thread Owen Taylor
On Thu, 2005-06-30 at 17:36 +0100, David Saxton wrote: On Thursday 30 Jun 2005 14:26, you wrote: You don't really give us enough information to guess here. (My initial reaction is: that can't happen!) But we'd appreciate a bug in bugzilla, with: - Your GTK+ version - Information

Re: Cannot start GTK apps - gdk_visual_decompose_mask

2005-06-30 Thread Owen Taylor
On Thu, 2005-06-30 at 11:58 +0100, David Saxton wrote: Hello, Recently (perhaps due to an upgrade to the system, or similar - I'm unsure when exactly it happened) gtk apps stopped working (the apps don't display any gui - just sit there taking up 100% cpu). This happens with all gtk

Re: pixel drawing

2005-06-30 Thread John Cupitt
On 6/28/05, Andreas Bentlage [EMAIL PROTECTED] wrote: i have the following 2 arrays. gfloat pixel[6000][1] = x[n] gfloat pixel[6000][2] = y[n] this 2 arrays contains the x/y values for 6000 rectangles drawn on a pixmap. Now my problem ... with button_press_event i catch the current x/y

Re: Drawing higher depth images

2005-06-30 Thread John Cupitt
On 6/30/05, David Necas (Yeti) [EMAIL PROTECTED] wrote: Is it possible to use Gdk drawing functions (gdk_draw_arc(), etc.) to draw images of higher depth than system and save them? My understanding is unfortunately no. X servers can only draw to the visuals they know about, and if a server

Re: Compiling GTK Test

2005-06-30 Thread Jeffrin Jose
Adolfo Eloy wrote: Hello people! I have tryed to follow the steps posted by another mails, but even after try all things I can't compile my first program in my Fedora Core 3. Now, I'm trying to compile using the statement below: gcc -o base teste_gtk.c `pkg-config --libs gtk+-2.0` but I

GLib 2.7.1 released

2005-06-30 Thread Matthias Clasen
GLib 2.7.1 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.7/ glib-2.7.1.tar.bz2 md5sum: f6a6f4acd56b98e9372e5326e2657c10 glib-2.7.1.tar.gz md5sum: 739c01270ca2395db62e76751fc6fc84 This is the second development release leading up to GLib-2.8. Notes: * This is

GTK installation

2005-06-30 Thread Ninad Pachpute
Hi i got the following error after doing ./configure while installing GTK 2.6 checking for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... (cached) yes checking for pkg-config... /usr/bin/pkg-config checking for glib-2.0 = 2.6.0

Re: GTK installation

2005-06-30 Thread David Necas (Yeti)
On Fri, Jul 01, 2005 at 10:39:37AM +0530, Ninad Pachpute wrote: configure: error: Library requirements (glib-2.0 = 2.6.0atk = 1.0.1pango = 1.7.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find

My first (official) project....

2005-06-30 Thread Dirk van der Walt
Hi list, For those who might be interested, here it is: http://forgeftp.novell.com//exam/homepage/index.html http://forge.novell.com/modules/xfmod/project/?exam Regards ___ gtk-perl-list mailing list gtk-perl-list@gnome.org

win32 and glib, socket data inaccessible

2005-06-30 Thread Marc Lehmann
[this is a repost, my original mail was held for moderation, but it seems the list isn't actively being moderated at the moment] Hi! I am trying to port a gtk2-perl program to windows (in theory an easy task). However, it's using sockets, and the only way to use them in a nonblocking way (under

Gnome2::About

2005-06-30 Thread The Saltydog
Is there any way to make a Gnome2::About dialog transient to main window? I have tried set_transient_for($window) but it introduces some oddity.. ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Modal dialog not modal under CDE -/

2005-06-30 Thread Vincent LADEUIL
Hi list, I develop an application running under Solaris 2.8 and 2.10. I have a Solaris machine without a screen so my tests are done from a linux powered PC with KDE as the desktop manager. I do the testing on another site with Solaris machines using either CDE or KDE as window managers.

Re: Gnome2::About

2005-06-30 Thread muppet
The Saltydog said: Is there any way to make a Gnome2::About dialog transient to main window? I have tried set_transient_for($window) but it introduces some oddity.. Could you be more specific? What is the oddity? Possibly post a small example? -- muppet scott at asofyet dot org

Re: win32 and glib, socket data inaccessible

2005-06-30 Thread muppet
Marc Lehmann said: I am trying to port a gtk2-perl program to windows (in theory an easy task). However, it's using sockets, and the only way to use them in a nonblocking way (under Gtk2) seems to be to use glib watchers. Now, the problem is that, when my callback gets called, glib has

Re: Non-editable textview paste

2005-06-30 Thread muppet
Thomas Christensen said: I was wondering if anybody could give me a pointer to how to catch a paste (non-clipboard primarily), in a textview. I'm guessing that you want to catch a paste and redirect it to some other destination, which will eventually modify the textbuffer on its own. But the

Re: Gnome2::About

2005-06-30 Thread The Saltydog
On 6/30/05, The Saltydog [EMAIL PROTECTED] wrote: I am using Gtk2 v.2.6.4, but I don't have Gtk2::AboutDialog... I have read that Gnome2::About is becoming obsolete, but I have no substitute and I'm too lazy to write a new one just to use it once..:-) maybe it is due to perl-gtk2 v. 1.061??

Re: win32 and glib, socket data inaccessible

2005-06-30 Thread Torsten Schoenfeld
On Thu, 2005-06-30 at 04:00 +0200, Marc Lehmann wrote: [this is a repost, my original mail was held for moderation, but it seems the list isn't actively being moderated at the moment] It is. I just don't check the queued mails every day. When I wanted to do it the last time, the gnome.org

Timers

2005-06-30 Thread Juan José 'Peco' San Martín
Hello all. I'm using the timers: my $pointer-{timer}=Glib::Timeout-add(1000,\progress_timeout,$label); All seems to be ok. Each time the progress_timeout function is called, I'm able to change the value of $label with $pointer-set_text(123); My issue is that I would like to attach the same

Re: Timers

2005-06-30 Thread muppet
On Jun 30, 2005, at 12:37 PM, Juan José 'Peco' San Martín wrote: Hello all. I'm using the timers: my $pointer-{timer}=Glib::Timeout-add(1000,\progress_timeout, $label); All seems to be ok. Each time the progress_timeout function is called, I'm able to change the value of $label with

embedded perl/Gtk dialog

2005-06-30 Thread Carl Nygard
I've got an app that uses Perl as the embedded scripting environment. I'm trying to write some scripts that pop up a dialog to query the user for some simple things, and I'm running into problems. I have a wrapper class which manages widget creation via glade and I'm using Gtk2::GladeXML to load

Mixed pixbuf and text

2005-06-30 Thread Beast
Hello, Is there any way to add text next into pixbuf in SimpleList? Or if it's not possible any way to merge the column header so 2 column (pixbuf and text) has only 1 column header? -- --beast ___ gtk-perl-list mailing list

Re: Non-editable textview paste

2005-06-30 Thread muppet
On Jun 30, 2005, at 7:57 PM, Thomas Christensen wrote: Ok, I can react to the button 2 signal, but is there a more generic paste signal? From what i can tell, just paste-clipboard and button-press-event. Also, I have done '#perldoc Gtk2::Selection' and googled a little, but I can't quite

Re: Mixed pixbuf and text

2005-06-30 Thread muppet
On Jul 1, 2005, at 12:27 AM, Beast wrote: Is there any way to add text next into pixbuf in SimpleList? Or if it's not possible any way to merge the column header so 2 column (pixbuf and text) has only 1 column header? Can't do it with SimpleList, but you can with TreeView. Just pack two

Re: win32 and glib, socket data inaccessible

2005-06-30 Thread Marc Lehmann
On Thu, Jun 30, 2005 at 10:17:15AM -0400, muppet [EMAIL PROTECTED] wrote: I am trying to port a gtk2-perl program to windows (in theory an easy task). However, it's using sockets, and the only way to use them in a nonblocking way (under Gtk2) seems to be to use glib watchers. Now, the

Re: win32 and glib, socket data inaccessible

2005-06-30 Thread Marc Lehmann
On Fri, Jul 01, 2005 at 07:34:56AM +0200, Marc Lehmann [EMAIL PROTECTED] wrote: Digging some more, it seems one can distinguish between the two by: io = GvIO(gv); if (io IoTYPE(io) == IoTYPE_SOCKET) { Actually, why distinguish them? It's not valid to call add_watch with a