Re: TreeView Signal Problem
On Tue, 2005-03-22 at 17:46 -0700, John Taber wrote: Okay, it turns out that a double-click triggers the signal in my TreeView - yet my other buttons TreeView rows are not buttons. only require a single click. There needs to be a distinction between selection and activation. Maybe it is a multiple selection setting acting in default. John -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com www.openismus.com ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list
Re: crosscompile Linux-Windows
On Wed, 2005-03-23 at 15:42 -0300, Leandro Fanzone wrote: I'm afraid you can't create Windows binaries from within Linux. You must have a Windows environment working... it's not that difficult, after all. No, I think it's possible, and I'm sure there's something in the mailing list archive about it. -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com www.openismus.com ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list
Re: crosscompile Linux-Windows
On Wed, 2005-03-23 at 19:57 +0100, Murray Cumming wrote: On Wed, 2005-03-23 at 15:42 -0300, Leandro Fanzone wrote: I'm afraid you can't create Windows binaries from within Linux. You must have a Windows environment working... it's not that difficult, after all. No, I think it's possible, and I'm sure there's something in the mailing list archive about it. At one time we used the following to create a Win32 K-3D build for Win32; it worked, but overall was more of a novelty than anything usable in production. As I recall, there were many unexplained crashes, and debugging was a problem. http://rooster.stanford.edu/~ben/linux/cross.php http://rooster.stanford.edu/~ben/linux/crosshowto.php Cheers, Tim ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list
Re: crosscompile Linux-Windows
Murray Cumming wrote: On Wed, 2005-03-23 at 15:42 -0300, Leandro Fanzone wrote: I'm afraid you can't create Windows binaries from within Linux. You must have a Windows environment working... it's not that difficult, after all. No, I think it's possible, and I'm sure there's something in the mailing list archive about it. Yes, it is definitively possible. Actually, the GTK+ binaries, provided by the gladewin32 project, are cross-compiled. On Debian (or ubuntu), you might want to install the mingw32, mingw32-binutils and mingw32-runtime packages, then build your application with mingw32-g++, and link (with mingw32-ld !) against the import libraries that are part of the gtkmm win32 installer. You might also want to talk to Ivan Wong, the gladewin32 maintainer, for details. Cedric ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list
Re: crosscompile Linux-Windows
Curiouser and curiouser... thanks for the info! Cedric Gustin wrote: Murray Cumming wrote: On Wed, 2005-03-23 at 15:42 -0300, Leandro Fanzone wrote: I'm afraid you can't create Windows binaries from within Linux. You must have a Windows environment working... it's not that difficult, after all. No, I think it's possible, and I'm sure there's something in the mailing list archive about it. Yes, it is definitively possible. Actually, the GTK+ binaries, provided by the gladewin32 project, are cross-compiled. On Debian (or ubuntu), you might want to install the mingw32, mingw32-binutils and mingw32-runtime packages, then build your application with mingw32-g++, and link (with mingw32-ld !) against the import libraries that are part of the gtkmm win32 installer. You might also want to talk to Ivan Wong, the gladewin32 maintainer, for details. Cedric ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list
no g_assert_warning after upgrading to 2.6.1-1
After upgrading gtkmm to 2.6.1-1 on windows xp using Cedric Gustin's installer i get the following warning when running my program: The procedure entry point g_assert_warning could not be located in the dynamic link library libglib-2.0.0.dll Execution stops after that The dll is present and in the path. I then tried to run the gtkmm demo and got the same warning. Uninstalling gtk+ and gtkmm and reinstalling did not help. What could be wrong? -- Marco Scholten ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list
Re: no g_assert_warning after upgrading to 2.6.1-1
Same dll (the old one) in some other place, closer in the path? A need to full recompile? Different mingw compiler than the one Cedric used? Marco wrote: After upgrading gtkmm to 2.6.1-1 on windows xp using Cedric Gustin's installer i get the following warning when running my program: The procedure entry point g_assert_warning could not be located in the dynamic link library libglib-2.0.0.dll Execution stops after that The dll is present and in the path. I then tried to run the gtkmm demo and got the same warning. Uninstalling gtk+ and gtkmm and reinstalling did not help. What could be wrong? -- Marco Scholten ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list
Re: no g_assert_warning after upgrading to 2.6.1-1
On Wed, 23 Mar 2005 22:49:15 +0100, Marco [EMAIL PROTECTED] wrote: After upgrading gtkmm to 2.6.1-1 on windows xp using Cedric Gustin's installer i get the following warning when running my program: The procedure entry point g_assert_warning could not be located in the dynamic link library libglib-2.0.0.dll Execution stops after that The dll is present and in the path. I then tried to run the gtkmm demo and got the same warning. Uninstalling gtk+ and gtkmm and reinstalling did not help. What could be wrong? -- Marco Scholten ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list Never mind, i found an old libglib dll in \windows\system32\ removing that solved it. ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list
Re: no g_assert_warning after upgrading to 2.6.1-1
Same dll (the old one) in some other place, closer in the path? That was the the problem. I now get a segfault later in the program (recompiled all with g++ 3.4.2) but i will first clean up a little more and maybe that will fix that to. thanx for helping. ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list
Where to place init code (in which event handler) needing custom widget's window mapped?
Hello, I need to execute various initialization code in a derived widget; That code need to be executed only one time but it also need that widget's window is mapped since i need to perform few operation (xine related stuff) on that window (GDK object). Could someone please tell me where is the best place to put that code? Is there any available documentation that could help me to have a better idea of when and why events are fired in a typical widget's life (for example: relation between widget's state and events ) ? It's rather difficult to find out in which circumstances events are fired for a beginner; Studying xlib (and gtk) helped me but it remains obscure to me. Thx a lot for your help. Have a nice day (hum... It's night for me) :-) DAve ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list
Re: Where to place init code (in which event handler) needing custom widget's window mapped?
Marco wrote: On Wed, 23 Mar 2005 23:40:05 +0100, David Sillou [EMAIL PROTECTED] wrote: Hello, I need to execute various initialization code in a derived widget; That code need to be executed only one time but it also need that widget's window is mapped since i need to perform few operation (xine related stuff) on that window (GDK object). Could someone please tell me where is the best place to put that code? try on_realize() in that function call on_realize() on the parent first and then do your initialization. Is there any available documentation that could help me to have a better idea of when and why events are fired in a typical widget's life (for example: relation between widget's state and events ) ? It's rather difficult to find out in which circumstances events are fired for a beginner; Studying xlib (and gtk) helped me but it remains obscure to me. http://developer.gnome.org/doc/GGAD/z57.html -- Marco Thanks for the link. Concerning on_realize, it's the way i tried to achieve the work (including calling base class method before any other thing) but the window I create for xine to render to: m_window = Gdk::Window::create(get_window(), attributes,GDK_WA_X|GDK_WA_Y); isn't mapped yet. I verified it by calling: std::cout m_window-is_viewable ()std::endl; and i get a bad drawable or bad window error if I execute xine init functions (passing the created window as arg). DAve ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list
Re: Displaying simple HTML in gtkmm app
This is a feature I really miss from other toolkits but gtkhtml looks like it will do the job. Are there any examples how to instantiate and use a C gtk widget in gtkmm code ? thks I have no experience with this myself, but you can get to the underlying C GTK+ widgets via the gobj() member function. So if there is no wrapper for gtkhtml, you simple use the C API and call gobj() on your gtkmm container when you need to put the HTML widget inside it. ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list
Re: Where to place init code (in which event handler) needing custom widget's window mapped?
David Sillou wrote: Marco wrote: On Wed, 23 Mar 2005 23:40:05 +0100, David Sillou [EMAIL PROTECTED] wrote: Hello, I need to execute various initialization code in a derived widget; That code need to be executed only one time but it also need that widget's window is mapped since i need to perform few operation (xine related stuff) on that window (GDK object). Could someone please tell me where is the best place to put that code? try on_realize() in that function call on_realize() on the parent first and then do your initialization. Is there any available documentation that could help me to have a better idea of when and why events are fired in a typical widget's life (for example: relation between widget's state and events ) ? It's rather difficult to find out in which circumstances events are fired for a beginner; Studying xlib (and gtk) helped me but it remains obscure to me. http://developer.gnome.org/doc/GGAD/z57.html -- Marco Thanks for the link. Concerning on_realize, it's the way i tried to achieve the work (including calling base class method before any other thing) but the window I create for xine to render to: m_window = Gdk::Window::create(get_window(), attributes,GDK_WA_X|GDK_WA_Y); isn't mapped yet. I verified it by calling: std::cout m_window-is_viewable ()std::endl; and i get a bad drawable or bad window error if I execute xine init functions (passing the created window as arg). DAve ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list Hi, After verification, it seems that I get the same error even if my custom widget's window is mapped before passing it to xine' functions... --The error was 'BadDrawable (invalid Pixmap or Window parameter)'. (Details: serial 12 error_code 9 request_code 55 minor_code 0) When i call the exactly same init code in a button_cliked event handler , all works fine. I don't understand where the problem is now... DAve. ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list