Re: help on graphics context colors not honored? (newbie)

2009-05-28 Thread Paul Davis
On Tue, May 26, 2009 at 6:00 AM, Lars Oliver Hansen l...@ymail.com wrote: Hi, thank you for your answer. If the tutorial should work, my application should work too. I actually draw in my configure handle (which should get fired on initial window creation and then I only need to redraw the

Re: expose event following button press/release event

2009-05-19 Thread Paul Davis
On Mon, May 18, 2009 at 5:33 AM, Tony Wang wangtao@gmail.com wrote: Hi Guys, Why there is always one expose-event after the button-press-event(and button-release-event)? that means my app redraw itself twice for one button event, which made the app UI flickers, any clues for settling the

Re: expose event following button press/release event

2009-05-18 Thread Paul Davis
On Mon, May 18, 2009 at 5:33 AM, Tony Wang wangtao@gmail.com wrote: Hi Guys, Why there is always one expose-event after the button-press-event(and button-release-event)? that means my app redraw itself twice for one button event, which made the app UI flickers, any clues for settling the

Re: Font style in widget-size_request

2009-03-25 Thread Paul Davis
On Tue, Mar 24, 2009 at 2:18 PM, David Brigada bri...@rpi.edu wrote: Hello, I am writing a graph widget for use in GTK+ applications. I'm trying to calculate the minimum size for the widget from the text along the axes of the graph. I use Cairo to draw the text, so I'm using the

Re: GTK drawing + Gstreamer

2009-03-20 Thread Paul Davis
On Thu, Mar 19, 2009 at 12:24 PM, Matteo Landi matteo.la...@email.itwrote: Hi all, i'm trying to develop a basic image processing that sources the frames from the webcam. Basically the gtk application is composed of three windows: 1 - drawing area displaying modified stream 2 - drawing area

Re: post processing drawing

2009-02-04 Thread Paul Davis
On Mon, 2009-02-02 at 04:05 -0800, Iulian wrote: I need to alter the alpha blending value of a drawing. In order for this to be visible on the screen i need to do it after all GDK controls has finished drawing. I studied expose-event, but this doesn't guarantee me that no one will alter the

Re: GTK+ and Gimp

2009-01-26 Thread Paul Davis
On Sun, 2009-01-25 at 22:00 +0200, Tor Lillqvist wrote: i'm just guessing, but it may be related to X11's rather limited concept of window relationships, Limited, indeed, but even more limited than you perhaps guess;) The X11 protocol doesn't have any concept of relationship between

Re: GTK+ and Gimp

2009-01-24 Thread Paul Davis
On Sat, 2009-01-24 at 18:31 +, Michael Grosberg wrote: Michael Torrie torriem at gmail.com writes: Actually it doesn't exist on all OS's. Gimp running with native GTK on OS X does not suffer from this problem thanks to OS X being an application-centric desktop rather than a

Re: gdk window clear area problem???

2009-01-11 Thread Paul Davis
On Fri, 2009-01-09 at 12:19 +0530, Mohith Manoj wrote: Dear Paul, Thanks for the quick reply. The reason I chose to draw in a function other than the on_expose_event is, there are other static things (lines, shapes and text labels) which do not overlap (or need to be updated along) with the

Re: gdk window clear area problem???

2009-01-08 Thread Paul Davis
On Thu, 2009-01-08 at 19:20 +0530, Mohith Manoj wrote: Hi all, this is my first post in the list. Please forgive any mistkes. I am developing a gtkmm application in linux under x86 platform (LibC and X11). My target is mips board (with uCLibC and DirectFB). A custom widget in my app is

Re: Ignoring piled up key-press-events

2008-12-15 Thread Paul Davis
On Mon, 2008-12-15 at 23:45 +0200, Dov Grobgeld wrote: I have a problem that I have been stuck on for a while. In my image viewer giv, I have a problem with a pileup of key-press-events. E.g. a space means load the next image. The problem is that I can't serve the keypress events at the full

Re: If I have to call the gtk_dialog_run() in new thread, How shall I do?

2008-11-28 Thread Paul Davis
On Fri, 2008-11-28 at 16:35 +0800, [EMAIL PROTECTED] wrote: Hello, When I run gtk_dialog_run() in new created thread, an error occurs. Read the GTK+ FAQ for the question about threads GTK. ___ gtk-list mailing list gtk-list@gnome.org

Re: How can I open an uri use gtk function?

2008-11-12 Thread Paul Davis
On Wed, 2008-11-12 at 09:09 +0100, Mike Massonnet wrote: Le Wed, 12 Nov 2008 10:13:38 +0800, Guoling Gao [EMAIL PROTECTED] a écrit : Hi all, Can I open URI use gtk function, except gnome-*? I want to open an URI from a program, but not find the right method. thanks. xdg-open would

Re: digital clock ...?

2008-11-03 Thread Paul Davis
On Mon, 2008-11-03 at 16:51 +0100, Karl Schmitt wrote: Dear Folks, where can I find a simple example for a digital clock in GTK? how to get the exact time in seconds from the operating system? where can I find more GTK examples than provided by gtk-demo.exe? google would be a great

Re: Is GLIB thread safe?

2008-10-25 Thread Paul Davis
On Sun, 2008-10-26 at 00:25 +0800, Peter Cai wrote: Hi all, I'm writing a COM program on windows but I'm not quite familiar with C++. thus I decided to use mostly C instead and I want to use GLIB in it. But I got one problem. Is GLIB thread safe? generally speaking no. let me give you

Re: how can i get the window's size?

2008-09-25 Thread Paul Davis
On Fri, 2008-09-26 at 10:01 +0800, Guoling Gao wrote: Hello buddy, How can I get the root window's size, what is the root window? the screen? the full display? (think multiple monitors). gdk_get_screen_size() may be of interest to you. and the gnome panel's size? no idea, i don't do gnome.

Re: GTK adjustement changes create incompatible behaviour between versions?

2008-09-22 Thread Paul Davis
On Mon, 2008-09-22 at 11:07 -0700, Brian J. Tarricone wrote: Ghee Teo wrote: Patryk Zawadzki wrote: Can we get a precise list of affected applications? I only tripped over Inkscape so far but that's not part of GNOME and we'll likely patch it up downstream if there's no upstream fix.

Re: gtk_widget_destroy memory leak

2008-09-21 Thread Paul Davis
On Sun, 2008-09-21 at 11:04 -0400, Ed James wrote: Perhaps Question 1.5 in http://www.gtk.org/api/2.6/gtk/gtk-question-index.html might help? its a good answer, but interestingly the case in question here concerns a top level GtkWindow, which is never added to any container, ever. can

Re: question about error on compile

2008-09-15 Thread Paul Davis
On Mon, 2008-09-15 at 11:17 +0400, Vasiliy Tolstov wrote: I'm try to compile my program and get this error you didn't define the destructor for MainWindow. ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

gtk_window_set_policy() vs. gtk_window_set_resizable()

2008-09-12 Thread Paul Davis
set_policy() has been deprecated, and set_resizable() is the suggested replacement. the documentation for each function seems rather different, and there seems to be no way to get the effect of the old auto-shrink option of set_policy() being set to true. how should someone achieve the same

Re: Can GTK+ create a GtkWindow in a GtkWindow?

2008-09-09 Thread Paul Davis
On Tue, 2008-09-09 at 18:41 +0100, Rob Pearce wrote: On Tuesday 09 September 2008, John Hobbs wrote: If you want MDI use the Notebook widget. But be aware of what you are doing, from the gnome HIG document [1] MDI has several inherent usability problems, so its use is discouraged in

Re: How to give label a bg color ?

2008-09-09 Thread Paul Davis
On Wed, 2008-09-10 at 11:22 +0800, xujia li wrote: In my project, I need to made a label that can be clicked, and has a color, and looks like label, not a button. I try to use gtk_widget_modify_bg but it doesn't modify anything. How can I modify it, or is there other widget I can use to

Re: gtk_print

2008-08-22 Thread Paul Davis
On Fri, 2008-08-22 at 14:12 +0100, Chris Vine wrote: On Fri, 22 Aug 2008 13:40:20 +0200 (CEST) Richard Boaz [EMAIL PROTECTED] wrote: [snip] [ ... snip snip snip ... ] this sounds like a disaster of an API. most other GTK/GDK APIs that involve things that ultimately come down to pixels

Re: gtk_print

2008-08-22 Thread Paul Davis
On Sat, 2008-08-23 at 00:28 +0100, Chris Vine wrote: On Fri, 22 Aug 2008 19:04:19 -0400 Paul Davis [EMAIL PROTECTED] wrote: On Fri, 2008-08-22 at 14:12 +0100, Chris Vine wrote: On Fri, 22 Aug 2008 13:40:20 +0200 (CEST) Richard Boaz [EMAIL PROTECTED] wrote: [snip] [ ... snip

Re: When to call g_thread_init(), again...

2008-08-15 Thread Paul Davis
On Fri, 2008-08-15 at 15:45 +0300, Tor Lillqvist wrote: For example, Glib have g_mem_set_vtable() that alose requires to be first. Whee, so GLib documentation is internally inconsistent then. What a mess. Current wording of the g_thread_init() documentation doesn't introduces such

Re: When to call g_thread_init(), again...

2008-08-15 Thread Paul Davis
On Fri, 2008-08-15 at 16:05 +0300, Tor Lillqvist wrote: If your program uses threads (or other libraries that use threads), then you must call g_thread_init() before calling any other GLib function It's not using threads that is the key point here. Calling g_thread_init() is. That

Re: gtk.HTML class nonexistent [was: Re: [pygtk] Computing optimum size of gtkhtml2.View]

2008-08-15 Thread Paul Davis
On Fri, 2008-08-15 at 19:20 +, Luke Kenneth Casson Leighton wrote: it's _essential_ that GTK have similar such functionality. implementing these features outside of the core gtk widget set - using pygtk2 alone - registers on the awkward to literally impossible scale. i haven't looked at

Re: Why GtkWidget-window is NULL when gtk_window_new()

2008-08-13 Thread Paul Davis
On Wed, 2008-08-13 at 10:15 +0800, Lazy Fox wrote: I followed your advice and found that Cairo is a vector graphics library. I think the vector drawing action will cost more cpu, gpu or ram then gdk_draw_* API. But my target device is an embeded system with ARM9 cpu, and have not gpu. So I

Re: subwindow-less Gtk+ and offscreen windows

2008-08-04 Thread Paul Davis
On Mon, 2008-08-04 at 23:57 +0200, Lieven van der Heide wrote: I don't think that will work, since the user of the gl widget may want to change the viewport as well, and the coordinates in glViewport are always absolute, not relative to the current one. But anyway, would it really be a

Re: subwindow-less Gtk+ and offscreen windows

2008-08-04 Thread Paul Davis
On Mon, 2008-08-04 at 17:09 -0500, Cody Russell wrote: I'll take a look at the Quartz backend and see how it is working. I've been wanting to do so anyway. ;) i don't think you'll learn much of any real relevance. the quartz backend still represents all GdkWindows (child or otherwise)

Re: Mouse motion events

2008-08-01 Thread Paul Davis
On Fri, 2008-08-01 at 04:37 -0700, Douwe Vos wrote: Hi, I'm trying to get mouse motion-events from an implementation of the GtkContainer but whatever I try, I do not get events. The documentation more or less makes notice that these events are thrown on GtkWindow types only. So I tried to

Re: va_list *

2008-07-31 Thread Paul Davis
On Thu, 2008-07-31 at 15:18 +0200, Tim Janik wrote: I think it's best to simply switch to C99 at *some* point (e.g. next year? 2009 - C99 will be ten years old by then). At that point we *know* we can rely on features like va_list pointers. i think someone commented just the other day that

Re: GTK and threads

2008-07-29 Thread Paul Davis
On Tue, 2008-07-29 at 16:00 +0200, Bernhard Jung wrote: Is this behavior normal to GTK+? I know in Java/Swing and .NET/Windows Forms manipulation of GUI widgets has to be done in a special thread. Is there a similar concept in GTK+? Or maybe something is wrong with my code? You have 2

Re: dynamic accelerators

2008-07-29 Thread Paul Davis
On Tue, 2008-07-29 at 12:05 -0700, Wesley Smith wrote: Hi John, Thanks for the code and link. This was definitely a step in the right direction. One issue though is you're using a GtkUIManager and loading in structure via strings. I'm generating the entire menu procedurally depending on

Re: setting up a gtk dev environment

2008-07-27 Thread Paul Davis
On Sun, 2008-07-27 at 14:08 -0400, Patrick Hallinan wrote: Hi, I wish to help with the development of gtk+ but I'm not having any fun trying to setup a build environment for gtk+. I've looked for help at www.gtk.org/development.html and developer.gnome.org. I have tried using jhbuild from

[Fwd: Re: setting up a gtk dev environment]

2008-07-27 Thread Paul Davis
Patrick, this should have been sent to the list, not me personally. ---BeginMessage--- On Sun, 2008-07-27 at 14:24 -0400, Paul Davis wrote: On Sun, 2008-07-27 at 14:08 -0400, Patrick Hallinan wrote: Hi, I wish to help with the development of gtk+ but I'm not having any fun trying

Re: setting up a gtk dev environment

2008-07-27 Thread Paul Davis
On Sun, 2008-07-27 at 22:02 +0200, Sven Herzberg wrote: Maybe you can also add this to your jhbuildrc to skip building guile: skip=['guile'] you can't skip guile without also skipping 'gmp'. i still find it bizarre that these two things are considered part of the bootstrap but my bug report

Re: GUADEC 2008 GTK+ Meeting Minutes

2008-07-23 Thread Paul Davis
On Wed, 2008-07-23 at 22:45 -0400, Colin Walters wrote: On Wed, Jul 23, 2008 at 11:55 AM, Tim Janik [EMAIL PROTECTED] wrote: People wonder whether a GLib 3 is planned and whether the entire library stack must be parallel installable. A GLib 3 is most

Re: gtk-demo can't load icons on Sun Solaris 10.

2008-07-21 Thread Paul Davis
On Mon, 2008-07-21 at 09:50 -0500, Halliday, Tim wrote: I've built v2.12.5 on Solaris 10 using the Sunstudio 11 compiler. Everything seemed to go ok. However, when I run gtk-demo it throws a bunch of errors when I try the Application Main Window demo. Somehow it can't find the stock icons.

Re: Finalize a working application

2008-07-19 Thread Paul Davis
On Fri, 2008-07-18 at 02:56 +0200, Oli wrote: Hey guys, I've written a tiny ascii art viewer in C using GTK+. Everything works fine, but I've got a problem. I don't now how to finalize my app. How should I create an installscript? Where should I place gtkbuilder files and the icon of my

Re: missing types in GType

2008-07-19 Thread Paul Davis
On Sat, 2008-07-19 at 12:17 +0200, Roberto -MadBob- Guido wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is there any reason for which in the fundamental types listed in GType there is no reference to int short values and wide chars ( wchar_t ) strings? Is it a desired missing or

Re: About GTK+ 3.0 and deprecated things

2008-07-17 Thread Paul Davis
On Thu, 2008-07-17 at 16:02 +0100, Xan wrote: This is exactly what they are doing, that's why they call it GTK+ 3.0, or 2.99.0, or whatever. You are free to keep using and maintaining the 2.x series for as long as you need. Now, if you'd like *others* to spend *their* time doing what *you*

Re: About GTK+ 3.0 and deprecated things

2008-07-16 Thread Paul Davis
On Thu, 2008-07-17 at 04:11 +0200, Sven Herzberg wrote: Paul, just in case this wasn't made clear enough already; the GTK+ team want to deploy a GTK+3 that will be API-compatible to the latest GTK+2 including all deprecation flags that are there (disable deprecated, multihead safe, single

Re: Is it posible

2008-07-16 Thread Paul Davis
On Wed, 2008-07-16 at 19:52 -0400, Claudio Saavedra wrote: El jue, 17-07-2008 a las 01:56 +0300, Иван Васильев escribió: Is itposible to draw circle in Cairo and to place in the midle of it Button in gtk+? Yes, you can. Use an empty GtkButton and place a GtkDrawingArea inside of it,

Re: g_main_loop

2008-07-15 Thread Paul Davis
On Tue, 2008-07-15 at 19:15 +0800, HASWANI HARISH-VCKR47 wrote: Hi All, I am a beginner to gtk APIs. My query is : - In Thread T1 I am calling g_main_loop() - In Thread T2 I am emitting a signal through g_signal_emit_by_name(G_OBJECT, signal-name); I saw that signal handler is

Re: gnome canvas doesnt work properly on GTK-DirectFB

2008-06-11 Thread Paul Davis
On Wed, 2008-06-11 at 19:55 +0530, svalbard colaco wrote: HI all; Further debugging has shown that antialiased canvases formed using gnome_canvas_new_aa() appear correctly on GTK-DFB backend whereas canvases formed using gnome_canvas_new() fail to render on GTK-DirectFB ;rather they

Re: gnome canvas doesnt work properly on GTK-DirectFB

2008-06-11 Thread Paul Davis
On Wed, 2008-06-11 at 20:26 +0530, svalbard colaco wrote: Hi Paul, k. So the fix you spoke about was in your application code and not in your GTK-quartz backend? its in my own modified version of libgnomecanvas, which is distributed on OS X as part of the app bundle.

Re: gnome canvas doesnt work properly on GTK-DirectFB

2008-06-11 Thread Paul Davis
On Wed, 2008-06-11 at 19:55 +0530, svalbard colaco wrote: HI all; Further debugging has shown that antialiased canvases formed using gnome_canvas_new_aa() appear correctly on GTK-DFB backend whereas canvases formed using gnome_canvas_new() fail to render on GTK-DirectFB ;rather they

Re: gnome canvas doesnt work properly on GTK-DirectFB

2008-06-11 Thread Paul Davis
On Wed, 2008-06-11 at 20:26 +0530, svalbard colaco wrote: Hi Paul, k. So the fix you spoke about was in your application code and not in your GTK-quartz backend? its in my own modified version of libgnomecanvas, which is distributed on OS X as part of the app bundle.

Re: gnome canvas item apears black on GTK-DirectFB

2008-06-10 Thread Paul Davis
On Mon, 2008-06-09 at 16:00 +0530, svalbard colaco wrote: Hi all, I have an application running on GTK-DirectFB and its observed that , a part of the window, which is a gnome canvas item is not rendered properly rather that entire vbox appears black, But when i click on , on a click_to_

Re: gnome canvas item apears black on GTK-DirectFB

2008-06-09 Thread Paul Davis
On Mon, 2008-06-09 at 16:00 +0530, svalbard colaco wrote: Hi all, I have an application running on GTK-DirectFB and its observed that , a part of the window, which is a gnome canvas item is not rendered properly rather that entire vbox appears black, But when i click on , on a click_to_

Re: Steps to get to GTK+ 3.0

2008-06-04 Thread Paul Davis
On Wed, 2008-06-04 at 20:30 +0200, Jean-Yves Lefort wrote: On Wed, 04 Jun 2008 18:51:18 +0100 Emmanuele Bassi [EMAIL PROTECTED] wrote: On Wed, 2008-06-04 at 19:44 +0200, Jean-Yves Lefort wrote: I don't want to start a flame war over old hat, but statements like this shouldn't go

Re: Steps to get to GTK+ 3.0

2008-06-04 Thread Paul Davis
On Wed, 2008-06-04 at 20:57 +0200, Jean-Yves Lefort wrote: Rather than calling my suggestions silly, why don't you actually try to explain how the non-preprocessed, dynamic-only GLib property design is superior to the Qt design (or at least not inferior), or describe these specific reasons

Re: How to find the exact size a button is going to get?

2008-06-03 Thread Paul Davis
On Tue, 2008-06-03 at 09:36 +0200, Toralf Lund wrote: varun shrivastava wrote: you can access GtkAllocation structure which stores the x, y, width and height allocated to a widget That will (only) give me the size of an existing widget, won't it? Not what I'm looking for; as I was

Re: How to find the exact size a button is going to get?

2008-06-03 Thread Paul Davis
On Tue, 2008-06-03 at 13:03 +0200, Toralf Lund wrote: Paul Davis wrote: On Tue, 2008-06-03 at 09:36 +0200, Toralf Lund wrote: varun shrivastava wrote: you can access GtkAllocation structure which stores the x, y, width and height allocated to a widget

Re: How to find the exact size a button is going to get?

2008-06-03 Thread Paul Davis
On Tue, 2008-06-03 at 14:38 +0200, Toralf Lund wrote: OK. I actually looked at the widget implementation after I wrote the last post, and it seems like it might be possible to extract the real value from style properties, but it wouldn't be easy as too many parameters are involved. So

Re: looking for a widget like pd's number box

2008-06-02 Thread Paul Davis
On Sun, 2008-06-01 at 19:37 -0700, Rich E wrote: Hmm... one more reason to switch to gtkmm already. I just figured I would start learning gtk+ to limit myself to C, but I am already thinking about using custom widgets. I hear this is a drag in gtk+ alone. Also, Paul, I will admit that

Re: looking for a widget like pd's number box

2008-06-02 Thread Paul Davis
On Mon, 2008-06-02 at 15:08 +0100, Iain * wrote: I was hoping someone could help decide what I have to do to replicate the number box in pd. As far as I can tell from the source, it is created from scratch using tcl scripting commands. It consists of a number entry area and looks very

Re: looking for a widget like pd's number box

2008-06-01 Thread Paul Davis
On Sat, 2008-05-31 at 19:30 -0700, Rich E wrote: Hi all, I am a happy user of Miller Puckette's Pure Data (pd) for real-time audio processing, but not too happy with the interface, which uses the tk toolkit. So, I am working towards developing a similar, but expandable, interface using

Re: RE: Scrolling a drawing area

2008-05-21 Thread Paul Davis
On Wed, 2008-05-21 at 19:40 +0300, Dov Grobgeld wrote: For what it is worth, the DovImageViewer (which is part of giv), does a single redraw based on a call to: gint dov_image_viewer_zoom_around_fixed_point (DovImageViewer * self, double new_scale_x,

Re: RE: Scrolling a drawing area

2008-05-19 Thread Paul Davis
On Mon, 2008-05-19 at 11:39 +0300, Dov Grobgeld wrote: 2008/5/11 Lindley M French [EMAIL PROTECTED]: [stuff deleted] Be warned: Due to the way resizing works in GTK+, it's impossible to do smooth zooming where your scrolled window remains focused

Re: Drawing with cairo

2008-05-15 Thread Paul Davis
On Thu, 2008-05-15 at 12:05 -0300, Diego A. Fons wrote: Like Theodore I'm using gtkmm. This is an extrac of the code which doesn't work: void Plotter::on_realize( void ) { // Create the GDK window refGdkWindow = Gdk::Window::create(get_window(), attributes, GDK_WA_X |

Re: Setting up GTK+ on Windows using Mingw

2008-05-14 Thread Paul Davis
On Wed, 2008-05-14 at 14:04 +0200, Richard Boaz wrote: i've said it before (many years ago now) and i'll say it again: providing a product without good documentation that will allow new users to both learn how to use it and get the job done at the same time is a product that has yet to even

Re: Drawing to layout-bin_window

2008-05-12 Thread Paul Davis
On Mon, 2008-05-12 at 08:32 -0400, Ariel Martinez wrote: The GTKdocumentation says: When handling expose events on a GtkLayout, you must draw to GTK_LAYOUT (layout)-bin_window, rather than to GTK_WIDGET (layout)-window, as you would for a drawing area. But I get a compiler error saying

Re: Global hotkey

2008-05-09 Thread Paul Davis
On Fri, 2008-05-09 at 12:43 -0600, Axel von Bertoldi wrote: Hello all, I'm wondering if GTK+ provides any facilities for global hotkeys or key-bindings. By global I Mean for the entire desktop, not just a window or application. Specifically, I have a panel-applet I'd like to activate with

Re: Problems with aligning and spacing widgets

2008-05-08 Thread Paul Davis
On Thu, 2008-05-08 at 11:18 +0200, Sandra Derbring wrote: Hello, I am working on a GUI that should present a picture representing a word, the word and information about it. I have two main problems. The first one is: I have created two vertical boxes, positioned next to each other inside a

Re: checking for memory leaks in gtk

2008-05-08 Thread Paul Davis
On Wed, 2008-05-07 at 19:53 +0530, Harinandan S wrote: Hi All, I have observed memory leak in GTK+ too. I have multiple windows created when some buttons are pressed and destroyed later. I observed that when i destroy a window memory allocated to it during its creation is not freed and

Re: question on a moving object on the drawing area

2008-05-07 Thread Paul Davis
On Wed, 2008-05-07 at 19:10 +0800, zengqiang wrote: Hi, I have a GUI on which a vehicle should be running along a selected trajectory. previously, i can realize it easily in linux platform,using Gnome Canvas, by using canvas groups. one group shows the trajectory, another group for the

Re: GTK+ and Pango - How to use chinese, Korean, Japanese fonts?

2008-05-07 Thread Paul Davis
On Wed, 2008-05-07 at 19:58 +0530, Harinandan S wrote: Hi All, I read in the documentation that Pango is used for internationalized text handling. Is there any example which i can refer to using Chinese, Korean, Japanese fonts in GTK+ application. I understand English but not any of the

proposal: substantial change to keyboard-driven action handling

2008-05-06 Thread Paul Davis
(I've been grousing about the way GTK's handles keyboard bindings in the most general sense for some time now, and was suddenly motivated to try to write up a proposal for what I think needs to be done. Feel free to shoot me down) CLAIM - GTK's handling of keyboard-drive events is a mess

Re: proposal: substantial change to keyboard-driven action handling

2008-05-06 Thread Paul Davis
On Tue, 2008-05-06 at 11:57 -0400, Morten Welinder wrote: There needs to be a 1:1, configurable mapping between any tuple of these 3 properties and some action within a GTK application. Why on Earth would you require that mapping be 1:1:? What you need is that action is a

Re: proposal: substantial change to keyboard-driven action handling

2008-05-06 Thread Paul Davis
On Wed, 2008-05-07 at 11:38 +1000, Andrew Cowie wrote: As it stands right now GtkAction isn't quite generic enough (for example, it's all hard wired to use stock icons only, so if you've got UI elements that have the temerity to have nothing to do with stock functions and therefore have no

Re: popup menu focus/grab problem

2008-05-05 Thread Paul Davis
On Mon, 2008-05-05 at 08:32 -0600, Axel von Bertoldi wrote: -- Forwarded message -- From: Axel von Bertoldi [EMAIL PROTECTED] Date: Wed, Apr 30, 2008 at 5:36 PM Subject: popup menu focus/grab problem To: gtk-list@gnome.org Hello all, I'm the developer of this

Re: Compositing with GDK/GTK

2008-05-04 Thread Paul Davis
On Sun, 2008-05-04 at 19:41 -0400, Donny Viszneki wrote: I'm worried that all the canvas offerings do not provide extensible drawable classes, as GDK seems to have built-in support for, but as I said, I can't find any documentation for this :( I think you're misunderstanding. Each canvas

Re: Compositing with GDK/GTK

2008-05-03 Thread Paul Davis
On Sat, 2008-05-03 at 01:05 -0400, Donny Viszneki wrote: Hi all, Certain parts of my application's GUI contain logical widget-like components, but which are different from GTK widgets (or my limited understanding of them) in that they do not fit well into a hierarchical model for several

Re: Inter Process DND in Gtk TreeView.

2008-04-23 Thread Paul Davis
On Wed, 2008-04-23 at 10:19 +0530, Ratna Kishore wrote: Hi, I am working on the drag and drop. Can you tell me whether Drag and Drop works fine between two tree views which belong to two different processes? DnD from 1 treeview to another within the same process does not work, let alone

RE: LGPL question

2008-04-08 Thread Paul Davis
On Tue, 2008-04-08 at 18:29 +0800, Priya Suryanarayanan wrote: After reading all the responses, I am still a little confused (I may have misunderstood the subtleties here). On the one hand, I have understood that since I am using dynamic GTK+ libraries untouched, therefore my application can

Re: Pixbuf loading question

2008-04-07 Thread Paul Davis
On Mon, 2008-04-07 at 15:23 +0200, nico wrote: Hello I m developing an application using pygtk under ubuntu. For creation of thumbnails on an image list ( inside a gtk.Treeview), I create a pixbuf for each thumbnail. After power up of my laptop , I load the program and my 500 images (

Re: Pixbuf loading question

2008-04-07 Thread Paul Davis
On Mon, 2008-04-07 at 11:02 -0300, Diego Jacobi wrote: That wont be a fix, instead a hack. Whats the problem with this cache? It is suposed to be updated when you edit those files, so it is transparent to you if it exists or not. Why do you need the overhead? he's not asking that. if

Re: more mainloops in more threads?

2008-04-01 Thread Paul Davis
On Tue, 2008-04-01 at 22:05 +0200, Roberto -MadBob- Guido wrote: Perhaps my preoccupations are due my bad understanding of signal dispatching internals, and the addiction of a object to monitor and for which dispatch signals do not introduce overheads on scheduling: any comment on it, or

Re: more mainloops in more threads?

2008-04-01 Thread Paul Davis
On Tue, 2008-04-01 at 23:17 +0200, Roberto -MadBob- Guido wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 01 April 2008 22:39:15 Paul Davis wrote: it might help to realize that signals are nothing more (or less) than a way to execute a list of closures Exactly as I

Re: more mainloops in more threads?

2008-04-01 Thread Paul Davis
On Wed, 2008-04-02 at 01:20 +0200, Roberto -MadBob- Guido wrote: In next future I will try to investigate internals in GObject and Glib, with the intention to build a proof-of-concept for thread-contained signal dispatching. that is already done. why don't you write some useful code

Re: how to set transparency to widgets?

2008-03-30 Thread Paul Davis
On Sun, 2008-03-30 at 10:11 +0530, Harinandan S wrote: Hi All, I am looking at ways to make a window transparent and only some widgets on the window to be visible. I found gtk_window_set_opacity API but this API sets opacity to entire window but not to a widget. Is there any way I

Re: how to set transparency to widgets?

2008-03-30 Thread Paul Davis
On Sun, 2008-03-30 at 23:32 +0200, gege2061 wrote: Hi, It's possible with cairo : http://plan99.net/~mike/files/alphademo.c Screenshot : http://gtk.developpez.com/faq/images/transparent.png i tried to very carefully word my reply, but you just rode right over that. yes, there are all

Re: Why GTK+ use C as API style?

2008-03-29 Thread Paul Davis
On Fri, 2008-03-28 at 09:27 +0800, 李西西 wrote: Hi, all: When I saw the introduce of GTK+, it seemed that GTK+ have many new thought in it, like OO, component, etc. But, why GTK+ still use C style API, not an OO framework like WXwidgets? Could it be that GTK is a C language API and

Re: Bottom titlebar

2008-03-15 Thread Paul Davis
On Fri, 2008-03-14 at 23:53 -0400, Donny Viszneki wrote: On Fri, Mar 14, 2008 at 8:58 AM, Paul Davis [EMAIL PROTECTED] wrote: or: remove all decoration from the window (not nice for your users) and draw/manage the titlebar yourself. If implementing an application who's emphasis

Re: Bottom titlebar

2008-03-14 Thread Paul Davis
On Tue, 2008-03-11 at 16:20 -0700, Pioz wrote: Hi, it's possible create a window with its titlebar on bottom? Like Yakuake? titlebars are generally created and managed by window managers. so: either: find a window manager that does that or: remove all decoration from the window (not nice

Re: What does your personal GTK+ development system consist of?

2008-02-25 Thread Paul Davis
On Mon, 2008-02-25 at 09:45 -0800, Wade Renzi wrote: Hi everyone, I'm curious as to what peoples personal GTK+ development systems consist of. What are the most convenient ways of developing GTK+ without affecting the GTK+ applications you use every day. I ask because I recently screwed

Re: Smooth zooming

2008-02-20 Thread Paul Davis
On Wed, 2008-02-20 at 11:24 -0500, Lindley M French wrote: I've asked this question on several Gtk forums on previous occasions, but never got much of a response. As this list seems a bit more active, perhaps my luck will be better here. I'm trying to implement a zoomable + scrollable

Re: Does gtk have issues with STL?

2008-02-11 Thread Paul Davis
On Mon, 2008-02-11 at 15:45 -0500, Lindley M French wrote: I suspect these are merely symptoms of some other corruption, but I can't seem to find it. with a 99.872% confidence level, i can confirm your belief. I'm using pthreads with this; nothing complex, and I think I have everything

Re: Does gtk have issues with STL?

2008-02-11 Thread Paul Davis
On Mon, 2008-02-11 at 17:08 -0700, Michael L Torrie wrote: Paul Davis wrote: EITHER make GTK/GDK/X11 calls from a single thread only OR use GDK_THREADS_{ENTER,LEAVE} around every (group of) GTK/GDK/X11 call(s). This seems to crop up all the time. From what I recall, the use

Re: how to determine maximum possible window size?

2008-02-05 Thread Paul Davis
On Tue, 2008-02-05 at 16:36 -0800, Chris MacGregor wrote: Thanks, but those functions don't account for the space occupied by things like panels. Any suggestions for how to deal with that? (That was the question I was trying to ask.) that wouldn't be a part of GTK, but would part of GNOME.

Re: how to determine maximum possible window size?

2008-02-05 Thread Paul Davis
On Tue, 2008-02-05 at 19:41 -0800, Chris MacGregor wrote: On 02/05/2008 05:21 PM, Paul Davis wrote: On Tue, 2008-02-05 at 16:36 -0800, Chris MacGregor wrote: Thanks, but those functions don't account for the space occupied by things like panels. Any suggestions for how to deal

Re: how to determine maximum possible window size?

2008-02-05 Thread Paul Davis
On Tue, 2008-02-05 at 20:40 -0800, Chris MacGregor wrote: So I would think it appropriate that it (GDK, I guess) provide (instead of or in addition to those functions) functions that return the *available* screen size after deducting whatever the underlying window system is providing that

Re: about GtkScrolledWindow background

2008-01-30 Thread Paul Davis
On Wed, 2008-01-30 at 11:53 +0200, Ustun ERGENOGLU wrote: hello folks, I'm just trying to get a GtkScrolledWindow ( or any other widget with it's own window ) to have a (semi)transparent background. its not generally possible. ___ gtk-list

Re: How to create layered windows or widgets?

2008-01-25 Thread Paul Davis
On Fri, 2008-01-25 at 09:49 +0800, Skee Lin wrote: I'll write a demo this weekend. And if gdk_window_shape_combine_mask doesn't fit my application, I will try to implement it by using Xlib. shape_combine_mask() does not do what you want. it merely allows non-rectangular windows. it has nothing

Re: When is the 'size-allocate' signal emitted?

2008-01-15 Thread Paul Davis
On Wed, 2008-01-16 at 13:37 +1100, Andrew Cowie wrote: I know about 'configure-event', but when is 'size-allocate' emitted? At the same time (or as a consequence of?) or is is completely separate? configure-event is for top level windows only. size-allocate is for any widget. generally,

Re: Is GTK+-(GDK) implemented by Multi-thread method?

2007-12-07 Thread Paul Davis
On Sat, 2007-12-08 at 02:09 +0800, 刘志波 wrote: Hi forks, I want to know whether the GTK+- Library is implemented by Multi-thread method for itself. You know, it has been driven by event mechanism. How does GTK's main loop catch user events like key events, mouse motion,etc when other flows

Re: keyboard input from all gtk windows

2007-12-04 Thread Paul Davis
On Tue, 2007-12-04 at 10:52 +0100, Andrei Smahlei wrote: Hi all, I have two gtk-based applications and in one of them I need to have keyboard events from all the applications. This is some kind of a 'system' level keyborad events. there is no such thing: the backends (X11, win32, Quartz,

Re: To Draw | ! To Draw in an Expose Handler

2007-11-30 Thread Paul Davis
On Fri, 2007-11-30 at 10:38 +0100, Richard Boaz wrote: splitting this out into its own thread... 2) option 2 is simply impossible to make a one-to-one calculation as to which pixels must be refreshed, programmatically. for many (perhaps even for an overwhelming

<    1   2   3   4   5   6   7   8   9   10   >