Re: win32: get notified when gtk+ app gets killed?
Brian J. Tarricone: Er, my mistake... it looks like they aren't documented, but GDK_WINDOW_HWND(), which is just a wrapper around gdk_win32_drawable_get_handle(), may indeed be public. True, I had seen it, but since it indeed did not show up on library.gnome.org as you mentioned... Odd that the win32 stuff doesn't show up in the docs on library.gnome.org, though. ... I though it wasn't existing anymore. Thanks for the hints! I'll try to catch the MS windows messages this way. Felix ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
win32: get notified when gtk+ app gets killed?
Hi all, on win32, in some situations (like logoff, shutdown) my gtk+ app gets killed, so I do not receive the standard gtk+ window close/destroy signals and, in turn, cannot do clean up tasks. For a console (!) app I've found SetConsoleCtrlHandler() which works surprisingly well (one can set up a callback for all interesting situations). However, for non-console apps (with -mwindows) this does not work. I tried MS Window's signal() function, but it knows SIGTERM only, not SIGKILL. No way here. For non-console apps, MSDN says I need to set up a WindowProc callback to catch WM_QUERYENDSESSION messages. But to register it, it seems I need hWnd from the main window which is somewhere hidden by gtk+... So, is there a way to get notified somehow? Thanks for any hint! Felix ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
gtkpaned: children sometimes resized
Hi, I use a GtkVPaned and add two expanding widgets as children (scrollable windows). When the GtkVPaned is initially displayed, each child expand to what is needed. This is o.k. When I initially touch the gutter of GtkVPaned by mouse, and after that add widgets to one of the children the other is *not* shrunk. This is what I need. However, this is not the case if the user never moves the gutter by mouse first. In this second case a kind of auto-shrinking/expanding of the two children takes place. How can I disable this auto-expanding? Note: I can not simply use gtk_paned_set_position() since the GtkVPaned must initially freely decide the position needed by the children. I've found the property position-set. Don't know if this is might by a solution. Any ideas? Thank You Felix ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: scrollbars for treeview
Kristian Rietveld: On Thu, Aug 28, 2008 at 9:12 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi, I've read that a treeview has the scolling ability built-in. Does that include an easy way to display scrollbars, too? Or is it necessary to create scrollbars and adjustments and connect all events separately? Simply create a GtkScrolledWindow and add the GtkTreeView to this container. Then scrolling will work out of the box. Sorry, I forgot to mention: I was trying this solution for a long time now -- but it is somehow buggy (try adding and removing lines and try setting the adjustments by code - at some point the widgets are not displayed correctly anymore). And, from the gtk doc this is explicitly not recommended for widgets with built-in ability of scrolling. Hm. Thanks. Felix ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
location of gdk-pixbuf.loaders
Hi, I am trying to pack a minimal set of files in one directory right enough to execute my app using gtk/win32. So, I tried to avoid the use of any of gtk's config files in etc/, lib/, share/, ... which can not be put into subdirectories though AFAIK. So, I simply deleted them which seems o.k. for gtk+ and works fine. Similar I replaced gtkrc by using gtk_rc_parse_string() directly from the code. However, I fail to do the same for the image loaders (libpixbufloader-xpm.dll in my case). First, I haven't found any other way to tell gtk+ which loaders to load but by using the in-file solution 'gdk-pixbuf.loaders'. With gtk_rc_parse_string() I can set pixmap_path=., however this does of course not tell what loaders to load. Second, I haven't found any way to tell gtk+ to search the file 'gdk-pixbuf.loaders' in my current directory. Instead, gtk+ wants it in ../etc/gtk-2.0/. Here some options that would solve the problem but which I can't use here: * Since my app shall run without an installer I can't set any env vars first like GDK_PIXBUF_MODULE_FILE. And I would not like to create a shell script/batch file to set the env var since that can be changed and has other unwanted effects. * Writing a small executable to set env vars and then launch the real app is possible but makes it e.g. hard to run the app using a debugger and such. Is there an easier solution to load the pixbuf image loaders? Thank You Felix ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Reading jpg data
Hi everybody, I need to read a jpg image out of a buffer, not a file; the caveman way to do this could be: write buffer to file, then use gdk_pixbuf_new_from_file. Is there a more elegant way to do this? I tried with pixbuf_loaders (with no success), but before spending further effort I'd like to have some hints from the list. BTW I'm developing on win32. Thansk, cheers Federico ___ Tiscali.Fax: ricevi gratis sulla tua email e invii a 12 cent per pagina senza scatto alla risposta http://vas.tiscali.it/fax// ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Querie for video
___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: thread support in Windows: problem
On 23:55 Thu 24 Jan , Tor Lillqvist wrote: Write wrapper functions for any gtk operation you'd like to execute from threads in a way that the thread calls a glib's idle function which does the real gtk work. An interesting approach. Did you use some automated technique to generate these wrappers, or just manual work? It is not automated in the sense of having implemented it into gtk directly. However, I've made a library which of course sets up an architecture with wrappers and callback tables which in turn makes it easier to integrate those gtk widgets I personally had no need for yet. How well does it work and how general is it? I believe it works well, I've coded an app with several windows, a tree like selection and some 50 complex user interfaces created and deleted on the fly by selecting items from the tree. This app starts algorithms in the background as threads. They all may change widgets simultaneously (like log window entries, displaying images or simply change counters etc.). And it is portable on win32 and linux. Do you think it would be generally useful for other people, or is it just for your own specific need? Hm, from what I read in the mailing lists there seems to be some need to push gtk a bit from the thread-awareness towards the thread-safety. Are you interested in making your stuff available for others (and maintain it in the future...)? I'd like to spend some spare time to offer my experience, and the code, too, but I've got to talk to my boss if that is o.k. And there would be the need to separate this library from my win32/linux thread wrapper and keying (handle) system. Do you think it would help to first simply create a draft of the concept as a pdf or so for download ? Are there already plans to make gtk thread-safe (or reasons not to do so) ? As I mentioned it was necessary to wrap even the widgets itself to access their values immediatedly rather than bothering gtk and wait for the return of idle functions. So, the library IS something like a layer on top of gtk rather than something to be easily implemented into gtk. Would it make sense to you to continue this way ? Felix ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Whether the application is active?
On 11:27 Fri 25 Jan , aniket ray wrote: I tried changing the value of isActive based on focus-in and focus-out events of each of the windows. But then, if I switch from one window of the app to another, the variable is becoming false for a period of time (albeit a small one). There might be knowledge inside the window manger or even gtk which windows belong together to one process, so, there might be a way to get from an active window to all others of the same app. However, I don't know how, either. I would simply follow the approach you took: When one window looses the focus it should check if one of the others get it. Simply wait let's say 0.1 secs. If another window of your's gets the focus you do nothing, if none get's it you can hide the tool windows. The user will not notice a delay of that time. Also, I'd like to make the correct window active if the application becomes active(any of the application window's become active) and similar stuff. The other way round: Have a flag to be set whenever the 0.1 secs are over without any new focus-in event. If a window gets the focus you could determine if one of your windows was active before. Not a clean solution but should do it. Felix ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: thread support in Windows: problem
On 11:37 Thu 24 Jan , Tor Lillqvist wrote: I am trying to run a simple(st) thread example in GTK with a windows-MinGW-Msys development environment Don't bother. You should not call GTK+ functions from multiple threads on Windows. It won't work. There are deep technical reasons for this, fixing it is in no way trivial. This has been mentioned several times over the years on this mailing list. I've tried to make gtk work with threads on win32 and linux for a long time now and I am finally proud to say, it is possible -- but, as Tor said, not trivial. Just some notes on how to make the first steps towards that: Write wrapper functions for any gtk operation you'd like to execute from threads in a way that the thread calls a glib's idle function which does the real gtk work. Additionally (!) you need to lock gtk/gdk access by the gds_threads_enter/leave functions -- since idle functions are not auto-locked by gtk (like signals are). When you get deeper into this topic you'll probably stuble accross the problem that idle functions are kind of a one way: you can launch an idle function e.g. to rename a label but what if you want to read out the current value of an entry widget? You want the result right when you ask, however the idle function comes back at some later point of time. The solution I took was not to wait for that idle function but create wrappers for the gtk widgets which keep the data and can be queried without asking gtk; this of course needs you to update the data whenever the user changes the real gtk widget. Good luck, it IS possible. Felix ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Whether the application is active?
On 19:12 Wed 23 Jan , aniket ray wrote: Is there a way to find out if the current application is the active application (has user-focus) or not? I have a gtk application with multiple windows and if any among the windows has focus then I want a variable (let's say boolean isActive) to be set as true. I tried changing the value of isActive based on focus-in and focus-out events of each of the windows. But then, if I switch from one window of the app to another, the variable is becoming false for a period of time (albeit a small one). I can't provide you with a solution. However the question of active windows is probably one of the window manager. And I can't really imagine the need of telling an app that one of its windows is currently active -- could you give some more information why you want this? There might be another solution to what you want. Felix ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
GtkFileChooser initial dir
Hi, could you point me to some useful documentation or suggest me something about: 1. storing and retrieving the initial opening/saving directory for a GtkFileChooser; in the past I relied on the windows registry, but I'd like to do something more GTK styled (a configuration file?) 2. retrieving the shortcuts names for places; I tried this way (and another that I don't recall) but it didn't work: dialog = gtk_file_chooser_dialog_new(title, parent, action, GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT, NULL); GSList* shortcut_folders = gtk_file_chooser_list_shortcut_folders (GTK_FILE_CHOOSER(dialog)); GSList* rover = shortcut_folders; while(rover) { gchar *temp = (gchar *) rover-data; // I'd like to strcmp with a known Place shortcut but // temp is NULL here g_free (temp); rover = rover-next; } 3. is it possible to change a volume shortcut label, or avoid its translation? For example Desktop is translated (in Italian, in my case) but many dummy users are lost if they see Scrivania instead of Desktop Thanks a lot Federico Tiscali Voce 8 Mega (Telefono+Adsl). Attiva entro il 22/11/07: chiami in tutta Italia e navighi SENZA LIMITI A SOLI 4,95€ AL MESE FINO AL 31/03/2008! Dal 1° aprile 2008 paghi 28,95 € al mese. http://abbonati.tiscali.it/telefono-adsl/prodotti/tc/voce8mega/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: event for window maximize
Hi, are you handling the resizing in the main window's configure- event handler? I have a similar situation but I'm using the widget's (a drawing area) configure-event handler and it seems to work (resize window, maximize, etc.) Cheers Federico Tiscali Voce 8 Mega (Telefono+Adsl). Attiva entro il 22/11/07: chiami in tutta Italia e navighi SENZA LIMITI A SOLI 4,95€ AL MESE FINO AL 31/03/2008! Dal 1° aprile 2008 paghi 28,95 € al mese. http://abbonati.tiscali.it/telefono-adsl/prodotti/tc/voce8mega/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Building and packaging for Windows
Eduardo M KALINOWSKI wrote: There is a set of GTK+ installer files, with development and runtime available at http://gladewin32.sourceforge.net/ Very Cool! It's going to be hard to keep my mind on my current Microshaft Winblows development deadline as I really want to play with this... Thanks Eduardo! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Help to create an custom control for calendar
hi, i need create an custom control similar to calendar of iCal. What can I use? An canvas ?? Ciao, Gerardo Di Iorio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Tool Side panels
Hi, I'm trying to add some side panels to an image manipulating application; these panels contain some buttons and they should be hidden when I no longer need them (no need for fancy sliding animation, though): the larger the working area the best. I temporarily implemented each panel with a frame holding the tool widgets (through many other boxes); then the frames are held by a 3 slots hbox, 2 for the panes and one for the drawingarea; when I want to hide a panel I just gtk_widget_hide() the frame. This approach is a bit sloppy in that I don't know when the window manager (BTW I'm developing a windows app) actually hides the widget, so that I can only get the new drawing area size in the expose-event handler. I don't like to have it done there, so I'm asking you: is there another way to implement side panes? Or, is there another way to show and hide them and have it done at a known time? Thanks Federico ADSL 4 MB FLAT La tua ADSL a € 19.95. GRATIS 2 mesi di canone e l'attivazione! Scopri come http://abbonati.tiscali.it/adsl/prodotti/dem/tc/4flat/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: 16 bits grayscale images
Another popular choice is to walk the edges of an RGB cube in a loop. So you have a red - magenta gradient, then magenta - blue, then blue - yellow etc. This makes for strong colour differences, but it's not obvious from looking at the image which parts are hot or cold. So I prefer heatmaps. Yes I believe using the hue component of the HSV is equivalent to walking the edge of the color cube. I use the following snipped to convert transform values from 0.0-180.0 to the the RGB equivalent (obviously you can scale appropriately to convert 8bpp images or as I do you can use this to translate to 24bit true color on the fly. -eh - snippet - /* hue ranges from 0.0 to 180.0 degrees */ void hsv2rgb( float hue, int *rgb ) { int p, sector; static const int sector_data[][3]= {{0,2,1}, {1,2,0}, {1,0,2}, {2,0,1}, {2,1,0}, {0,1,2}}; hue = max( 0.0f, hue ); hue = min( 180.0f, hue ); hue *= 0.0f; sector = (cvFloor(hue))%6; p = cvRound(255*(hue - sector)); p ^= sector 1 ? 255 : 0; rgb[sector_data[sector][0]] = 255; rgb[sector_data[sector][1]] = 0; rgb[sector_data[sector][2]] = p; } - /snippet - ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
How get actuell Fonts of widget
Hello how can I get the font of an widget what is teh pango or gtk or ??? API to get it. to use is as paramenter in pango_get_font_metrics call. Who can help me please mfg günther -- R=I+S Rapp Informatik Systeme GmbH Rosenbühlstr. 24 D-89182 Bernstadt Tel: +49 (0)7348-7755 Fax: +49 (0)7348-6086 E-MAIL mailto: [EMAIL PROTECTED] WEB www.rapp-informatik.de PS: Senden Sie mir bitte keine Anhänge in Microsoft (.DOC, .PPT) Format Bitte lesen Sie http://www.fsf.org/philosophy/no-word-attachmentsi.de.html Please don't send me any attachment in Microsoft (.DOC, .PPT) format please Read http://www.fsf.org/philosophy/no-word-attachments.html ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
How to compile and link GTK2 Programms tobe compatibe with XFree86 and Xorg
Hello I changed my developping system now the system openSuse uses Xorg the old system used XFree86 Installed gtk 2.8 or Building the exexutable now libraries from Xorg are included like libXfixes.so.3 org LivXinarema.so.1 or libglitz.so.1 the executeable does not run under systems using XFree86 because auf missing lib. Is there a compiler or linker switch to tell only to use compatible calls. In simple examples like Hello World the libXfixes.so.3 is not include this example runs under XFree86. For linking I have to set -lgtk-x11-2.0 without all gtk calls are refrenced as undefined symbols in linking. Or may be I have to build my own gtk,gdk,glib,cairo,pango,atk libs with special settings? I hope there will be a possibility to build gtk programms under newer Distibutions also runable under older Distributions. Installing firefox under the older Distributions makes no problems and i guess this is gtk applikation too. Who knows about. Thanks for help. mfg g.rapp -- R=I+S Rapp Informatik Systeme GmbH Rosenbühlstr. 24 D-89182 Bernstadt Tel: +49 (0)7348-7755 Fax: +49 (0)7348-6086 E-MAIL mailto: [EMAIL PROTECTED] WEB www.rapp-informatik.de PS: Senden Sie mir bitte keine Anhänge in Microsoft (.DOC, .PPT) Format Bitte lesen Sie http://www.fsf.org/philosophy/no-word-attachmentsi.de.html Please don't send me any attachment in Microsoft (.DOC, .PPT) format please Read http://www.fsf.org/philosophy/no-word-attachments.html ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Compiling GTK undefined references
Hello I have build new versions for glib , pango, cairo and set the LD_LIBRARY_PATH and PKG_CONFIG_PATH to these new Versions. all the new versions are installed at /opt/glib /opt/pango /opt/cairo Compiling gtk results in an error linking queryimodules.c ./.libs/libgtk-x11-2.0.so undefined references with a lot of symbols here only 2 as an example g_bookmark_file_get_title g-slice_alloc configure found no too old packages for other needed libs I what to test these new versions without overwriting the versions of SuSE 10.1 for these. Have I to build newer versions for other projects or is another PATH setting missing who knows? mfg g.rapp -- R=I+S Rapp Informatik Systeme GmbH Rosenbühlstr. 24 D-89182 Bernstadt Tel: +49 (0)7348-7755 Fax: +49 (0)7348-6086 E-MAIL mailto: [EMAIL PROTECTED] WEB www.rapp-informatik.de PS: Senden Sie mir bitte keine Anhänge in Microsoft (.DOC, .PPT) Format Bitte lesen Sie http://www.fsf.org/philosophy/no-word-attachmentsi.de.html Please don't send me any attachment in Microsoft (.DOC, .PPT) format please Read http://www.fsf.org/philosophy/no-word-attachments.html ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Compiling GTK, GLIB,PANGO ???
Sorry I don't know if this is the right mailing list. I want to install the newest versions of GDK ; GLIB PANGO etc. for testing purpose. I do not want to overwrite the existing libraries of my SuSE 10.1 installation to be sure not to damage the whole system I thought to do first I build glib with configure --prefix=/opt/glib this works fine than I tried to configure --prefix=/opt/gtk as an example now configure complains about the not up todate glib version because I know pkgconfig uses the PKG_CONFIG_PATH what can I do to force configure to test against the /opt/glib/lib/pkgconfig Path Suggestions to do wellcome mfg g.rapp -- R=I+S Rapp Informatik Systeme GmbH Rosenbühlstr. 24 D-89182 Bernstadt Tel: +49 (0)7348-7755 Fax: +49 (0)7348-6086 E-MAIL mailto: [EMAIL PROTECTED] WEB www.rapp-informatik.de PS: Senden Sie mir bitte keine Anhänge in Microsoft (.DOC, .PPT) Format Bitte lesen Sie http://www.fsf.org/philosophy/no-word-attachmentsi.de.html Please don't send me any attachment in Microsoft (.DOC, .PPT) format please Read http://www.fsf.org/philosophy/no-word-attachments.html ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: waveform display in gtk
How about gscope http://gscope.sourceforge.net/ I haven't used it but have been tempted to. -Eric Is there a GTK widget to display audio or signal waveforms? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
x server problem
hi all can any body tell me about this bug.. The Bug Description ::: The program 'gimp' received an X Window System error. This probably reflects a bug in the program. The error was 'BadMatch (invalid parameter attributes)'. (Details: serial 17618 error_code 8 request_code 59 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) XOrg 6.8.1, Composite disabled. Original Message: - From: [EMAIL PROTECTED] Date: Sun, 01 Apr 2007 12:00:19 -0400 To: gtk-app-devel-list@gnome.org Subject: gtk-app-devel-list Digest, Vol 36, Issue 1 Send gtk-app-devel-list mailing list submissions to gtk-app-devel-list@gnome.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of gtk-app-devel-list digest... Today's Topics: 1. Re: GtkWidget CList problem. (Gabriel Schulhof) 2. Re: Can A Drawable Canvas Receive Key Events? (Mike Melanson) 3. Native character isn't supported by gtk+. (Kun Niu) 4. Re: Native character isn't supported by gtk+. (Samuel Cormier-Iijima) 5. Re: Problem about create gtk program on Windows (Tor Lillqvist) 6. Re: Native character isn't supported by gtk+. (Kun Niu) 7. Re: Native character isn't supported by gtk+. (Gian Mario Tagliaretti) 8. Re: Native character isn't supported by gtk+. (David Ne?as (Yeti)) -- Message: 1 Date: Sat, 31 Mar 2007 21:05:13 +0300 From: Gabriel Schulhof [EMAIL PROTECTED] Subject: Re: GtkWidget CList problem. To: Anthony Lamantia [EMAIL PROTECTED] Cc: gtk-app-devel-list@gnome.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain On Sat, 2007-03-31 at 05:16 -0500, Anthony Lamantia wrote: I am having a small problem with the CList widget GtkCList is deprecated. Use a GtkTreeView. -- Message: 2 Date: Sat, 31 Mar 2007 11:08:54 -0700 From: Mike Melanson [EMAIL PROTECTED] Subject: Re: Can A Drawable Canvas Receive Key Events? To: gtk-app-devel-list@gnome.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Tristan Van Berkom wrote: Did you add the events to the event mask before the widget was realized ? Does the widget in question have keyboard focus at the time you want to recieve the keyboard events ? Is the widget in question marked to be focus-capable ? (i.e. the can-focus bit/property) This last item did the trick. I set the can-focus property and the GtkDrawingArea now registers key presses and releases. Thanks. Now that it works in the contrived standalone app, I need to figure out how to get key events in an XEmbed'ed application. I apply the same can-focus property change but I'm afraid I might be fighting with the hosting app for the key events. -- -Mike Melanson -- Message: 3 Date: Sun, 1 Apr 2007 13:13:40 +0800 From: Kun Niu [EMAIL PROTECTED] Subject: Native character isn't supported by gtk+. To: gtk-app-devel-list@gnome.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=UTF-8; format=flowed Dear all, I'm trying to use glade for my desktop application designer. I set the text on the button and the window title as my own language. I generated the code and compiled with visual studio 2003. The window title looks nice.:) But the text on the button appears to be two squares. Both of the strings are the same. Can anyone explain why? Any help would be appreciated and thanks in advance. Sincerely, Kun -- Message: 4 Date: Sun, 1 Apr 2007 01:20:13 -0400 From: Samuel Cormier-Iijima [EMAIL PROTECTED] Subject: Re: Native character isn't supported by gtk+. To: Kun Niu [EMAIL PROTECTED] Cc: gtk-app-devel-list@gnome.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed I remember I had this problem on Windows a while back. Make sure that pango is installed correctly; also, try running the application in a console window to see if it gives any error messages... Samuel On 4/1/07, Kun Niu [EMAIL PROTECTED] wrote: Dear all, I'm trying to use glade for my desktop application designer. I set the text on the button and the window title as my own language. I generated the code and compiled with visual studio 2003. The window title looks nice.:) But the text on the button appears to be two
X window problem wityh GtK
can any body tell me about this problem... The program 'gimp' received an X Window System error. This probably reflects a bug in the program. The error was 'BadMatch (invalid parameter attributes)'. (Details: serial 17618 error_code 8 request_code 59 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) XOrg 6.8.1, Composite disabled. mail2web.com Enhanced email for the mobile individual based on Microsoft® Exchange - http://link.mail2web.com/Personal/EnhancedEmail ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: invisible text when viewing with Microsoft Remote Desktop
No, the problem apears only when you access the machine using Remote Desktop. I could not replicate it by accessing the machine directly. Does anyone had experience with viewing GTK applications with MS Remote Desktop? Oded. oded writes: Any help will be appreciated, Try not using the ms-windows theme on the remote machine? (Sure, even in case that helps, it's still a bug.) --tml mail2web - Check your email from the web at http://mail2web.com/ . ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
RE: invisible text when viewing with Microsoft Remote Desktop
Problem solved. It turns out that MS Remote Desktop views the remote computer using 256 colors by default, and GTK does not work well with 256. Because on some of our client machine 256 colors is requiered I changed the colors of my application so it will look OK using 256, by changing the text color to white, and the background colors to DarkSlateGray. Thanks, Oded. oded writes: Any help will be appreciated, Try not using the ms-windows theme on the remote machine? (Sure, even in case that helps, it's still a bug.) --tml mail2web - Check your email from the web at http://mail2web.com/ . ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
RE: invisible text when viewing with Microsoft Remote Desktop
Problem solved. It turns out that MS Remote Desktop views the remote computer using 256 colors by default, and GTK does not work well with 256. Because on some of our client machine 256 colors is requiered I changed the colors of my application so it will look OK using 256, by changing the text color to white, and the background colors to DarkSlateGray. Thanks, Oded. oded writes: Any help will be appreciated, Try not using the ms-windows theme on the remote machine? (Sure, even in case that helps, it's still a bug.) --tml mail2web - Check your email from the web at http://mail2web.com/ . ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
invisible text when viewing with Microsoft Remote Desktop
Hello, I'm using gtkmm with gtk-2.0 on Windows XP. I have an application with a GtkTextView and it works fine on my computer, There is a problem when I view the application on a remote machine using the Microsoft Remote Desktop terminal server. The remote machine also runs Windows XP. The problem is that the text on the GtkTextView is invisible unless I select it. When I select the text, it is visible inside the selection, as if the text color was white ( as the background color), but I did set the text color to black. Any help will be appreciated, Oded. mail2web - Check your email from the web at http://mail2web.com/ . ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Passing data from a data collection window back to a main
This is my global variable version: #include gtk/gtk.h #include callbacks.h #include interface.h #include support.h GtkWidget *window2, *window1, *label1, *entry1; void on_button1_clicked (GtkButton *button, gpointer user_data) { window1 = lookup_widget(button,window1); window2=create_window2(); gtk_widget_show(window2); gtk_grab_add(window2); } void on_button2_clicked (GtkButton *button, gpointer user_data) { label1 = lookup_widget(window1,label1); entry1 = lookup_widget(window2,entry1); gtk_label_set_text(label1,gtk_entry_get_text(entry1)); gtk_grab_remove(window1); gtk_widget_destroy(window2); } Thanks, Kim [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I am about to start a new app, and would like to improve my programming style. I have been using global variables to pass data from popup windows back to a main window. I have seen discussion about using g_object_set_data, but have not progressed to being able to use it confidently. Does anyone know of a simple example using g_object_set_data. The sort of thing I am thinking about is a main window with a label and button, that pops up a child window with an entry and a button. Clicking the child windows button returns the string in the entry back to the main windows label. This sort of example would be very useful in the tutorial. Thanks, Kim ___ 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
Passing data from a data collection window back to a main
Hi, I am about to start a new app, and would like to improve my programming style. I have been using global variables to pass data from popup windows back to a main window. I have seen discussion about using g_object_set_data, but have not progressed to being able to use it confidently. Does anyone know of a simple example using g_object_set_data. The sort of thing I am thinking about is a main window with a label and button, that pops up a child window with an entry and a button. Clicking the child windows button returns the string in the entry back to the main windows label. This sort of example would be very useful in the tutorial. Thanks, Kim ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
List of new api calls for deprecated funktions
Hello I started porting GTK 1.2 applications to GTK 2.x. Beside the porting guide is there a list with the new api functions with examples of the depreceated functions. Can I use the old api's? In what GTK 2.??? or 3.?? release in future will this api's be not longer supported? Thanks günther -- R=I+S Rapp Informatik Systeme GmbH Rosenbühlstr. 24 D-89182 Bernstadt Tel: +49 (0)7348-7755 Fax: +49 (0)7348-6086 E-MAIL mailto: [EMAIL PROTECTED] WEB www.rapp-informatik.de PS: Senden Sie mir bitte keine Anhänge in Microsoft (.DOC, .PPT) Format Bitte lesen Sie http://www.fsf.org/philosophy/no-word-attachmentsi.de.html Please don't send me any attachment in Microsoft (.DOC, .PPT) format please Read http://www.fsf.org/philosophy/no-word-attachments.html ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
height of treeview head/title
hello, I want to know how to get the height of a treeview heading labels. I want to have a drawing beside a treeview and line things up with rows in the treeview. Any ideas? Thanks, Kim ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
using GTK in Eclipse
I need to include an extrenal Gnome Application (P.e.: Gnome Calculator) inside an Eclipse Widget. I try to do this in windowsXp platfrom and it is possibile by calling win32API and change the windows parent handle. the following is a parte of code if(CreateProcess(0, szExe, 0, 0, FALSE, 0, 0, 0, si, pi)) { WaitForInputIdle(pi.hProcess,5000); EnumThreadWindows(pi.dwThreadId,enumMain,NULL); SetParent(mewhwnd,hWnd); SetWindowLong(mewhwnd, GWL_STYLE, WS_VISIBLE); GetWindowRect(hWnd,lpRect); MoveWindow(mewhwnd, 0, 0, rect.right - rect.left, ... ... Mi idea is to use the GTK library to do the same. Is it possible? Is it possible to include a generic Gnome window inside a pane using GTK framework included in Eclipse? Many thanks to all ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Combo question
Hi, I'm pretty frustrated because I can't solve this by myself. Can you help me? I have a file that looks like 1 Adam 1 Bert 1 Daniel 2 Marc 2 Sam .. .. 9 Zack and so on. That's an int number, a blank and a name. My code looks like this snip ... GList *glist = NULL; FILE *fp; if ( ! ( fp = fopen(filename, r))) { fprintf(stderr, Errror in opening data file %s: error: %s\n, filename, strerror(errno)); } else { while (fscanf(fp, %i %s, f_i, f_c) != EOF) { if ( f_i == 1 ) { fprintf(stderr, f_i: %i;\tadding: %s\n, f_i, f_c); /* everything correct up to here */ glist = g_list_append(glist, f_c); } } fclose(fp); } gtk_combo_set_popdown_strings(GTK_COMBO(combo), glist); g_list_free(glist); The output from the fprintf is absolutely correct. In the combo I have the correct number of entries but all of them are 'Zack'. What's wrong with my code? I had a look at this for several hours and I googled a long time but I don't find it. Please help me. I really appreciate your help. Thank you in advance Regards -- [EMAIL PROTECTED] [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Can a treeview do this?
Tristan Van Berkom [EMAIL PROTECTED] wrote: Maybe you could write a custom treeview implementation to use with GtkTreeStore (seems you would only have to place your cells differently than treeview does); but then... i dont know about doing that in Gtk#. The custom treeview implementation seems to be the correct approach. Treestore is ideal to store the data, but a treeview objectives are different from my spec. (Treeview does an excellent job for what it is intended. I have done trials of putting thoudands of rows into a store and performance is excellent.) I should get the treeview.c code out and start hacking away. Kim ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Widget to pick timezone
Hi I'm looking for a widget that allows the user to pick a capital city from a world map of countries, so that he can set he timezone he is in; the app i need it for is written in pure C language (no C++ noe GLADE). Browsing the Gnome CVS repo, i found the e-timezone-dialog widget [1]: is this a good starting point for my application or there are also other alternatives that would do better? thanks a lot Attilio [1] http://cvs.gnome.org/viewcvs/evolution/widgets/e-timezone-dialog/ Tiscali ADSL 4 Mega Flat Naviga senza limiti con l'unica Adsl a 4 Mega di velocità a soli 19,95 € al mese! Attivala subito e hai GRATIS 2 MESI e l'ATTIVAZIONE. http://abbonati.tiscali.it/adsl/sa/4flat_tc/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Setting scrollbar silde to bottom
Hey I need help in a simple Question Using Gtk 1.2 I have a TextEntry widget with a horizontal scrollbar and a long text inside How can I set the scrollbar slide to the bottom of the text after filled the text. At the moment I have to use the mouse to go to the end of my text Thanks for helping gr -- R=I+S Rapp Informatik Systeme GmbH Rosenbühlstr. 24 D-89182 Bernstadt Tel: +49 (0)7348-7755 Fax: +49 (0)7348-6086 E-MAIL mailto: [EMAIL PROTECTED] WEB www.rapp-informatik.de PS: Senden Sie mir bitte keine Anhänge in Microsoft (.DOC, .PPT) Format Bitte lesen Sie http://www.fsf.org/philosophy/no-word-attachmentsi.de.html Please don't send me any attachment in Microsoft (.DOC, .PPT) format please Read http://www.fsf.org/philosophy/no-word-attachments.html ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list