Re: jpeg and gtk

2006-09-24 Thread Paul Davis
Bill,When I get home tonight I'll try this out and see what happens on my system.I don't recall, but whats the reason you're trying to build gtk without libjpeg in the first place?And a few other questions: What version of gtk?What platform/distro?Have you tried the latest CVS version?I'll let you

Re: jpeg and gtk

2006-09-24 Thread Paul Davis
variables. (This is where I plug scons, the bettte build tool) Let me know if that doesn't work out for you.Hope that helps,PaulOn 9/24/06, Bill Cunningham [EMAIL PROTECTED] wrote:- Original Message -From: Paul Davis [EMAIL PROTECTED]To: gtk-list@gnome.orgSent: Sunday, September 24, 2006

Re: Gdk-Warning GdkWindow 0x12345678 unexpectedly destroyed

2006-09-22 Thread Paul Davis
On Wed, 2006-09-20 at 15:07 -0700, Ian King wrote: Hi, After running our gtk backended application for a day or two quite intensively, I experience strange behavior and notice the following message (where 12345678 is a valid message). Gdk-Warning GdkWindow 0x12345678 unexpectedly

Re: Dynamic menus question

2006-09-09 Thread Paul Davis
On Fri, 2006-09-08 at 23:10 -0400, Christian Convey wrote: I'm using pygtk. My top-level menubar has a menuitem named Scripts. Each time user clicks on Scripts, I want a chance to update the Scripts menuitem's submenu content before it's shown to the user. That way the submenu's content will

Re: in Gtk xlib problem

2006-09-09 Thread Paul Davis
On Sat, 2006-09-09 at 01:21 -0700, cnu wrote: i completed my GTk program. while running this project iam getting Xlib problem that is Xlib: unexpected async reply (sequence 0xdea)!. i does not have any idea on xlib can u please tell me when this type of errors occur and how we should

Re: change keybindings

2006-09-08 Thread Paul Davis
On Fri, 2006-09-08 at 10:39 +0200, Michael Wild wrote: hi all as the search index for this list seems to be unavailable and google didn't turn up anything usefull, i'm going to ask this here (although probably answered many times). how do i change the key bindings of menu items to keys

Re: how to include gtk header file in gtk.

2006-08-23 Thread Paul Davis
jayarajuc wrote: when compilingthe program with the following statement gcc base.c -o base 'pkg-config --cflags --libs gtk+-2.0' i am getting an error Your single quotes should be back ticks. ie: $ gcc test.c -o test `pkg-config --cflags --libs gtk+-2.0` The backtick (`) character is

Re: regarding Gtkwindows

2006-08-23 Thread Paul Davis
On Tue, 2006-08-22 at 22:57 -0700, cnu_sree wrote: how we can disable close button in windows title bar. you can't. that is the responsibility of the window manager. your app can, however, ask the WM not to show a close button: some_gtk_window.signal_realize().connect (bind

Re: GtkPrint PangoLayout extents

2006-08-17 Thread Paul Davis
On Thu, 2006-08-17 at 09:27 -0400, Francisco Moraes wrote: Hi, I am trying to use the new GtkPrint from GTK 2.10. I am creating a pango layout from the cairo reference, setting the font and text and calling pango_layout_get_pixel_extents. This seems to work well, except that the returned

Re: gtk drawing question

2006-08-10 Thread Paul Davis
On Thu, 2006-08-10 at 13:46 +, Doğacan Güney wrote: Hi, I am trying to write a program similar to the one at http://mirko.lilik.it/Ruby-GNOME2/moz-snapshooter.rb . As far as I understand it, net-stop only means that the loading of page is completed, it doesn't necessarily mean that

Re: What's worry with the entry widget? It makes my application so ugly!

2006-07-17 Thread Paul Davis
On Sun, 2006-07-16 at 13:17 +0200, Richard Boaz wrote: hi, if you want fine control over the size of your entry widgets, the following routines may be of help: gtk_entry_set_max_length() gtk_entry_set_width_chars() these are significant, but of likely equal importance is the way the

Re: What's worry with the entry widget? It makes my application so ugly!

2006-07-17 Thread Paul Davis
On Sun, 2006-07-16 at 13:17 +0200, Richard Boaz wrote: hi, if you want fine control over the size of your entry widgets, the following routines may be of help: gtk_entry_set_max_length() gtk_entry_set_width_chars() these are significant, but of likely equal importance is the way the

Re: GTK apps very slow to launch

2006-07-17 Thread Paul Davis
On Mon, 2006-07-17 at 16:38 -0400, Richard Querin wrote: I'm not entirely sure if this is the appropriate mailing list for this question (apologies if it's not): I've got a relatively new machine (P4-3Ghz w/ 1GB ram). It is running Ubuntu linux 6.06. All GTK based apps are taking a minimum

Re: chid windows on parent window

2006-07-13 Thread Paul Davis
On Wed, 2006-07-12 at 22:20 -0700, cnu_sree wrote: I have a set of GtkWindow-s and I would like to enclose them in a single frame . What widget can I use for the parent frame / window? It is important that the child windows will appear inside the parent window and one will not see them

Re: regarding CList

2006-07-13 Thread Paul Davis
On Thu, 2006-07-13 at 03:36 -0700, cnu_sree wrote: when we click button in the man window then on edialog should open in this we have textentry. if we enter data in this then the data will added to clist in the main window, please help. give me som e examples. CList is a deprecated widget.

Re: Draw order

2006-07-13 Thread Paul Davis
On Thu, 2006-07-13 at 15:00 +0200, Atanas Atanasov wrote: I would like to explicitly specify the drawing order inside a bin widget such as GtkFixed or something else similar? However the documentation does not specify anything particular. Once more I know that the windows style absolute

Re: slider/scrollbar with tics

2006-07-12 Thread Paul Davis
On Wed, 2006-07-12 at 07:50 -0600, Mark Leisher wrote: Sergei Steshenko wrote: Hello All, does gtk+ have anything similar to slider/scrollbar with tics ? GtkHRuler and GtkVRuler (subclasses of GtkRuler). Units are pixels, inches, or centimeters. and if someone needs it, i have

Re: threads and multiple g_main_loop

2006-07-12 Thread Paul Davis
On Mon, 2006-07-10 at 13:37 +0200, Michele O-Zone Pinassi wrote: Hi all, i've a multithreaded program and each of this threads have a g_main_loop. why? ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Does Gtk have a canas-like widget?

2006-07-03 Thread Paul Davis
On Mon, 2006-07-03 at 17:01 -0400, Christian Convey wrote: I'm coming from the Qt world, which has a Canvas / CanvasItem pair of classes. These let you draw arbitrary objects in a rectangular, and move them, do hit tests, etc. pretty easily. How do you guys get similar effects using Gtk?

Re: Draw directly to the screen

2006-06-29 Thread Paul Davis
On Thu, 2006-06-29 at 23:14 +0200, einKI.ml wrote: Hi My goal is to draw a line directly to the screen using gdk. To the screen means that it should be visible for the user over any other window. i suggest you look for the little app called gromit for ideas.

Re: gtk-list Digest, Vol 26, Issue 37

2006-06-27 Thread Paul Davis
On Tue, 2006-06-27 at 08:45 +0530, Lalit Kumar wrote: Hi All, I am facing problem with gdk_font_load method in my application. It returns NULL. I am using gtk-2.0 on Redhat Enterprise WS 4. Can anybody help me to resolve this proble? Help says that gdk_font_load is depricated. What is

Re: Scrolling performance

2006-06-21 Thread Paul Davis
On Tue, 2006-06-20 at 19:43 -0400, [EMAIL PROTECTED] wrote: Was this your Eclipse test, or gftp? What I'm seeing on the 'wiggle the dividing bar on gftp till it saturates the CPU' is this: (and yes, it's a generic GTK issue, not gftp, unless the 3 other apps I tested did the same wrong thing

Re: proggressbar..

2006-06-20 Thread Paul Davis
On Tue, 2006-06-20 at 14:15 +0530, Kalli Math wrote: how to design a progressbar, and add to my application window? it is customary to show some indication that you've attempted to find an answer to such simple, basic questions before asking a mailing list. www.gtk.org has lots of documentation

Re: xevent ?

2006-06-19 Thread Paul Davis
On Mon, 2006-06-19 at 14:33 +, Jens Madsen wrote: Hi, I am converting some old x-windows software to GTK. It contains a handler for receiving xevents from other applications. What sort of GTK api should I use for receiving/sending the x-events ? basically, you can't. GTK is a cross

Re: Gtk events ???

2006-06-17 Thread Paul Davis
On Wed, 2006-06-14 at 12:59 +0200, Papel wrote: Hello, From a few days ago, i have a lot of problems with gtk events (MainLoop). I have created a GTK frame into a main widget and a box into this frame. I have reparent this widget (window) to a XWindow. I would like to send events (XEvents)

Re: Problem in updating progress bar

2006-06-16 Thread Paul Davis
On Thu, 2006-06-15 at 18:07 +, DC A wrote: What could be the reason for using gtk_events_pending() and gtk_main_iteration() in the following code snippet: for( gflt=0; gflt=1; ){ gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); //update while

Re: Layered Drawing Areas

2006-06-15 Thread Paul Davis
On Thu, 2006-06-15 at 13:11 +0100, Richard Vaughan wrote: Hi, Has anyone managed to get multiple drawing areas to layer transparently ontop of eachother? I am trying to create an app that looks like it will need 3 or four layers of information drawn ontop of each other - but I want to be

Re: RE : Re: RE : Re: GtkFixed

2006-06-15 Thread Paul Davis
On Thu, 2006-06-15 at 17:11 +0200, Christophe HAUSER wrote: I think it will help :) But about the size request, I wonder if my code is right : GtkRequisition *req ; req-height = 300; req-width = 400; gtk_widget_size_request(GTK_WIDGET(Moz), req);

Re: Widget style property from RC file.

2006-06-08 Thread Paul Davis
On Thu, 2006-06-08 at 20:55 +0300, Tommi Komulainen wrote: On 6/8/06, Murray Cumming [EMAIL PROTECTED] wrote: Could someone point out what I'm doing wrong in the attached test case? It's meant to read a value from the rc file, to determine how a widget would be drawn, making the widget

Re: Widgets overlap

2006-05-30 Thread Paul Davis
On Tue, 2006-05-30 at 15:11 +0200, Christophe HAUSER wrote: Hello, I would like to overlap two Gtk widgets, but I can't find any suitable container. An idea ? libgnomecanvas - Gnome::Canvas despite the name, it has no more connection to GNOME than the rest of GTK (i.e. none) --p

Re: Button depressing

2006-05-26 Thread Paul Davis
On Fri, 2006-05-26 at 14:54 -0700, Joe Van Dyk wrote: Hi, I'm rewriting a Xlib graphical application in Gtk. There's four different states (run, hold, reset, shutdown) that the application be be in. The state that the application is in is determined by another application, but the user

Re: Button depressing

2006-05-26 Thread Paul Davis
On Fri, 2006-05-26 at 20:42 -0400, Tristan Van Berkom wrote: Note also you can use g_signal_handler_block_by_func() for this purpose. not from gtkmm, at least not very conveniently. --p ___ gtk-list mailing list gtk-list@gnome.org

Re: Thread Serial port

2006-05-23 Thread Paul Davis
Christophe ASSOUS wrote: Hello, I would want to create three thread, each reading and writing on a serial port at the same time. Is it possible ? Would you have an idea on how doing the management of the serial port by the thread? If you have already done it, I would be pleased you to

Re: prograss bar question

2006-05-22 Thread Paul Davis
On Tue, 2006-05-23 at 05:23 +0800, s88 wrote: Hi all: I'm writing a project using the gtk+-2.0, as I trying to use the progress bar to present the progress of my program. I have a question with the following code seg... Why the execution between my main program and update progress bar

Re: Fill with alpha value

2006-05-18 Thread Paul Davis
On Thu, 2006-05-18 at 02:21 -0700, rion10 wrote: hi all I use ::gdk_draw_rectangle(mPixmap, mGC, false, x, y, width, height) function to draw a rectangle which filled with fore color. Now the fill will be performed using the alpha value of the forecolor, does anyone know how could I do

Re: How to stack widgets or GtkFixed doesn't seem to work well for stacking

2006-05-15 Thread Paul Davis
On Sun, 2006-05-14 at 10:55 -0500, Matt Hoosier wrote: I'm a co-worker of the original poster on this thread. Part of the trouble with using a new dialog is that it allocates a new X11 window, which is not guaranteed to be alpha blended with the parent window. Platforms with a compositing X

Re: How to stack widgets or GtkFixed doesn't seem to work well for stacking

2006-05-15 Thread Paul Davis
On Sun, 2006-05-14 at 10:55 -0500, Matt Hoosier wrote: I'm a co-worker of the original poster on this thread. Part of the trouble with using a new dialog is that it allocates a new X11 window, which is not guaranteed to be alpha blended with the parent window. Platforms with a compositing X

Re: coverage of glib2.8.4 testsuite

2006-05-10 Thread Paul Davis
Sumit Kumar Jain writes: i was checking the coverage of glib 2.8.4 testsuite Is there a testsuite? You should tell the developers! and found that about 413 APIs are not called at all. As a quick question of interest, how is this calculated? I tried gcov once, but found it a bit

Re: Windows GTK hang 'not responding'

2006-05-02 Thread Paul Davis
On Tue, 2006-05-02 at 13:45 -0400, Derek Piper wrote: Hi, Thanks to all for the helpful hints, even with my vague descriptions. It turns out that it was a problem under Windows in getting the current time. Using timeGetTime() from the multimedia timers I wanted to convert it

Re: Cairo support

2006-05-01 Thread Paul Davis
On Thu, 2006-04-27 at 16:56 +0400, Andrew E. Makeev wrote: Slower... We used gtk-demo to test dlls. So, with freetype enabled, application was noticeable slower just at the beginning, but speed became normal with time. It is not important now, when we disabled freetype. we have noticed

Re: Efficient image drawing

2006-04-28 Thread Paul Davis
Paul Davis wrote: John Cupitt wrote: On 4/27/06, Paul Davis [EMAIL PROTECTED] wrote: I'm developing a video playback app and I'm a bit curious to see if there's a better way to render images to the screen. As it is now I'm using the Gtkmm objects and copying images from my non-standard

Re: Efficient image drawing

2006-04-28 Thread Paul Davis
Paul Davis wrote: Paul Davis wrote: John Cupitt wrote: On 4/27/06, Paul Davis [EMAIL PROTECTED] wrote: I'm developing a video playback app and I'm a bit curious to see if there's a better way to render images to the screen. As it is now I'm using the Gtkmm objects and copying images

Efficient image drawing

2006-04-27 Thread Paul Davis
gdk_draw_rgb_image_dithalign. Admittedly, this method is fairly fast. I'm getting between 15 and 20 fps on my development machine which is only a 1.4 GHz. I'm just wondering if anyone knew a more efficient method to get image data from disk to the screen. Any suggestions are welcome. Paul Davis

Re: Efficient image drawing

2006-04-27 Thread Paul Davis
Murray Cumming wrote: On Thu, 2006-04-27 at 05:20 -0500, Paul Davis wrote: Howdy, I'm developing a video playback app and I'm a bit curious to see if there's a better way to render images to the screen. As it is now I'm using the Gtkmm objects and copying images from my non-standard

Re: Efficient image drawing

2006-04-27 Thread Paul Davis
John Cupitt wrote: On 4/27/06, Paul Davis [EMAIL PROTECTED] wrote: I'm developing a video playback app and I'm a bit curious to see if there's a better way to render images to the screen. As it is now I'm using the Gtkmm objects and copying images from my non-standard format in a GdkPixbuf

Re: Looking for new customised GUI

2006-04-25 Thread Paul Davis
On Tue, 2006-04-25 at 10:33 +0100, Tim Edwards wrote: Hello, I work for a small British firm making post-production film special effects software. We are looking into a new user inferface to add to our software, which can be totally customised, and capable of running on both Windows and

Re: Small app for previewing gtk widgets

2006-04-15 Thread Paul Davis
On Sat, 2006-04-15 at 17:53 +0200, Luca Cavalli wrote: On Sat, 2006-04-15 at 17:34 +0200, Christophe Dehais wrote: hello everyone, It seem that there exists a small app that shows all the main GTK+ widgets in a single window, but I can't find it and none of my google searches helped.

Re: Testing widget visibility?

2006-04-14 Thread Paul Davis
On Fri, 2006-04-14 at 10:30 -0700, Ian Puleston wrote: Hi, Is there a simple way to test if a widget really is visible (i.e. the user can actually see it). GTK_WIDGET_VISIBLE returns true if the widget has been set to show, but that does not mean that it is actually visible - if it is in a

pango lies!

2006-04-10 Thread Paul Davis
so, for lots of obvious reasons, i am use pango_layout_get_pixel_size() to determine the display size of some text. i understand that a font specification like sans 8 uses points, and so pango needs to check the display resolution to determine how many pixels per inch and thus pixels per point.

Re: Arrow keys as accellerators?

2006-04-10 Thread Paul Davis
On Mon, 2006-04-10 at 17:59 -0700, Ian Puleston wrote: Hi, I've trying to install accelerator keys for a scrolled window to get the page-up, page-down, up-arrow and down-arrow keys to act as short-cuts for the vertical scroll bar. I install them as follows: accelGrp =

Re: wanna truncate part of figure...

2006-04-10 Thread Paul Davis
On Tue, 2006-04-11 at 08:04 +0530, sahlot arvind wrote: Hello all I have one button, one text entry and one plot area.. now what I want is that enter some integer number and click the button then that number of rectangles of equal size (20 * 20) in a row starting from (30,30) will be drawn on

Re: No Doubts

2006-04-07 Thread Paul Davis
On Fri, 2006-04-07 at 16:27 +0200, Robert Roebling wrote: or even write your own. The real task is to write an app which feels like a native app on the respective platforms. wxWidgets has been written with that idea in mind from the beginning. this is much harder than something that a

how to deliver enter to the right window

2006-04-05 Thread Paul Davis
I am adding support for various hardware controllers to Ardour (http://ardour.org/) and one of the nice features I've seen in some other systems is the ability to use buttons on the controller to be the equivalent of clicking on the OK button of a dialog that has popped up. The problem I face is

Re: Naming / Labelling Widgets

2006-04-05 Thread Paul Davis
On Wed, 2006-04-05 at 14:50 -0600, Richard Plana wrote: Hi, Is there a way to name / label and identify a widget? I'm pretty new to Gtk programming and right now, once I've created my GtkWidget hierarchy, there seems to be very little light support to traversing it. For certain, each widget

Re: Add signal handler for gtk_main_quit()

2006-04-02 Thread Paul Davis
On Sun, 2006-04-02 at 08:31 +0200, David Necas (Yeti) wrote: On Sat, Apr 01, 2006 at 08:33:30PM -0800, [EMAIL PROTECTED] wrote: How can I add a signal handler for gtk_main_quit()? gtk_main_quit() is not an action of any object, so how it could have a signal handler? I mean there are

Re: pango text size

2006-03-29 Thread Paul Davis
On Wed, 2006-03-29 at 16:30 +0200, Richard Boaz wrote: hi, i have no idea if i do this correctly myself (comments?), but the way i have achieved this is with the following code: int fontSIZE(char *str, gboolean type) type is not a boolean. PangoLayout *layout = pango_layout_new

Re: Refreshing the GUI in a CPU intensive application

2006-03-28 Thread Paul Davis
On Tue, 2006-03-28 at 19:49 +0200, Meli Vázquez wrote: Hi everyone. I'm working on an application which is CPU intensive. The GUI has scrollable window where I print detailed information about intermediate results while the application is running. The application takes about 2 minutes to

Re: Can I listen on a socket in a GTK application?

2006-03-25 Thread Paul Davis
On Sat, 2006-03-25 at 15:22 -0800, [EMAIL PROTECTED] wrote: Thanks. But there is something I still don't quite understand. a GTK application has a main loop listen for any GTK signals (for example to handle the close window event), right? But now if I make it to listen to an socket, how

Re: Where is g_type_init()?

2006-03-25 Thread Paul Davis
On Sun, 2006-03-26 at 02:28 +, DC A wrote: I'm trying to learn gtk+. And I have a question: According to api quote Before using any GType or GObject functions, g_type_init() must be called to initialize the type system. So when I create GtkButton with g_object_new, where is this

Re: Writing characters to the screen

2006-03-23 Thread Paul Davis
On Sun, 2006-03-05 at 17:14 -0800, Andy T. Beckenbach wrote: Hi all, In order to make the transition from Windows to Linux, I have to port one of my most important tools, a molecular sequence editor (DNA, RNA, and amino acid) that I have been developing and using for the past decade.

Re: Unable deselect a row in a GtkTreeView with the mouse and other questions

2006-03-23 Thread Paul Davis
On Thu, 2006-03-23 at 23:18 +0100, Zoltan Boszormenyi wrote: Hi, I wrote an application in GTK2 but it gives strange me behaviour. First, I cannot deselect a row in a GtkTreeView with the mouse, despite the GtkListStore behind it is GTK_SELECTION_SINGLE. From the documentation:

Re: Overlapping GdkWindow

2006-03-16 Thread Paul Davis
On Thu, 2006-03-16 at 15:24 +0100, Cédric Lucantis wrote: Hi! I would like to known how Gdk handles the exposition of overlapping windows or in other words: how does it 'knows' that a particular region of a window is obscured by another window and should not be redrawn? I had a look at the

keyhandling with focus widgets and modifier-less accelerators

2006-03-10 Thread Paul Davis
i think that the comment inside this function speaks for itself. posted just in case other people find it useful. of course, there is always the possibility that GTK should do something like this by default. bool key_press_focus_accelerator_handler (Gtk::Window window,

Re: keyhandling with focus widgets and modifier-less accelerators

2006-03-10 Thread Paul Davis
On Fri, 2006-03-10 at 15:33 +0100, David Necas (Yeti) wrote: On Fri, Mar 10, 2006 at 09:26:51AM -0500, Paul Davis wrote: i think that the comment inside this function speaks for itself. posted just in case other people find it useful. of course, there is always the possibility that GTK

Re: Not understanding the principles of drawing areas and primitives etc...

2006-03-09 Thread Paul Davis
On Thu, 2006-03-09 at 19:39 +0100, Leo - wrote: I want to be able to draw lines on a gtkDrawingArea, with a color the user selects (r,g,b), however I don't understand how I would do. The whole business with gdkGC's and gdcColors seems very alien. If somebody could point me to a tutorial (the

libgnomecanvas and pango-ft2

2006-02-13 Thread Paul Davis
the text item of libgnomecanvas has some tight linkage to the pango FT2 backend as a result of calling pango_ft2_get_context(). is there a technical reason that this was used rather than gdk_get_pango_context_for_screen()? as it, it makes it impossible to use the canvas when pango is not

Re: Disable mnemonics in UIManager

2006-02-03 Thread Paul Davis
It's possible to disable the automatic mnemonic conversion in the UIManager/Action? Otherwise it's not possible to put text with an undersocre into the menu. I searched in the gtkmm and gtk documentation but don't found anything related to the mnemonic conversion in UIManager/Action.

Re: complex hotkey

2006-02-01 Thread Paul Davis
On Wed, 2006-02-01 at 12:41 +0100, [EMAIL PROTECTED] wrote: hi all, some KDE applications have some complex hotkey (like Emacs:) for example, `control +meta +K +E', `control +meta +X +F', etc. Is there any way to implement this feature for a GTK application? depends on what you mean by

Re: unworkable selection model for treeview

2006-01-30 Thread Paul Davis
On Mon, 2006-01-30 at 20:42 +, Chris Vine wrote: On Saturday 28 January 2006 15:49, Paul Davis wrote: AFAICT, the treeview widget will change its selection at button press, with no delay to allow for a drag operation. i cannot see how to combine this model with the desire to select

unworkable selection model for treeview

2006-01-28 Thread Paul Davis
AFAICT, the treeview widget will change its selection at button press, with no delay to allow for a drag operation. i cannot see how to combine this model with the desire to select multiple items (in one or several steps), then click on one of the selected items to drag the entire set of selected

Re: Cannot download

2006-01-27 Thread Paul Davis
On Fri, 2006-01-27 at 12:25 +0200, Sakari Aaltonen wrote: Is it me is or is it the files? I have been trying to download gtk+ for a day or so, but every file I ftp from ftp.gtk.org turns out to be bad: its probably you, make sure you enable binary mode for the file transfer.

Re: glib / String handling difficult

2006-01-11 Thread Paul Davis
On Wed, 2006-01-11 at 15:31 +0200, Juhana Sadeharju wrote: From: Robert Thorpe [EMAIL PROTECTED] Why is this needed in a graphical toolkit library? Surely it's more appropriate to do it outside of GTK+. glib *is* outside of gtk...? completely separate library. GTK requires glib; glib

Re: Rich text on a GnomeCanvas

2005-12-28 Thread Paul Davis
On Mon, 2005-12-26 at 00:30 -0500, Scott Robert Ladd wrote: I'm working on an application using GTK+ 2.8.9, and I need to display high-quality text on an anti-aliased GnomeCanvas. Since GnomeCanvasRichText does work on an AA canvas, what are my options? Essentially, I'm annotating a

the container/table/scrollbar/adjustment problem to end all such problems

2005-12-23 Thread Paul Davis
OK, I've had enough of trying to fix this problem over the years. Its time to ask the rest of the experts how they would solve this. The problem at hand is layed out like this: XXX

Re: the container/table/scrollbar/adjustment problem to end all such problems

2005-12-23 Thread Paul Davis
On Fri, 2005-12-23 at 19:54 -0500, Paul Davis wrote: OK, I've had enough of trying to fix this problem over the years. Its time to ask the rest of the experts how they would solve this. i also know that an excellent way to solve problems is to draft an exasperated email to this list and wait

Re: gtk_timeout_add problem

2005-12-15 Thread Paul Davis
On Thu, 2005-12-15 at 09:24 +0100, [EMAIL PROTECTED] wrote: 2005/12/15, Paul Davis [EMAIL PROTECTED]: On Wed, 2005-12-14 at 23:29 +0100, [EMAIL PROTECTED] wrote: Hi, I can't compile using gtk_timeout_add (or g_timeout_add, the problem is the same...). I'm using C++... The error

Re: gtk_timeout_add problem

2005-12-15 Thread Paul Davis
why are you not using gtkmm ? this allows you to use a fully C++ idiom (or several of them) with GTK. its very, very, very nice. and where its not nice, that's GTK's fault :) --p I'm using gtkmm, but I couldn't find the same function in gtkmm, so I found that in gtk. Theres is a

Re: gtk_timeout_add problem

2005-12-14 Thread Paul Davis
On Wed, 2005-12-14 at 23:29 +0100, [EMAIL PROTECTED] wrote: Hi, I can't compile using gtk_timeout_add (or g_timeout_add, the problem is the same...). I'm using C++... The error is: In member function `virtual void dialogAcquisizione::on_okbutton2_clicked()': error: argument of type `gint

Re: Find the font of a Widget

2005-12-13 Thread Paul Davis
GtkStyle* style = gtk_widget_get_style(widget); PangoFontDescription* font = style-font; or something like that. i use gtkmm (C++) note that styles are not necessarily set up until after a widget has been realized, because they can be affected by the screen the widget is displayed on. --p

Re: How to add callback to tell owner something

2005-11-30 Thread Paul Davis
On Wed, 2005-11-30 at 10:38 -0500, Tristan Van Berkom wrote: rion10 (sent by Nabble.com) wrote: How to tell the owner that something has done at one function in my class? Just like as following: After reading your mail, I think you are looking for GSignal documentation... here it is:

Re: gtk_widget_shape_combine_mask and gdk_window_set_child_shapes

2005-11-29 Thread Paul Davis
On Tue, 2005-11-29 at 13:32 -0700, Andrew Shafer wrote: Any one? Any one? Bueller? the wheelbarrow demo in gtkdemo should help. ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Asking questions (Was: Re: GTK_BUTTON GTK_Style)

2005-11-17 Thread Paul Davis
On Thu, 2005-11-17 at 02:09 -0800, ibrar ahmed wrote: hello all, i want to create my own widgets in using gtk. i have jus started this library for creating the GUI jus like window. so whats up for starting to do this?As before i did't work on gtk so its also new for me. 1) it is unhelpful and

Re: Signals documentation

2005-11-15 Thread Paul Davis
On Tue, 2005-11-15 at 11:11 +0100, Jose Hevia wrote: Does anyone knows were is documentation about specific Gobject signals:? in the docs for the subclass that they are associated with. the ones listed all belong to GtkWidget. ___ gtk-list mailing

what is the replacement for gtk_range_default_vmotion?

2005-11-11 Thread Paul Davis
i can see it was marked obsolete in the move from gtk1 to gtk2, but what is the replacement for its functionality? --p ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

treeview selection+drag model is not HIG compliant

2005-10-21 Thread Paul Davis
take a treeview with some displayed rows. click on a row. it is selected. shift-click on some other row. now several rows are selected (assuming MULTIPLE was chosen). now press but do not release the mouse on one of the selected rows. the selection changes to just that row. this doesn't follow

so, is this claim about pango still true? or does nobody actually care?

2005-10-13 Thread Paul Davis
We are about 60% of the way through porting Ardour, probably the premier digital audio workstation for Linux (winner of Linux Journal's Best Project prize for 2005, and other awards) from GTK1 to GTK2. Today, someone sent me this email: -- sorry to bug you directly, but I caught a post of

Re: Repeated timeouts period

2005-10-12 Thread Paul Davis
On Wed, 2005-10-12 at 21:02 +0200, Nicolas George wrote: The behavior of GLib timeouts is, I believe somewhat unpractical. I am talking about, quoting the doc, the fact that they [do] not try to 'catch up' time lost in delays. trying to get accurate timers within a GUI event loop is like

Re: Repeated timeouts period

2005-10-12 Thread Paul Davis
To answer Greg Breland's question: here is the typical piece of code one would use to display a second-accurate clock: GtkLabel *clock_label; GTimer *clock_timer; ... clock_label = gtk_label_new(0); /* add it somewhere in the GUI */ clock_timer = g_timer_new();

Re: njamd compatible with gtk 2.2.1?

2005-09-30 Thread Paul Davis
On Fri, 2005-09-30 at 12:55 -0400, Peter Van Wieren wrote: Ben, Thanks. My code cannot have a buffer overrun, for it was simply hello.c from the tutorial page. An even more simple version that will still segfault is as follows. Can it be that -lnjamd causes a segfault, as one could

Re: Assignment Operator in GtkWidget

2005-09-28 Thread Paul Davis
On Wed, 2005-09-28 at 16:34 -0600, [EMAIL PROTECTED] wrote: In the constructor I assigned values to the two variables, namespace jme{ class Data{ public: std::string str; GtkWidget* obj; public: Data(){str = ; obj = gtk_window_new(GTK_WINDOW_TOPLEVEL);} void

freeze/thaw API for treeviews?

2005-09-27 Thread Paul Davis
the old CTree/CList had a nice freeze/thaw API to avoid the widget recomputing stuff while adding rows. is there something comparable for TreeView, or does the Right Thing Just Happen ? --p ___ gtk-list mailing list gtk-list@gnome.org

Re: Gtk screen refresh

2005-08-08 Thread Paul Davis
On Mon, 2005-08-08 at 14:37 +0200, Jirka Pirko wrote: it dont work - im calling gtk_main_iteration_do from different pthread than where is running gtk_main... but it makes sense... just for sure im not doing anything wrong... you're probably doing everything wrong then. please read the FAQ

Re: GTK+ 2 speed

2005-07-29 Thread Paul Davis
On Fri, 2005-07-29 at 19:36 +0100, Robert Thorpe wrote: On Windows there are two similar operations, using Alt-tab to move between applications and pressing the desktop button which minimizes all windows. On my machine both of these are much faster, taking much less than a second. this

Re: Tree Store for layers

2005-07-28 Thread Paul Davis
On Tue, 2005-07-26 at 14:43 +0100, David Conley (FRD) wrote: I'm hoping to use a tree store/view to create a layer typer system where the higher up the tree an object is, the closer to the front of the screen an object would be. Imagine the layers in Photoshop or GIMP for an idea what I

Re: Handling Qt/KDE widgets within Gtk+ message loop

2005-06-16 Thread Paul Davis
The whole X freezes, there's only a static picture and a responsive mouse cursor. Clicking anywhere does nothing. The keyboard is lost too, but I still can switch to text console. this sounds as if you are stuck in the middle of an implicit pointer grab, for example, a button press event

Re: Warning when drawing on a Gnome canvas

2005-06-14 Thread Paul Davis
The messages are from libart. (art_svp_intersect.c, function art_svp_intersect_add_horiz). Thank you for your answer. I don't understand why this occurs. Have you had any issue with that before ? Yes, I had this message at once, probably about two years ago, but I do

Re: Anti-Aliased 2D drawing

2005-05-16 Thread Paul Davis
I'm working on a program that draws relatively simple diagrams -- involving lines of different styles and a few arcs -- on top of a base PNG image. Doing this using the standard GTK facilities isn't difficult, but the result is... well, rather rough (jagged, actually). As I understand it, Gtk+

Re: how to get rid of mouse-over button color?

2005-05-02 Thread Paul Davis
I want the mouse-over color to go away so that I just have a normal and an active color for the buttons. Is there an easy way to do this? I'm thinking about programmatically moving the mouse pointer to some neutral location after each toggle button selection. (don't know how to do that

Re: how to get rid of mouse-over button color?

2005-05-02 Thread Paul Davis
A custom theme could do whatever it wants ... both pieces of information are passed to it. state_type and shadow_type. OK, so it can be fixed by a custom theme, but not just by a custom RC file, and therefore still remains a problem for almost all apps. I don't of many (any?) apps that ship with

Re: antialiased drawing primitives (lines, arcs) possible ?

2005-04-13 Thread Paul Davis
i wonder if it is possible to draw antialiased lines and arcs ? (to drawning area or directly to a window or whatever) either use the GnomeCanvas (which, contrary to its name, has *zero* GNOME dependencies other than those required by GTK+ itself), or figure out how to use libart_lgpl with a

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