Re: GDK_POINTER_MOTION_HINT_MASK has no effect

2007-11-29 Thread Paul Davis
On Thu, 2007-11-29 at 09:51 +0100, Richard Boaz wrote: This is the paradigm I use in all my drawing apps that has served me well: 1) Do all drawing to one or more background pixmaps. GTK already does this for you now. All widgets are double buffered unless you explicitly request

Re: GDK_POINTER_MOTION_HINT_MASK has no effect

2007-11-29 Thread Paul Davis
On Thu, 2007-11-29 at 16:24 +0100, Richard Boaz wrote: On Nov 29, 2007 1:36 PM, Paul Davis [EMAIL PROTECTED] wrote: On Thu, 2007-11-29 at 09:51 +0100, Richard Boaz wrote: This is the paradigm I use in all my drawing apps that has served me well: 1) Do all drawing

Re: GDK_POINTER_MOTION_HINT_MASK has no effect

2007-11-29 Thread Paul Davis
On Thu, 2007-11-29 at 20:03 +0100, Richard Boaz wrote: To illustrate: I have been called once, and GTK+ has drawn to the double buffer pixmap as you say. I was partially obscured and am now re-exposed, i.e., the main loop calls me again specifying an invalidated rectangle via the GdkEvent

RE: GDK_POINTER_MOTION_HINT_MASK has no effect

2007-11-27 Thread Paul Davis
On Tue, 2007-11-27 at 22:17 -0500, Stewart Weiss wrote: Richard: Thanks for this suggestion. Last night after sending the message, I did, in fact, resort to doing pretty much what you suggested below, by getting the mouse-down, then tracking it with button-motion-notify, and then

Re: How can I scroll my gtk application window programmically?

2007-11-11 Thread Paul Davis
On Sat, 2007-11-10 at 20:53 -0600, ying lcs wrote: Hi, I would like to know how can I scroll my gtk application window programmically? I have tried this, but the scroll bar does not make and the content of the window did not get refresh? GtkWidget* topLevelWindow; GdkWindow* win =

Re: Question regarding GdkPixmap struct

2007-11-10 Thread Paul Davis
On Sat, 2007-11-10 at 13:35 -0500, anurag sogal wrote: Hello Everybody, I reviewed the code for scribble.c program which uses a backing pixmap to store the what ever is drawn. However when I browsed through the .h files such as gdkpixmap.h and gdk.h , there was no structure like GdkPixmap.

Re: Filechooser: enter dirs with one click

2007-11-09 Thread Paul Davis
On Fri, 2007-11-09 at 18:54 +0100, europeen wrote: this message was posted the May 10th, 2006 and never had a answer... I search to configure my system with this suggestion : single-click is more simple/faster than making a double-click for each rep where we want to go... select and activate

Re: Filechooser: enter dirs with one click

2007-11-09 Thread Paul Davis
On Fri, 2007-11-09 at 19:01 +, [EMAIL PROTECTED] wrote: Well you are true to some respect... What I was describing is apparently a nautilus property which takes effect on the desktop as well, but not any filechooser dialogues. From the top of my mind, I wonder if you could force the

Re: menu accelerators not working

2007-10-28 Thread Paul Davis
On Sun, 2007-10-28 at 19:33 -0400, Philip Tricca wrote: Anyone willing to help diagnose a problem? I'm using the GtkUIManager to build my menus from GtkActionEntrys and an xml description. Everything works great except for the accelerators. I can't seem to get them working at all, even

Re: Problem building on OSX

2007-10-18 Thread Paul Davis
On Thu, 2007-10-18 at 15:26 -0700, Dave Stewart wrote: On Oct 18, 2007, at 12:16 PM, Marius Schamschula wrote: Dave, I'm surprised you got this far with your ./configure command. configure has a problem when passing multiple parameters to a single shell variable as arguments. I set

Re: Multi dim array

2007-10-12 Thread Paul Davis
On Fri, 2007-10-12 at 20:26 +0200, [EMAIL PROTECTED] wrote: hello, Is possible to make static or dynamic multi dim array with glib ? this is a basic C programming question. why are you asking about glib? ___ gtk-list mailing list

Re: Text Input with Windows Tablet Panel

2007-10-12 Thread Paul Davis
On Fri, 2007-10-12 at 08:12 -0500, Evan Easton wrote: Tor. You nailed it. I agree that it is the same reason assistive technologies don't work; because widgets are not real Windows components. This same issue exists on Mac OS X for any widget set that's not native (screen reader just

Re: Understanding GTK signaling

2007-10-09 Thread Paul Davis
On Sat, 2007-10-06 at 16:13 +0530, Midhun A wrote: Hi All, I am a newbie to Linux GUI. I want to know the exact process and signaling that happens when you want to show a GTK widget. actually, you don't. I have at least come till gtk_widget_show - g_signal_emit-

Re: thread support freezes windows

2007-10-09 Thread Paul Davis
On Tue, 2007-10-09 at 13:39 -0400, Michael P. Soulier wrote: Looking at this bug http://bugzilla.gnome.org/show_bug.cgi?id=426729#c3 it says that one should not use gdk/gtk functions from multiple threads on win32, possibly not on any platform. Is this still the case? yes. almost certainly

Re: How to redraw the blanked section of a widget after a expose-event?

2007-09-26 Thread Paul Davis
On Thu, 2007-09-27 at 10:42 +0800, krist misra wrote: Hi experts, I am using GTK+ and gstreamer to capture and show the video frames, I created a drawable widget using gtk_drawing_area_new() and using xvimage element of gstreamer to render the video, I also connected them by a gstreamer

Re: How to redraw the blanked section of a widget after a expose-event?

2007-09-26 Thread Paul Davis
On Thu, 2007-09-27 at 12:36 +0800, krist misra wrote: Hi Paul, Thanks for your reply, generally for the static stuff, such as text or a picture, it can be saved and then redrawed after expose-event occurs, but how can i save and redraw it for video that keeps moving on? I try to set the

Re: GtkWidgets and their underlying GdkWindows

2007-09-10 Thread Paul Davis
On Mon, 2007-09-10 at 12:10 -0400, zentara wrote: On Tue, 04 Sep 2007 16:42:22 +1000 Andrew Cowie [EMAIL PROTECTED] wrote: We all know that some GtkWidgets have their own GdkWindows (ie GtkButtons), and some do not (ie GtkLabels). At least, that's what the documentation tells us. As I

Re: GTK Widgets drawing an undesired background

2007-08-27 Thread Paul Davis
On Mon, 2007-08-27 at 09:44 -0400, zentara wrote: On Sun, 26 Aug 2007 14:02:46 -0400 zentara [EMAIL PROTECTED] wrote: So you can set it to empty, for full program control over colors, or set it to a custom rc file for the program. you're missing his point, i think. he is using an engine

Re: Pasing a 'auto_ptr' to a method

2007-08-25 Thread Paul Davis
On Sat, 2007-08-25 at 09:06 -0700, Jamiil Abduqadir wrote: I would like to pass a variable pointer that has been instantiated using 'auto_ptr' to a class method, however, the compiler complains saying that it does not recognize the method call; gives me a number of options, basically the list

Re: Glib::ustring

2007-08-25 Thread Paul Davis
On Sat, 2007-08-25 at 16:04 -0700, Jamiil Abduqadir wrote: OS : MSWinXP gcc: 3.4.2 gtk: gtkmm-win32-devel-2.10.8-1 problem: Glib::ustring Assignment methods in Glib::ustring are giving me serious problems. Simple statements as: class MC{ Glib::ustring* str; public: void

Re: Handling the Return key

2007-08-24 Thread Paul Davis
On Fri, 2007-08-24 at 17:27 -0400, William Ramsay wrote: Hi, Can anyone explain to me how to go about handling the pressing of the return key in a data entry dialog? You need the activate signal for the dialog, which is emitted when the user presses Return or equivalent keys. Note that

Re: GTK source code question

2007-08-20 Thread Paul Davis
On Mon, 2007-08-20 at 13:24 -0700, Brett Keating wrote: Does anyone know off hand what part of the GTK code is executed when a drawing update has completed? i.e. when a user moves focus from one widget to another, the control indicator is erased on one and drawn onto another widget... and

Re: Overlapping GtkWidgets - any advice?

2007-08-17 Thread Paul Davis
On 8/16/07, Paul Davis [EMAIL PROTECTED] wrote: On Thu, 2007-08-16 at 21:29 -0600, Jeff Smith wrote: I can live with a monster event-handler. That just might make GnomeCanvas a workable solution for me. Thanks. of course, FooCanvas is said by some to be the future. GnomeCanvas is dead

Re: Hosting a Qt widget in a GTK applicaiton.

2007-08-16 Thread Paul Davis
On Mon, 2007-08-13 at 14:38 -0500, Nicholas Muguira wrote: Hi, My company has a series of older apps that are all written in GTK. There is a project that is currently being developed that is using Qt 4.2 for all of its GUI development. One of the things that we would like to be able

Re: Overlapping GtkWidgets - any advice?

2007-08-16 Thread Paul Davis
On Thu, 2007-08-16 at 15:27 -0600, Jeff Smith wrote: I've looked all over the place, but I can't find a concise answer to this question. GnomeCanvas. concise enough? ___ gtk-list mailing list gtk-list@gnome.org

Re: Overlapping GtkWidgets - any advice?

2007-08-16 Thread Paul Davis
On Thu, 2007-08-16 at 17:18 -0600, Jeff Smith wrote: Spectacular concision. Thank you. Now, if I understand GnomeCanvas properly, it will allow me to embed drawable objects into the canvas, instead of putting widgets into a GtkFixed. And this will all draw very nicely, without background

Re: configure_event for eventbox

2007-08-15 Thread Paul Davis
On Wed, 2007-08-15 at 15:44 -0700, Darren Hart wrote: On 8/15/07, Darren Hart [EMAIL PROTECTED] wrote: On 8/15/07, David Nečas (Yeti) [EMAIL PROTECTED] wrote: Look at Gimp's toolbox widget which does something similar.

Re: problem about SIGSEGV and backtrace

2007-08-14 Thread Paul Davis
On Tue, 2007-08-14 at 15:25 +0100, Pádraig Brady wrote: [EMAIL PROTECTED] wrote: Hi all: I want to use SIGSEGV and backtrace to debug my programme. But I do not know how to use them. I'm running GTK 2.6.4 and Glib 2.6.4 on a Debian woody. Could you please guide me and

Re: problem about SIGSEGV and backtrace

2007-08-14 Thread Paul Davis
certainly use them... /rant (Other) Paul Davis On 8/14/07, Paul Davis [EMAIL PROTECTED] wrote: On Tue, 2007-08-14 at 15:25 +0100, Pádraig Brady wrote: [EMAIL PROTECTED] wrote: Hi all: I want to use SIGSEGV and backtrace to debug my programme. But I do not know how to use them. I'm

Re: 'reloading' gtktreeview when model changes drastically

2007-08-08 Thread Paul Davis
On Sun, 2007-08-05 at 00:25 +0200, Philip Van Hoof wrote: On Sat, 2007-08-04 at 16:51 -0400, Paul Davis wrote: On Sat, 2007-08-04 at 17:00 +0200, Philip Van Hoof wrote: The model itself is the source. The view is just a viewer for it. The source itself doesn't change. The content

Re: 'reloading' gtktreeview when model changes drastically

2007-08-08 Thread Paul Davis
On Sat, 2007-08-04 at 17:00 +0200, Philip Van Hoof wrote: The model itself is the source. The view is just a viewer for it. The source itself doesn't change. The content of the source changes. The view, being an observer of the model in the MVC paradigm, should adapt to the changes. It should

Re: implementing a delayed busy cursor

2007-08-05 Thread Paul Davis
On Sun, 2007-08-05 at 11:20 -0400, Paul Fox wrote: hi -- i want the mouse cursor in my app to only switch to busy after a brief delay (perhaps 1 second). i have an implementation that works in some places, but not others, and i'm wondering if there's a better/safer way. if

Re: implementing a delayed busy cursor

2007-08-05 Thread Paul Davis
On Sun, 2007-08-05 at 12:56 -0400, Paul Fox wrote: google gtk timeout - gtk_timeout_add - gtk.org/api - Main Loop Events - gtk_timeout_add has been deprecated since version 2.4 and should not be used in newly-written code. Use g_timeout_add() instead. and no, these run synchronously with the

Re: 'reloading' gtktreeview when model changes drastically

2007-08-04 Thread Paul Davis
On Sat, 2007-08-04 at 17:00 +0200, Philip Van Hoof wrote: The model itself is the source. The view is just a viewer for it. The source itself doesn't change. The content of the source changes. The view, being an observer of the model in the MVC paradigm, should adapt to the changes. It should

Re: 'reloading' gtktreeview when model changes drastically

2007-08-04 Thread Paul Davis
On Sun, 2007-08-05 at 00:25 +0200, Philip Van Hoof wrote: On Sat, 2007-08-04 at 16:51 -0400, Paul Davis wrote: On Sat, 2007-08-04 at 17:00 +0200, Philip Van Hoof wrote: The model itself is the source. The view is just a viewer for it. The source itself doesn't change. The content

Re: Changing the style of a scrollbar

2007-06-07 Thread Paul Davis
On Thu, 2007-06-07 at 16:18 -0700, konton wrote: How do you change the look and size of a scroll bar? I have a GtkScrolledWindow that holds a GtkTreeView, and I want the scroll bars to have different images and be thinner. I tried setting the style in .gtkrc for *GtkScrolledWindow* and I can

Re: Data available for reading in a GIOChannel

2007-05-29 Thread Paul Davis
On Mon, 2007-05-28 at 17:26 +0200, Jonathan Winterflood wrote: Hi, you never know how much readable data is available until you read it, you are only ever guaranteed to have one byte of data available for reading anyway. In my opinion, the channel should _always_ know how much data is

Re: GModule unloading

2007-05-23 Thread Paul Davis
On Wed, 2007-05-23 at 09:33 -0500, Matt Hoosier wrote: That's not really what I'm asking. Suppose there's a regular, garden-variety shared library intended for any old application to use. It's DSO is /usr/lib/libboo.so.0.1.2. Boo registers GTypes statically like any other shared library does.

Re: Getting row numbers

2007-05-10 Thread Paul Davis
On Thu, 2007-05-10 at 15:44 -0300, Alexandre Moreira wrote: Not exactly answering your question but, I noticed get_indices array should not be freed... so I imagine it is not a reentrant function. Is there a reentrant way to do that ? I'm not needing it right now but, perhaps I'll need in a

Re: gtk install problems

2007-05-10 Thread Paul Davis
* libraries), as well as where you decided to install those libraries. Fixing these problems would really depend on what you've done. HTH, Paul Davis On 5/10/07, Peter [EMAIL PROTECTED] wrote: Thank you for the suggestion but honestly I just want to get my system fixed the way it is right now

Re: Overlaying gtk widgets over a drawingarea

2007-04-24 Thread Paul Davis
On Tue, 2007-04-24 at 19:27 +0530, Toufeeq Hussain wrote: Hi All, I'm looking at various possibilities of using gtk for implementing a complex bit of functionality in a video player. Here is my requirement. I have a drawing area which will be used to play a video using gstreamer. Now I

Re: How to force GtkScrolledWindow to follow changes of a GtkTreeView?

2007-04-21 Thread Paul Davis
Maciej, You probably want this function: http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeView.html#gtk-tree-view-scroll-to-cell Just scroll to the new path when you add it. Paul On 4/21/07, Maciej Podkomorzy [EMAIL PROTECTED] wrote: Hi! I've stumbled upon a small problem I can't solve

Re: How do you develop you GTK code?

2007-04-14 Thread Paul Davis
On Sat, 2007-04-14 at 02:10 -0700, David J. Andruczyk wrote: though QT's designer offers something along those lines, as subclassing existing widgets is about 1000x easier than doing it in GTK+. if you opted to work in the same object oriented language that Qt uses, and just used gtkmm, you

Re: Opacity of Window

2007-04-12 Thread Paul Davis
On Thu, 2007-04-12 at 11:36 +0530, prajyot wrote: Hi Guys, Can anybody suggest me how opacity is set to the widget if it is not supporting alpha channel? (that is widget is not composited) as i explained on this list just the other day, there are NO GTK widgets that have support for

Re: Opacity of Window

2007-04-12 Thread Paul Davis
On Thu, 2007-04-12 at 16:31 +0530, मयंक जैन (makuchaku) wrote: On 4/12/07, Paul Davis [EMAIL PROTECTED] wrote: On Thu, 2007-04-12 at 11:36 +0530, prajyot wrote: Hi Guys, Can anybody suggest me how opacity is set to the widget if it is not supporting alpha channel? (that is widget

Re: gtkrc file......want to change opacity of window

2007-04-11 Thread Paul Davis
On Wed, 2007-04-11 at 15:24 +0530, prajyot wrote: Hello Everybody, Can anybody help me out in Resource files used to change colors, style, opacity(transparency) of any GTK widget. I want to set opacity of top window in my application. How can I set it using RC file. Gtk uses gtkrc file.

Re: (severe) performance issues

2007-03-30 Thread Paul Davis
On 3/30/07, Murray Cumming [EMAIL PROTECTED] wrote: On Thu, 2007-03-29 at 22:02 -0500, Paul Davis wrote: To me, a GtkLabel is a 'label' (get it?). A label shouldn't change. It tells the user what a given piece of information is. That doesn't make much sense to me. Information can change

Re: Sample simple container.

2007-03-30 Thread Paul Davis
On Fri, 2007-03-30 at 15:13 -0300, Alexandre Moreira wrote: Hello, everyone. I'd like to get a better understanding on how the Gtk+ widgets (specially containers) behave. I tried getting to look at a code for some of the simple containers in the lib but they're note that simple. I have to

Re: (severe) performance issues

2007-03-29 Thread Paul Davis
On Mon, 2007-03-26 at 17:17 -0700, David J. Andruczyk wrote: I hadn't tried that as I assumed that it was off by default unless enabled.. Since a simple test program doesn't show it,. but my app does and the performance hogging goes away when I comment out one line (gtk_label_set_text) the

Re: (severe) performance issues

2007-03-29 Thread Paul Davis
On Thu, 2007-03-29 at 09:04 -0700, David J. Andruczyk wrote: And the GTK+ developers haven't fixed this because of what? pride? I've seen this issue in GTK+ for YEARS, and filed bug reports on it for several years only to be shot down and turned away by them. That's disappointing. its not

Re: (severe) performance issues

2007-03-29 Thread Paul Davis
On Thu, 2007-03-29 at 16:22 -0300, Ivan Baldo wrote: In gtk_label_size_request there is code to get the desired width and height of the label, that could be called on the set_text and set_label functions to see if they differ to the current allocated ones by a threshold, and only then call

Re: (severe) performance issues

2007-03-29 Thread Paul Davis
On Thu, 2007-03-29 at 12:43 -0700, David J. Andruczyk wrote: I do this already ahead of time . I ONLY update the labels when absolutely necessary.. As a workaround I moved t GTKEntries which did NOT have the performance problem, though I can't quite make them appear like a GtkLabel in all

Re: (severe) performance issues

2007-03-29 Thread Paul Davis
On Thu, 2007-03-29 at 22:27 +0200, David Nečas (Yeti) wrote: On Thu, Mar 29, 2007 at 12:43:20PM -0700, David J. Andruczyk wrote: since there is NO other wisget that can be used to display rapidlychanging text. Most widgets can do it. Just do gdk_draw_layout() on whatever you want.

Re: (severe) performance issues

2007-03-29 Thread Paul Davis
On Thu, 2007-03-29 at 22:49 +0100, Robert Pearce wrote: On Thu, 29 Mar 2007 13:58:51 -0700 (PDT) David J. Andruczyk [EMAIL PROTECTED] wrote: It does when you're monitoring a realtime datalogging system, and don't want to have gaps or slow response in the updates. (there are also

Re: (severe) performance issues

2007-03-29 Thread Paul Davis
thoughts. Paul Davis (don't get confused, there are two of us). ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: (severe) performance issues

2007-03-26 Thread Paul Davis
On 3/25/07, David J. Andruczyk [EMAIL PROTECTED] wrote: Has anyone else noticed excessive cpu usage when updating certain GTK+ (2.10.x) widgets? I have a piece of software that updates a set of text fields (GtkLabel's) and uses progress bars to indicate a quantity graphically, and am

Re: Synchronize GTK main loop with a Motif window

2007-03-19 Thread Paul Davis
On Mon, 2007-03-19 at 09:46 -0700, Andrea Maiolo wrote: Hello Folks, I'm new to GTK programing so be nice with me if I'm asking something silly ;-) Is there a way to synchronize a Motif window with the GTK main look the same way I could do in Qt using QMotif (

Re: gtk and timer events

2007-03-13 Thread Paul Davis
On Tue, 2007-03-13 at 11:19 -0400, tj wrote: Hello, I am new to gtk and I need to port an application to it. However, there is one thing that I noticed right off of the bat. It seems there is no timer event. Like in other widget tool kits where you create a timer associated with a window

Re: Opening .gif files on gtkwindow

2007-02-10 Thread Paul Davis
You can use GtkImage and this method: http://developer.gnome.org/doc/API/2.0/gtk/GtkImage.html#gtk-image-new-from-file Paul Davis On 2/10/07, Naveen Kumar [EMAIL PROTECTED] wrote: Hi all, I am using gtk+-2.2.0 to develop my application .. Is there any possibality to open .gif file

Re: Continuing the saga Non-Blocking GUI developement

2007-01-25 Thread Paul Davis
On Thu, 2007-01-25 at 11:06 -0500, Melvin Newman wrote: Paul: Once again thank you for your reply. In responce to your longer e-mail I have several points. 1) Your e-mail has been most helpfull conceptually, and yes I am going to have take a closer look at exactly what my program is

Re: Continuing the saga Non-Blocking GUI developement

2007-01-25 Thread Paul Davis
they are. It might help to look at the design of other applications where responsiveness and throughput are critical. The first example that comes to mind is an audio daemon or audo editing software. The other Paul does some extremely impressive stuff with real time audio editing. HTH, Paul On 1/25/07, Paul

Re: Continuing the saga Non-Blocking GUI developement

2007-01-24 Thread Paul Davis
Melvin, Is it *just* your app that becomes unresponsive? Or the entire desktop? Judging from the discussion I'm guessing that you wrote this with two threads. What I'm guessing is that your background thread has maxed out an entire processor. If you've only got one thread doing cpu intensive

Re: Continuing the saga Non-Blocking GUI developement

2007-01-24 Thread Paul Davis
this: while( true ) { status = read( fd, my_buf, my_buf_size ) if( status == 0 errno != EAGAIN ) { throw some error ; } else if( status 0 ) { process_some_data( my_buf, status ) ; } } Paul On 1/25/07, Paul Davis [EMAIL PROTECTED] wrote: On 1/24/07, Melvin Newman

Re: How to draw persistent text (with Pango)?

2007-01-11 Thread Paul Davis
On Fri, 2007-01-12 at 02:21 +, Pedro Castro wrote: I'm using Drawable.DrawLayout to draw some text over a widget. The problem is, the text is removed when the widget is updated. How to make the text persist? you can't. every time a widget gets an expose event from the underlying window

Re: GTK+ installation

2007-01-08 Thread Paul Davis
On Mon, 2007-01-08 at 14:46 +0100, Richard Boaz wrote: (And to answer Yeti's question: yes, the system 'magically' builds and installs the entire system, alleviating the end-user from knowing intimately all the details related to the externally contributed libraries. I regard a

Re: Shapes of widgets in GTK???

2007-01-03 Thread Paul Davis
On Wed, 2007-01-03 at 14:09 +0530, [EMAIL PROTECTED] wrote: Hi All, I wanted to change shape of a widget like round, oval buttons. Is it possible to change shape using gtk theme concept ? you can't change a square button into a circle. you can round off the corners, change the

Re: precise timing control of double-buffering flip

2006-12-11 Thread Paul Davis
On Mon, 2006-12-11 at 12:22 +0100, Fabrice Pardo wrote: Hello, I'm searching a way to ask the time of double-buffering flip. In order to make a kind of oscilloscope. what do you think the refresh rate of your screen is? ___ gtk-list mailing list

Re: emulating a button click by software

2006-12-11 Thread Paul Davis
On Mon, 2006-12-11 at 09:12 +0100, Carlos Lacasta wrote: Many thanks for the hack Ricardo, It turned out that I was doing something wrong: I was deactivating a radio button of a group with just 2 of them, hoping that this would trigger the other button activation. However, I did manage to

Re: emulating a button click by software

2006-12-11 Thread Paul Davis
On Mon, 2006-12-11 at 09:12 +0100, Carlos Lacasta wrote: Many thanks for the hack Ricardo, It turned out that I was doing something wrong: I was deactivating a radio button of a group with just 2 of them, hoping that this would trigger the other button activation. However, I did manage to

Re: precise timing control of double-buffering flip

2006-12-11 Thread Paul Davis
On Mon, 2006-12-11 at 16:52 +0100, Fabrice Pardo wrote: Paul Davis wrote: On Mon, 2006-12-11 at 12:22 +0100, Fabrice Pardo wrote: Hello, I'm searching a way to ask the time of double-buffering flip. In order to make a kind of oscilloscope. what do you think the refresh

Re: precise timing control of double-buffering flip

2006-12-11 Thread Paul Davis
, Fabrice Pardo [EMAIL PROTECTED] wrote: Paul Davis wrote: On Mon, 2006-12-11 at 12:22 +0100, Fabrice Pardo wrote: Hello, I'm searching a way to ask the time of double-buffering flip. In order to make a kind of oscilloscope. what do you think the refresh rate of your screen

Re: Change the treeview's color

2006-11-27 Thread Paul Davis
On Tue, 2006-11-28 at 01:19 +, Ricardo Cruz wrote: Tetim wrote (@ Segunda, 27 de Novembro de 2006 20:29): How I can change line's color of the a treeview, but only one line... you may prefer to do this with an RC file. if so, here are some annotated entries from one we use with ardour:

Re: Controlling a widget from an other

2006-11-12 Thread Paul Davis
On Sun, 2006-11-12 at 17:34 +0100, David Nečas (Yeti) wrote: On Sun, Nov 12, 2006 at 05:06:25PM +0100, kalap kabat wrote: - Catch the keypress in the text entry and invoke the appropriate functions of the treeview for scrolling. This does not seem viable, since the scrolling functions

Re: Controlling a widget from an other

2006-11-12 Thread Paul Davis
On Sun, 2006-11-12 at 17:00 +, Kalap kabat wrote: David Nečas (Yeti yeti at physics.muni.cz writes: On Sun, Nov 12, 2006 at 05:06:25PM +0100, kalap kabat wrote: - Catch the keypress in the text entry and invoke the appropriate functions of the treeview for scrolling. This

Re: GtkTreeView color question

2006-11-12 Thread Paul Davis
On Sun, 2006-11-12 at 20:33 +, Kalap kabat wrote: [sorry for the previous one, I sent it unfinished] kalap kabat kalap.kabat at freemail.hu writes: Where can I change the background color of a selected item in an unfocused GtkTreeView? I don't like that gray color when the

Re: detect memory leak

2006-11-01 Thread Paul Davis
On Tue, 2006-10-31 at 09:31 -0800, [EMAIL PROTECTED] wrote: I've used Gtkmm2.8.3 version. The following code segment cause a huge memory leak. Can anyone please take a look and advice me what was wrong with it. My application is not a gtk window application but it just need to use the GDK

Re: GTK and dmalloc

2006-10-24 Thread Paul Davis
On Tue, 2006-10-24 at 07:08 -0700, Andre Messerschmidt wrote: Hi, has anybody tried to use dmalloc with GTK+ applications? When I add support for dmalloc in my code it will crash with an assertion from glib due to unaligned memory. The reason seems to be that dmalloc does not support

Re: Detecting a resize

2006-10-20 Thread Paul Davis
On Fri, 2006-10-20 at 22:24 +0200, Hans Oesterholt-Dijkema wrote: Well, I don't get configure events on: GtkHBox GtkEventBox GtkScrolledWindow GtkImage. So that doesn't work. correct. configure_events are sent only to Gtk::Window's ___

Re: Installation script for Linux.

2006-10-19 Thread Paul Davis
Using autotools suite:http://sources.redhat.com/autobook/Using scons:http://www.scons.org/doc/HTML/scons-user/book1.html There are others. I prefer scons. Other people prefer other tools.PaulOn 10/18/06, Magnus Myrefors [EMAIL PROTECTED] wrote: Hi I wonder where I can find (detailed)

Re: menu accel conflict with entry

2006-10-16 Thread Paul Davis
On Mon, 2006-10-16 at 08:26 -0700, David L wrote: There is no easy way I know of to make 'n' an accelerator and have it passed to an entry as well. You will probably have to add a modifier like Alt to fix the problem. Yea, I guess I'll just do that. I'm porting a tcl/tk application and

Re: GtkMenuItem style widget for normal use

2006-10-10 Thread Paul Davis
On Thu, 2006-10-05 at 00:00 +0200, Lukas Einkemmer wrote: Hi Why not just use a label or something (box{label/image} ?) and trap button-press-event on it (or on a parenting GtkEventBox) ? This is how it works now but I would like to have this hover effects the GtkMenuItem provides. enter

Re: [GTK] Suggestion: make panels graggable

2006-10-08 Thread Paul Davis
On Sun, 2006-10-08 at 02:31 -0400, Philip Ganchev wrote: Hi I have a suggestion for GTK. It seems that the idea has not been discussed before. I would like to have panels draggable, similar to Apple iTunes. That is, you click on the panel and drag the mouse to move the window. It

Re: Multi-threaded GUI

2006-10-05 Thread Paul Davis
Pthreads can't call directly into C++ code. It expects a function like: void* (fn*) ( void* arg ) ; Putting this in a class gives something like: void* (Class::fn*) (void* arg) Plus you're missing the this pointer and all sorts of other things. The way to get around this is to either use a

Re: packing of vertical and horizontal components.

2006-10-05 Thread Paul Davis
Take a look at Chapter 5 of the tutorial. http://www.gtk.org/tutorial/ Paul On 10/5/06, jaya raju [EMAIL PROTECTED] wrote: Hi I am sameer, working on gtk and mysql in linux.In my application i have to combine the components horizontally.1).How to divide my form into horizontal and vertical

Re: Multi-threaded GUI

2006-10-05 Thread Paul Davis
On Thu, 2006-10-05 at 01:58 -0500, Paul Davis wrote: void* jump_start( void* myclass_this_ptr ) { MyClass* obj = dynamic_cast MyClass* ( myclass_this_ptr ) ; this should be: static_castMyClass*, not dynamic_cast. dynamic_cast is used to traverse inheritance trees, not convert from one

Re: gtk layering

2006-10-04 Thread Paul Davis
On Wed, 2006-10-04 at 01:19 -0400, Bill Cunningham wrote: - Original Message - From: Matt Hoosier [EMAIL PROTECTED] To: Bill Cunningham [EMAIL PROTECTED] Cc: gtk-list@gnome.org Sent: Wednesday, October 04, 2006 1:12 AM Subject: Re: gtk layering Bill, glib and X11 are

Re: gtk layering

2006-10-04 Thread Paul Davis
On Wed, 2006-10-04 at 11:40 -0300, Leandro Fanzone wrote: Paul Davis wrote: Cairo is a general purpose drawing library that new versions of Gdk use to draw things in windows. Excuse me for my ignorance, but you mean that Cairo would be a replacement to the Gdk level, or it's a layer

Re: gtk layering

2006-10-04 Thread Paul Davis
On Wed, 2006-10-04 at 10:58 -0400, Bill Cunningham wrote: Sorry. You already said glib is for general programming. Alot to take in at once :) I'm mostly interested myself in window creation and events relating to that. If gtk+ has it's own would it work without X or is X needed indirectly?

Re: problem linking 'pango-1.14.4'

2006-10-03 Thread Paul Davis
Because, I think, libXrender is a widely used package affecting overall systemfunctioning. If I were to build libXrender, I would build the whole X to make sure theversions are compatible.I am not there yet. If you're installing libraries somewhere non-standard (ie, not in /usr/lib or

Re: problem linking 'pango-1.14.4'

2006-10-03 Thread Paul Davis
On 10/3/06, Sergei Steshenko [EMAIL PROTECTED] wrote: --- David Neèas (Yeti) [EMAIL PROTECTED] wrote: On Tue, Oct 03, 2006 at 08:10:49AM +0200, David Neèas (Yeti) wrote: libXrender is a small standalone library (tarball size ~230 kB). I forgot: and it should be the task of its configure to

Re: problem linking 'pango-1.14.4'

2006-10-02 Thread Paul Davis
Sergei,[snip]X_LIBS = -L/usr/lib -L/usr/X11R6/lib -lX11 .Please pay attention that '-L/usr/lib' comes before '-L/usr/X11R6/lib' -otherwise it doesn't work - I'm not quite sure why.Check out$ man g++$ man ldRead the sections on -L and -l flags. First of, The reason -L/usr/lib has to come first is

Re: problem linking 'pango-1.14.4'

2006-10-02 Thread Paul Davis
OK, I thought linker was smarter, that is, it would scan the libraries until it would resolve the symbols, or find it was impossible. I think, Verilog-XLlinker used to work that way - sorry, experience from the a wrong world :-).In this case, the linker is dumb, but really, it should be. If the

Re: problem linking 'pango-1.14.4'

2006-10-02 Thread Paul Davis
As I said, I have no intention yet to replace libXrender - it works fine for me.Doing some brief reading, it looks like the /usr/X11R6/lib/libXrender.a comes from the xrender-dev package. Which I assume you would have had to install if you're building cairo which is in your list. By my count,

Re: Copying GtkTreeStore rows

2006-09-28 Thread Paul Davis
Murray,The thought crossed my mind, but I've never used the DND api before, and at the time didn't feel like groking the gtk+ sources to figure it out.But it is worth checking into I think.Paul On 9/28/06, Murray Cumming [EMAIL PROTECTED] wrote: I'll reword this in case it helps to get a

Re: Widget reordering question

2006-09-28 Thread Paul Davis
On Thu, 2006-09-28 at 01:09 -0400, Sefer Tov wrote: Hi, I have a question regarding GTK's widget ordering control. I was wondering about a containter that carries multiple widgets in the same level in the hierarchy (GtkLayout is a good example for that) which then draws its children

Re: Fwd: How to autostart X11 from GTK application on Mac OS X

2006-09-28 Thread Paul Davis
On Thu, 2006-09-28 at 20:40 +0200, Hans Oesterholt-Dijkema wrote: Wasn't there a native port for Gtk on MacOS X? there is. its usability varies depending on your application. we (the ardour project) can't use it yet - it is still too unstable and there is missing functionality. i wish someone

Re: getting an image from gtkdrawingarea

2006-09-25 Thread Paul Davis
Michael, If you go the route of rendering to a pixmap, there's no real need to have more than one expose method. All you need to do is run your animation as you need it, then queue a redraw for the drawing area. Basically, rendering everyting to a pixmap gives you the ability to render to it as

Re: gtk

2006-09-25 Thread Paul Davis
] wrote: - Original Message -From: Paul Davis [EMAIL PROTECTED]To: Bill Cunningham [EMAIL PROTECTED]Sent: Monday, September 25, 2006 6:11 PMSubject: Re: gtk Bill, Make your libpng12.pc in /usr/lib/pkgconfig look like your libpng.pc ie, replace the damned @libdir@ with the same thing

Re: gtk

2006-09-25 Thread Paul Davis
-From: Paul Davis [EMAIL PROTECTED]To: Bill Cunningham [EMAIL PROTECTED]Sent: Monday, September 25, 2006 9:19 PMSubject: Re: gtk Yeah. That'd make a difference. Change the first line from: prefix=/usr to prefix=/usr/local That should be it. PaulOk Paul I put your script in place of my libpng.pc

Copying GtkTreeStore rows

2006-09-24 Thread Paul Davis
Hey, I've been working with Gtkmm to create a Gtk::TreeStore that is capable of re-parenting rows. As far as I can tell the C++ api (and the underlying C api) have no method for moving rows between different parent rows. Murray Cumming suggested I inquire here to see if I there's an easier way to

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