Re: Animating widgets
El 15/01/11 08:01, Andy Tai escribió: A related question, one can assume that animation, when possible, is to be done with gtk+ on top of Clutter. Then how can gtk+ programs be written to support animation and to properly degrade on platforms where the animation is not supported? For example, with gtk+3, can it support, on showing a window, the window sliding in from the left when using Clutter, but the window simply opens when running on top of the plain X11, all with the same application logic? Also, is gtk+ 3 "aware" of the animation events (such as callbacks when the animation play is complete)? Or such events are only handled at the Clutter level, and gtk+ widgets know nothing of them? 2011/1/14 Erick Pérez Castellanos Hi: I want to know if there's anyway i can animate widgets with Gtk. For instance, I have a GtkBin with a GtkEntry container and I want to changed for a GtkTextView on certain event, and I want the switch to be animated, slide in/out, fade in/out, things like that. As far as I got with Gtk2 that's not possible so far, Am I right ? Would this be possible with Gtk3 ? If it is, can someone put in the right direction ? Thxs ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list Hi, I'll explain my experience! Gtk2 does not support animations, it's a fact, so you can only make your own hacks to Gtk. Recently, I've done a news panel that consists in a slide in/slide out window that contains a webkit's webview inside for showing news to a user, and i did a slide in/slide out animation using some workarounds :S Why I took this solution? I took that solution because python-clutter-gtk's Container isn't implemented yet and I needed to add a webkit's webview object to. So, Erick, if you can know more details about my 'dirty' implementation I can pass you some tips and/or chunks of code. Andy, I don't know in Gtk3, but using clutter with Gtk2, animations' events are handled by clutter level, so i expect the same with Gtk3, but correct me if i'm wrong. Anyway, in my case, I know the basics of clutter, but I don't know how to do that an application made with Gtk/Clutter avoid animations if animation is not supported, if any listener in the list could put us in the right direction will be helpful! Regards! -- Javier Hernández ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Example of GtkSourceCompletion
Hi Is there an example implementation of GtkSourceCompletion out there somewhere in internet land? I can't find one. Craig Bakalian ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
gnome-canvas-marshal.c/.h
I've been trying to find a mailing list for libgnomecanvas but couldn't find one - so maybe somebody here might be able to help I've successfully built GTK+ for Windows using the supplied VC++ projects. However, certain projects (those that need gnomecanvas) won't build until I've built libgnomecanvas-2. I downloaded the source which I'm currently trying to build. It's a bit tricky because there are no VC++ projects but I'm managing okay. All the modules build fine except for gnome-canvas.c which #includes gnome-canvas-marshal.h and gnome-canvas-marshal.c. Neither of those files was supplied with the source code. I took a look on the internet but all I found were a lot of complaints from frustrated programmers who've been trying to find them before me. So I figured they must be auto-generated files. Armed with my (now rusting) Linux box I installed the source code for libgnomecanvas-2 and tried to build it using configure and make. But it wouldn't build because libgail couldn't be found. So off I went to try and find that. I found quite a few projects called libgail but figured that libgail-gnome was probably the one I wanted. 10 mins later I'd installed the source for libgail-gnome but when I tried to built it, I got a rather unhelpful build error telling me that my "configuration is wrong". Can anyone suggest a way of obtaining the two missing files without all this rigmarole? Thanks. John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: gnome-canvas-marshal.c/.h
On 17 Jan 2011, at 16:55, John Emmas wrote: > > I found quite a few projects called libgail but figured that libgail-gnome > was probably the one I wanted. 10 mins later I'd installed the source for > libgail-gnome but when I tried to built it, I got a rather unhelpful build > error telling me that my "configuration is wrong". > > Can anyone suggest a way of obtaining the two missing files without all this > rigmarole? Thanks. > I managed to track down the missing files and libgnomecanvas is now compiling just fine. I will need to build libgail though. Can anyone confirm if libgail-gnome is indeed the version I should be using in conjunction with libgnomecanvas? John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: gnome-canvas-marshal.c/.h
> I managed to track down the missing files and libgnomecanvas is now compiling > just fine. I will need to build libgail though. Isn't gail part of GTK+ nowadays? At least, in GTK+ a libgailutil is built, and a gail.pc and include/gail-1.0 installed. (Yes, it might be that the VS project files don't bother building the gailutil library and "installing" the gail headers, because typical GTK+ clients don't use it.) --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: gnome-canvas-marshal.c/.h
On 17 Jan 2011, at 19:07, Tor Lillqvist wrote: > > Isn't gail part of GTK+ nowadays? At least, in GTK+ a libgailutil is > built, and a gail.pc and include/gail-1.0 installed. > > (Yes, it might be that the VS project files don't bother building the > gailutil library and "installing" the gail headers, because typical > GTK+ clients don't use it.) > For a minute there I thought I might have already built libgail without realising it..! But you're right Tor. All the source files are there but no corresponding VS project. Having said that, I'm getting quite good now at constructing the occasional missing projects so I'll have a go at it tomorrow. Thanks. John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Application path
The only way to get this on linux is to read symlink /proc/self/exe (readlink()) On Windows, you can use GetModuleName(NULL, xx, yy). Don't know if glib has anything for this. On 01/12/2011 02:13 PM, John Emmas wrote: Browsing through glib/gutils.c this morning, I noticed a function called g_get_application_name() which will return the application's name (e.g. "my_app" on Linux, or "my_app.exe" on Windows). Is there any similar function that would tell me the full path to the application - e.g. "/usr/bin/my_app/my_app" under Linux, or "C:\Program Files\my_app\my_app.exe" under Windows? John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Transparent Floating GtkEntry
Transparent entry - see gtk-demo, offscreen widgets. Entry on top - well, you could implement custom GtkContainer, but don't know if events will work right ... On 01/07/2011 10:46 PM, Cinolt wrote: Hello, I want develop a game that can take multilingual input, including CJK characters. Is it possible to have a GtkDrawingArea fill the entire window and have a GtkEntry floating "on top" of it? Also is it possible to make the background and border of the GtkEntry transparent? Thanks for any help. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Application path
On Wed, 2011-01-12 at 13:13 +, John Emmas wrote: > Is there any [...] function that would tell me the full path to the > application - e.g. "/usr/bin/my_app/my_app" under Linux, or "C: > \Program Files\my_app\my_app.exe" under Windows? Not in general - it's best to decide you don't need this :-) Some programs behave differently based on their name, but in C you can use argv[0] to get at that, bearing in mind it might not actually correspond to any filename at all. If you do get the original file (whether via /proc or argv[0] or ps or some other method), remember that on some systems it might have been renamed, moved, or even deleted, after the program started, and also that the user might have made a link, symbolic link, shortcut or whatever... Liam -- Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books: http://fromoldbooks.org/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Application path
While it's not really a solve-all, you can use g_win32_get_package_installation_directory_of_module(NULL) on Windows to get the application's install path (Which can sometimes be not fully what you need if you have a path like: "C:\Program Files\my_app\bin", which would give "C:\Program Files\my_app" There's also g_find_program_in_path(), but, as far as I know, there's no functionality yet implemented in GLib to grab the full path that was called. On Wed, 12 Jan 2011 13:13:18 + John Emmas wrote: > Browsing through glib/gutils.c this morning, I noticed a function > called g_get_application_name() which will return the application's > name (e.g. "my_app" on Linux, or "my_app.exe" on Windows). Is there > any similar function that would tell me the full path to the > application - e.g. "/usr/bin/my_app/my_app" under Linux, or "C: > \Program Files\my_app\my_app.exe" under Windows? > > John > ___ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- Nader Morshed ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
unsubscribe
--- Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) is intended only for the use of the intended recipient and may be confidential and/or privileged of Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying is strictly prohibited, and may be unlawful.If you have received this communication in error,please immediately notify the sender by return e-mail, and delete the original message and all copies from your system. Thank you. --- ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Application path
Thanks guys. In fact, I only need this for the purpose of calculating a path that's relative to the location of the installed program. It's of less importance on Linux because apps tend to be installed using the same path on everyone's system so generally, one can make an intelligent guess. However, under Windows that's not necessarily the case. I eventually solved it using g_win32_get_package_installation_directory_of_module(NULL) - but it didn't occur to me to check what happens if the app got started from a shortcut. I'll check that later today. I'm not entirely sure what to do under OS-X though. From my limited knowledge of Macs I believe the situation is similar to Linux - i.e. the user gets no choice over where to install an app, so the path will typically be identical for most users. Is that a reasonable assumption? John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Application path
On Tue, Jan 18, 2011 at 05:18:17AM +, John Emmas wrote: > In fact, I only need this for the purpose of calculating > a path that's relative to the location of the installed program. It's > of less importance on Linux because apps tend to be installed using > the same path on everyone's system so generally, one can make an > intelligent guess. I don't think so. If people compile programs themselves they install them to all kinds of places in their home. The situation would be better described that, on Linux, programs are not normally expected to be relocatable, the installation path is known at compile time and can be hardcoded. Yeti ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list