Re: An alternative to gdk-pixbuf

2018-09-11 Thread John Cupitt via gtk-devel-list
On Tue, 11 Sep 2018 at 03:11, Magnus Bergman wrote: > On Tue, 11 Sep 2018 00:07:27 +0200 > Bastien Nocera wrote: > > No, it really isn't: > > https://www.cvedetails.com/vulnerability-list/vendor_id-1749/Imagemagick.html > > > > We want to have less CVEs, not more. > > I see what you mean. A few

Re: An alternative to gdk-pixbuf

2018-09-10 Thread John Cupitt via gtk-devel-list
On Mon, 10 Sep 2018 at 08:02, Debarshi Ray wrote: > > too with the right plugin (probably using GEGL in that case). But I > > think the problem with large images (say 12000x12000 or so) is giving > > it to the application as a pixmap. From my own tests it seams it's fine > > at least as long as

Re: An alternative to gdk-pixbuf

2018-09-06 Thread John Cupitt via gtk-devel-list
On Thu, 6 Sep 2018 at 11:40, Emmanuele Bassi via gtk-devel-list wrote: > On Wed, 5 Sep 2018 at 19:25, Magnus Bergman > wrote: >> Gegl is great for image editing. But not as much for simple viewing. > > This is debatable. If I'm viewing a 4000x4000 RGB image on a hidpi display > I'm already

Re: BGR vs. RGB in GTK/GDK

2007-02-20 Thread John Cupitt
Hi Mike, On 2/21/07, Mike Melanson [EMAIL PROTECTED] wrote: facilities. I'm trying to convert it to use GTK/GDK. This app has always rendered bitmaps in blue-green-red (BGR) pixel order which, per my understanding, is the native order that the hardware expects. Now, I am using

Re: Non-Blocking GUI developement

2007-01-28 Thread John Cupitt
Hi Melvin, On 1/27/07, Melvin Newman [EMAIL PROTECTED] wrote: Here is another noob question, how bad is it to use g_idle_add() everywhere? Basically I have created multiple functions to update different parts of the gui from my main worker thread, via the g_idle_add() function. You've still

Re: Non-Blocking GUI developement

2007-01-27 Thread John Cupitt
On 1/27/07, Melvin Newman [EMAIL PROTECTED] wrote: I am now trying to use g_idle_add(), however I cant seem to figure out how to pass data into the function that g_idle_add calls. g_idle_add(update_server_version,data.data); above is the call I am making, data.data is defined as char *

Re: Non-Blocking GUI developement

2007-01-24 Thread John Cupitt
On 1/24/07, Melvin Newman [EMAIL PROTECTED] wrote: The problem that I am running into is that I cant get the gui to update in a timely manner (a problem that allot of us GTK noobs seem to have, but one which no one answers clearly). I've written a large (100,000) line threaded GTK application.

Re: GtkDrawingArea mouse events

2007-01-17 Thread John Cupitt
On 1/17/07, Jim George [EMAIL PROTECTED] wrote: 1) I am currently trapping the configure-event signal and resizing the array there. Is this the best approach? In my past life, I used to Yes, this is correct. 2) I had a bug in my program in which I would occasionally get a mouse cursor

Re: Simple question.

2007-01-15 Thread John Cupitt
On 1/15/07, LWATCDR [EMAIL PROTECTED] wrote: Anyone have an example of a make file for a GTK application? Just a simple one for a helloworld would do. If it's a single file, you can just do: gcc hello.c -o hello `pkg-config gtk+-2.0 --cflags --libs` Put that in a comment on the first line

Re: Errors in configure - GTK+

2007-01-12 Thread John Cupitt
Hi Jorge, First, are you sure you need to install GTK? Ubuntu Dapper comes with gtk 2.10, which should be OK for almost everyone. Why are you trying to build GTK yourself? On 1/10/07, Jorge [EMAIL PROTECTED] wrote: I have Ubuntu Dapper. 1) I have installed GLIB 2.12.7, but: [EMAIL

Re: Emulating MDI

2007-01-12 Thread John Cupitt
On 1/12/07, Robert Pearce [EMAIL PROTECTED] wrote: So, is there a convenient way I can re-create that look in a GTK app? There's no corresponding standard widgets - the only standard widget No, there's not really an equivalent. This is usually justified on usability grounds, plus the difficulty

Re: Large strings in GtkTextView

2007-01-11 Thread John Cupitt
On 1/11/07, Micah Carrick [EMAIL PROTECTED] wrote: Actually, that's interesting. I was going to write a test program, however, just when creating the test text file, it gets funky in gedit (when word wrapping is off). As soon as I insert the 4098th character, the line disappears and reappears

Re: GUI window creation from a thread

2007-01-08 Thread John Cupitt
On 1/8/07, Preeti Joshi [EMAIL PROTECTED] wrote: Is it not possible to create a GUI window from a thread? I created a thread There are several FAQs about this: http://www.gtk.org/faq/#AEN482 And some others, read down a bit. In my opinion, it's best not to do this, but instead to only call

Re: Debugging application

2006-12-18 Thread John Cupitt
On 12/18/06, Fernando ApesteguĂ­a [EMAIL PROTECTED] wrote: executing... There are no problems (no errors or warnings) during compilation and valgrind, with: -v --leak-check=full doesn't show any problems of my code. OK, after the application reached 7.3 MB it went down (according to

Re: How to set position for widgets

2006-12-15 Thread John Cupitt
On 12/15/06, Shyjumon N. [EMAIL PROTECTED] wrote: Can any body tell me how i can put my widgets in different co-ordinates. Like, i have one box (which contain two buttons) and say two images and i put in a gtkwindow and what i am looking for is say buuton1 in co-ordinates x=30,y=40.

Re: A question about threads

2006-12-11 Thread John Cupitt
On 12/11/06, Christopher Bland [EMAIL PROTECTED] wrote: I had the same requirement. I also needed to write to a status bar from my other threads. Based on feedback from this mailing list here is what worked perfectly for me: This is a good solution, but will not be portable to non-unix

Re: Adding custom buttons to a scrolled window

2006-12-06 Thread John Cupitt
On 12/6/06, Michael 'Mickey' Lauer [EMAIL PROTECTED] wrote: I need to implement a version of a GtkScrolledWindow that features a custom button as part of the scrollbar. Please find a Your graphic got lost (put it on a webpage and post a link), but the usual answer to these questions is to use a

Re: Re[2]: Adding custom buttons to a scrolled window

2006-12-06 Thread John Cupitt
On 12/6/06, Michael 'Mickey' Lauer [EMAIL PROTECTED] wrote: Put two scrollbars plus a viewport in a table and add any other buttons you need. Make your work area the child of the viewport. Connect the scrollbar adjustments to the viewport. Will that do everything that embedding a child

Re: Adding custom buttons to a scrolled window

2006-12-06 Thread John Cupitt
On 12/6/06, Michael 'Mickey' Lauer [EMAIL PROTECTED] wrote: Basically what I'd need is to get a GtkScrolledWindow but make it talk to my scrollbars, not to its. That's (almost) exactly what happens if you put two scrollbars and a viewport into a table. I see. Last question then... what

Re: has anyone valgrind'd gtk?

2006-12-06 Thread John Cupitt
On 12/6/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: The reality is that gtk is leaking. It could well be, but I'd be a bit surprised. Every few months of hacking I try to take the time to get my project to valgrind cleanly. It's about 100,000 lines of C in the UI part. The only leaks I see in

Re: Finding Version of GTK installed

2006-12-04 Thread John Cupitt
On 12/4/06, David Vandepol [EMAIL PROTECTED] wrote: mailing list a while ago, however I've come across another issue. I can determine if GTK is installed on the computer, however I'm having trouble determining the version of GTK that is installed. When GTK is installed There are a number of

Re: has anyone valgrind'd gtk?

2006-12-03 Thread John Cupitt
On 12/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: i have an application, and i'm noticing some leaks deep within gtk's libraries. GTK doesn't free memory that is just allocated once (usually on startup). It should free memory that gets allocated for widgets though. So you should not see

Re: What is the maximum length of a g_slist?

2006-11-30 Thread John Cupitt
A gslist can be any length, but you're right, g_slist_length() will return an incorrect result over 4g items. You can't hit that limit on a 32-bit machine, but you could on a 64-bit. You'd need 2 pointers plus a data item (say 4 bytes for the data), so 20 bytes per entry. 20 * 2 ** 32 is about 80

Re: Mutex or atomic operations for multithread app?

2006-11-11 Thread John Cupitt
On 11/11/06, Tomasz Jankowski [EMAIL PROTECTED] wrote: I looking for someone, who will say if my idea is bad or good ;) I have an object based on GObject, which have quite many int variables. This object is used by many threads and i'm wondering if I really need to use mutex when I want to

Re: gtk application startup time

2006-11-08 Thread John Cupitt
On 11/8/06, Shyjumon N. [EMAIL PROTECTED] wrote: I was tring to find the start up time of my gtk application i am getting negative time. i am putting the code here. please comment on it... You can use g_timer for this. For example: int main( int argc, char **argv ) { GTimer

Re: Question about multithreads

2006-11-01 Thread John Cupitt
On 10/31/06, John Cupitt [EMAIL PROTECTED] wrote: If the value doesn't change, or you don't mind if changes are not seen by other threads for a while, then it's OK to skip the mutex. I forgot to say: http://developer.gnome.org/doc/API/2.0/glib/glib-Atomic-Operations.html Can save you

Re: Question about multithreads

2006-10-31 Thread John Cupitt
On 10/31/06, Tomasz Jankowski [EMAIL PROTECTED] wrote: wrote works fine). However I'm not sure if I should always lock and unlock mutex when I'm accesing some global data from thread. I know, that i'm If the value is changing and the changes are being used to signal between threads, then you

Re: Launch the default html browser

2006-10-13 Thread John Cupitt
On 10/13/06, Gan3sh [EMAIL PROTECTED] wrote: With Gtk+, is there any way to launch the default html browser independently of the operating system ? Sadly not (as far as I know). I have a thing with ifdefs for *nix, mac and win32 in my app:

Re: Problem with ScrolledWindow in Windows

2006-10-13 Thread John Cupitt
On 10/13/06, Ari Jolma [EMAIL PROTECTED] wrote: which work in Linux but there's a nagging non-fatal problem in Windows. The problem has to do with showing an image in ScrolledWindow. [snip] not show it, and the EventBox also seems to stop receiving events. These occasions are related to the

Re: Problem with ScrolledWindow in Windows

2006-10-13 Thread John Cupitt
Hi again Ari, On 10/13/06, Ari Jolma [EMAIL PROTECTED] wrote: Maybe my explanation was not very good. The virtual window is really virtual in the sense that I always create an image, which is just the size of the actual visible window. The rest is just imaginary space. Thus the size is not an

Re: Problem with ScrolledWindow in Windows

2006-10-13 Thread John Cupitt
On 10/13/06, Ari Jolma [EMAIL PROTECTED] wrote: Ok, I misunderstood you. The coordinates that I pass to set_size_request may be bigger than that but the problem occurs before that. Maybe I'm not really understanding what you mean by expose handler? I just checked, I get breakage if either

Re: how to get a list of signal/property of the widget ?

2006-10-13 Thread John Cupitt
On 10/13/06, KC. Gmail [EMAIL PROTECTED] wrote: Is it possible to get a list of signal or property of a given widget except looking for API document ? Does such API exist ? I believe that will be useful for application such as glade-2. Sure. For example, see g_object_class_list_properties ():

Re: problem when Profiling Gtk+............plz help

2006-10-06 Thread John Cupitt
On 10/5/06, Sharma Nitin-A21652 [EMAIL PROTECTED] wrote: Can someone please help with the tool that is in use in Gtk+ development community for profiling towards identifying functions that take most of the time in performance? A lot of people use sysprof:

Re: Obtaining area needed to render a text

2006-10-04 Thread John Cupitt
On 10/4/06, Gustavo Cipriano Mota Sousa [EMAIL PROTECTED] wrote: I am developing an application where I need to render some objects in a DrawingArea, among with them are some text labels. I'd like to know in advance how much area (width/height) would be needed to render a text. Also, I am

Re: convert an int variable into a gdouble

2006-09-29 Thread John Cupitt
On 9/29/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: i'm building an application,and i need to convert an int variable into a gdouble to can use some plotting functions. I don't know how to do it!! You can just cast: int i = 42; gdouble gd; gd = i; Unless I'm missing something?

Re: Dialogue Screen Placement

2006-09-27 Thread John Cupitt
On 9/27/06, Richard Boaz [EMAIL PROTECTED] wrote: Below is a small program demonstrating my problem. Here's a working version of your prog. The main problem was that you were setting the position hint after showing the dialog. So when the WM was selecting a position, there was no position hint

Re: Dialogue Screen Placement

2006-09-26 Thread John Cupitt
On 9/26/06, Richard Boaz [EMAIL PROTECTED] wrote: I have attempted to use gtk_window_set_position() on my dialogues to be centered on the parent (GTK_WIN_POS_CENTER_ON_PARENT), but to no avail. This works fine for me on Gnome, win32 and KDE. Which window manager are you using? If it's a

Re: Re: Internationalization of GTK Apps (change language)

2006-09-25 Thread John Cupitt
On 9/25/06, Andreas Stricker [EMAIL PROTECTED] wrote: * There is a good howto somewhere, but I can't find it anymore I found these two helpful: http://www.gnome.org/~malcolm/i18n http://developer.gnome.org/doc/tutorials/gnome-i18n/developer.html Don't know if either of them is the one you

Re: why???

2006-09-08 Thread John Cupitt
Hi, On 9/8/06, dagang001 [EMAIL PROTECTED] wrote: for ( i=0 ;i4 ;i++) { fred-name = ming[i]; fred-shoe_size = i+10; fred-age=60+i; list = g_list_append(list, fred); } You need to make a new Person each time. At the moment you are making a single

Re: GTK+ windows installer confusion

2006-09-04 Thread John Cupitt
On 9/2/06, Timothy M. Shead [EMAIL PROTECTED] wrote: compatibility issues with other GTK binaries. My impression from this list is that the official recommendation is for applications to each include their own copy of the GTK binaries and not rely on a shared GTK installation. I do this with

Re: Where are the pixels ?

2006-08-09 Thread John Cupitt
On 8/7/06, Christophe Dehais [EMAIL PROTECTED] wrote: What is not clear to me is whether or not a GdkWindow contains the real pixels in some way. Let's assume this scenario: a window is created and its size is computed through size negociation, then a pixel buffer containing all pixels for the

Re: Re: Gtk apps have black menu background

2006-07-25 Thread John Cupitt
On 7/24/06, Brian [EMAIL PROTECTED] wrote: All of my gtk applications have this problem. The menu list has a black background. Dragging the cursor over them reveals the menu text just enough to read the list. All of the programs work ok. I would try removing gtk-qt-engine:

Re: Multi-threaded gtk app very very slow

2006-07-18 Thread John Cupitt
On 7/17/06, Mark Richardson [EMAIL PROTECTED] wrote: I ran the debugger and came up with this (for the primary gtk thread - all other threads aren't blocking). ?? _XRead() from libX11.so.6 _XReply() from libX11.so.6 _XIDHandler() from libX11.so.6 XCreatePixmap() from

Re: Emitting signals

2006-07-14 Thread John Cupitt
On 7/14/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am creating a application where there is a text editor and a button. On clicking the button, the backspace signal has to triggered for text editor so that it deletes the last character. Can any one tell me how I can emit signal from one

Re: Draw order

2006-07-13 Thread John Cupitt
On 7/13/06, Atanas Atanasov [EMAIL PROTECTED] 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 positioning

Re: Code migration.

2006-07-09 Thread John Cupitt
Hi Bill, It sounds like you have some problems with your installation. I'd try to get a gtk2 hello world program going first. On 7/9/06, William D. Tallman [EMAIL PROTECTED] wrote: 1. Code written for Gtk+-1.2 will, or will not, compile and run correctly under Gtk-2.0. y/nt.. No, some

Re: Why ? When segmentation fault,there has no core file

2006-07-07 Thread John Cupitt
On 7/7/06, chao yeaj [EMAIL PROTECTED] wrote: The problem is : when segmentation fault ,there has nocore file if the has a core file ,i can debug it, but there has nocore file You probably have coredumps turned off. Try ulimit -c unlimited before running your program.

Re: Scrolling performance

2006-07-06 Thread John Cupitt
On 7/6/06, Michael Ekstrand [EMAIL PROTECTED] wrote: I'm seeing these issues, and I'm fed up of them not being fixed. I'd like to know what tools the GTK developers use for measuring performance changes, and how I can cut out Cairo in order to get a grip on exactly what is going on.

Re: Re: GtkFixed child control resizing

2006-07-05 Thread John Cupitt
On 7/5/06, Atanas Atanasov [EMAIL PROTECTED] wrote: Thanks. The size request worked. However there is an issue. Say I create my label to cover all the GtkFixed and set its text justification to left. What I expect to see is something like: The justification setting controls the way line

Re: Do GTKhave tabbed pane or multi-page or such?

2006-07-05 Thread John Cupitt
On 7/5/06, justforfun [EMAIL PROTECTED] wrote: I have checked the tutorial on gtk.org, could not find abbed pane or multi-page or such. Sounds like you need gtknotebook: http://developer.gnome.org/doc/API/2.0/gtk/GtkNotebook.html ___

Re: Apple Mighty Mouse

2006-07-04 Thread John Cupitt
Apple's X server doesn't seem to pass the events on, or at least I was unable to find them. You just get up/down scroll. Maybe the OS X native backend is smarter, but I've not tried it. On 7/4/06, Ben Powers [EMAIL PROTECTED] wrote: Is there support for 4-way scrolling IE apple mighty mouse?

Re: GValue won't init inside hidden functions

2006-06-28 Thread John Cupitt
On 6/28/06, Philip Kovacs [EMAIL PROTECTED] wrote: I have noticed that issuing a g_value_init() on a GValue produces the error: GLib-GObject-WARNING **: gvalue.c:89: cannot initialize GValue with type `gpointer', the value has already been initialized as `(null)' whenever the function does

Re: Scrolling performance

2006-06-26 Thread John Cupitt
On 6/25/06, Clemens Eisserer [EMAIL PROTECTED] wrote: When I maximize the window and resize the panes I get very slow resizing, however when setting all involved widgets unbuffered resizing is fast (but painting is done with artifacts). I think the artifacts are because, with double-buffering

Re: GTK file open dialog usability...

2006-06-25 Thread John Cupitt
There are some useful improvements in HEAD but not in gtk stable yet: 1) There's now a visible text box you can type to in the Open File dialog http://bugzilla.gnome.org/show_bug.cgi?id=136541 2) It's now aynchronous, ie. it will load the icons, file list, etc. in the background. No more

Re: Scrolling performance

2006-06-25 Thread John Cupitt
On 6/24/06, Clemens Eisserer [EMAIL PROTECTED] wrote: [quote]So I guess I didn't reproduce your problem. In my case, the reason so much time is spent in software solid fills and copies is that GTK seems to create and destroy pixmaps at a fantastic rate. In fact, it creates and destroys a

Re: Multi monitor environment

2006-06-23 Thread John Cupitt
On 6/23/06, 3saul [EMAIL PROTECTED] wrote: How do I find out which monitor my application is on in a multiple monitor environment? There's GdkScreen which is supposed to have this information, at least in a traditional X multihead setup:

Re: Multi monitor environment

2006-06-23 Thread John Cupitt
On 6/23/06, John Cupitt [EMAIL PROTECTED] wrote: There's GdkScreen which is supposed to have this information, at least in a traditional X multihead setup: http://developer.gnome.org/doc/API/2.0/gdk/GdkScreen.html Forgot, and here's the get/set for GtkWindow: http://developer.gnome.org/doc

Re: Scrolling performance

2006-06-21 Thread John Cupitt
On 6/21/06, Clemens Eisserer [EMAIL PROTECTED] wrote: You were right, novell installed by default a gtk-qt-engine package, that was also the reason why I was not able to get rid of this one and only theme. Now I am using the default theme and its _way_ better, I see about twice as much

Re: Scrolling performance

2006-06-21 Thread John Cupitt
On 6/21/06, Clemens Eisserer [EMAIL PROTECTED] wrote: You were right, novell installed by default a gtk-qt-engine package, that was also the reason why I was not able to get rid of this one and only theme. Now I am using the default theme and its _way_ better, I see about twice as much

Re: Scrolling performance

2006-06-20 Thread John Cupitt
On 6/20/06, Clemens Eisserer [EMAIL PROTECTED] wrote: I recently updated to OpenSuSE 10.1 since some people suggested that Eclipse/GTK's performance is better with gtk 2.8. My machine is a Athlon 1000 with 512mb SDram and a GeForce FX5200 with latest NVidia binary drivers, renderaccel enabled.

Re: Scrolling performance

2006-06-20 Thread John Cupitt
On 6/20/06, Clemens Eisserer [EMAIL PROTECTED] wrote: Thanks for the tip with the theme, the only theme I've installed is called Raleigh. I found the package: http://www.novell.com/products/linuxpackages/suselinux/gtk-qt-engine.html it is installed by default, so unless you've removed it, you

Re: strange trouble in displaying a 8bit monochromy grey scale image

2006-06-02 Thread John Cupitt
On 6/2/06, heavenscape [EMAIL PROTECTED] wrote: char* pDisplayBuf = malloc(sizeX*sizeY*3); for(i=0;isizeX*sizeY;i++) { //create a gray scale img in the display buffer pDisplayBuf[i+1]=pDisplayBuf[i+1]=pDisplayBuf[i+2] = pixel_value; } This isn't going

Re: Menu problems in gtk apps

2006-05-22 Thread John Cupitt
On 5/22/06, Alasdair McAndrew [EMAIL PROTECTED] wrote: I'm using Suse 10.0, with kde 3.4 as my desktop. But I use quite a few gtk-based apps: firefox, thunderbird, gaim, gqview and so on. With each of those I have a problem with the pull-down menus: the currently selected menu item appears as

Re: building a library using gtk+

2006-05-17 Thread John Cupitt
On 5/16/06, Dov Kruger [EMAIL PROTECTED] wrote: If I run pkg-config and capture the output, this is what it puts out: -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 So I want to

Re: building a library using gtk+

2006-05-17 Thread John Cupitt
On 5/17/06, Rick Jones [EMAIL PROTECTED] wrote: I handle this by making my own .pc file for my library. It's fairly easy to get your configure script to generate one and install it correctly, but I could post an example if you like. One you have a mylibrary.pc installed, your users can

Re: GTK+ Cocoa Native Port

2006-05-16 Thread John Cupitt
There's a project page with a TODO list of things that still need fixing: http://developer.imendio.com/wiki/Gtk_Mac_OS_X Might be a start point. On 5/16/06, Matthias Clasen [EMAIL PROTECTED] wrote: On 5/16/06, Ben Hall [EMAIL PROTECTED] wrote: So!! I was wondering if any of you had any

Re: Glib 2.10.2 compiling problem

2006-05-14 Thread John Cupitt
On 5/14/06, Craig Davis [EMAIL PROTECTED] wrote: checking for a sed that does not truncate output... dyld: Library not loaded: /usr/local/lib/libiconv.2.dylib Referenced from: /usr/local/lib/libintl.3.dylib Reason: Incompatible library version: libintl.3.dylib requires version 6.0.0 or

Re: PyCairo LibPNG issues

2006-05-13 Thread John Cupitt
On 5/13/06, Craig Davis [EMAIL PROTECTED] wrote: I think I may have finally found the root of all my problems. For some odd reason I can't get libpng 1.2.10 to compile on Tiger. I checked I don't know if this is an option for you, but I've been using darwinports to build things like this.

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

2006-05-11 Thread John Cupitt
On 5/11/06, Sean Kelley [EMAIL PROTECTED] wrote: It appers that GtkFixed is not really designed for stacking widgets as it does not have a concept of a z-axis. What gets drawn on top is purely a matter of what child comes last when drawing, and a similar story is with input. GTK does not have

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

2006-05-11 Thread John Cupitt
On 5/11/06, Sean Kelley [EMAIL PROTECTED] wrote: It appers that GtkFixed is not really designed for stacking widgets as it does not have a concept of a z-axis. What gets drawn on top is purely a matter of what child comes last when drawing, and a similar story is with input. GTK does not have

Re: install problem on macosx 10.4

2006-05-09 Thread John Cupitt
You have another installation of GLib there, particularly version 2.6.6, which is found first. So find it -- it should not be hard as pkg-config can do that for you: Another option is to use darwinports. This should do a from-source install for you. http://darwinports.opendarwin.org/ then

Re: gtk_widget_destroy(): destroys embedded widgets?

2006-05-04 Thread John Cupitt
On 5/4/06, Felix Kater [EMAIL PROTECTED] wrote: if I destroy a container (in my case a gtk table widget), does it automagically remove all widgets which have been attached to it before--or do I have to destroy all embedded widgets before one by one? Short answer: yes, it will automatically

Re: Efficient image drawing

2006-04-28 Thread John Cupitt
On 4/28/06, Paul Davis [EMAIL PROTECTED] wrote: Using GdkImage and doing a memcpy directly into the structure, i was getting 23-27 fps. Using gdk_pixbuf_new_from_data and reusing the same data buffer, i get a solid 28 fps. And the weird part( in my mind ): On an X display with 16bpp, using

Re: Efficient image drawing

2006-04-27 Thread John Cupitt
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 and then drawing to a

Re: Howto really debug gdk_x_error?

2006-04-21 Thread John Cupitt
On 4/21/06, Wojciech Kromer [EMAIL PROTECTED] wrote: Where is your code called? -mine is from fimer function added by g_timeout_add Are You using timers, pthreads, gthreads? - i'm using pthreads, but there are no gtk call from there How often are made changes to markupLabel? -my

Re: can't ercieve data passed to g_signal_connect

2006-04-21 Thread John Cupitt
On 4/21/06, rachit goel [EMAIL PROTECTED] wrote: g_signal_connect ((gpointer)eventt[iter],button_press_event, G_CALLBACK (tab_click1), data1); void tab_click1(GtkWidget *widget,gchar* data1) You have the type of your callback wrong:

Re: Random Number of Buttons

2006-04-20 Thread John Cupitt
On 4/20/06, 3saul [EMAIL PROTECTED] wrote: I'm wanting to know the best way to declare a random number of buttons for my gtk app. The number will changed depending on the argument passed to my app. Just use an array of GtkWidget pointers. For example (untested): GtkWidget ** add_buttons(

Re: converting GTKWidget to Widget (Moftif)

2006-04-14 Thread John Cupitt
On 4/14/06, Dmitriy Chumack [EMAIL PROTECTED] wrote: I have a little question. I need to create a widget using XtVaCreateManagedWidget(...) function from libXt.so.6 library. No, sorry, GTK and Motif are completely different and you can't mix their APIs. You must use one or the other. If you

Re: Pango help

2006-04-10 Thread John Cupitt
On 4/10/06, nerdy [EMAIL PROTECTED] wrote: In the following code segment, I am displaying a text at a position (50,50) in a drawing area. For a font size of 24 and family=courier, i am NOT gettting the message displayed at the exact position (50,50). The starting of the text is displaced by

Re: How to send Key_press_event by event?

2006-04-10 Thread John Cupitt
On 4/10/06, Brijesh [EMAIL PROTECTED] wrote: I want to send Key_press_event to the list box by program not by keyboard. This is very difficult and unreliable. What are you tryiing to accomplish? There is probably a better way to get the effect you want. John

Re: Where is this damn non utf8 char??!!

2006-04-08 Thread John Cupitt
On 4/8/06, Juan Pablo [EMAIL PROTECTED] wrote: and I couldnt find where is this non valid utf-8 text. Is there any way to debug this to find that text? (widget name or something) This message commonly apears when some dialogs are shown. I usually make warnings fatal, then run in a debugger.

Re: How to log error messages in a file for Glib

2006-03-17 Thread John Cupitt
You can also set your own log handler: http://developer.gnome.org/doc/API/2.0/glib/glib-Message-Logging.html#g-log-set-handler And capture message to a file, send them to a dialog box, whatever. On 3/17/06, Daniel Espinosa [EMAIL PROTECTED] wrote: Run your program from the consol, and in

Re: displaying continuosly in entry widget

2006-02-22 Thread John Cupitt
Hi, you need a timeout rather than sleep(). Sleep will make your whole program (including screen repaint) stop for 3 seconds. A timeout will let your repaint continue while you wait. http://developer.gnome.org/doc/API/2.0/glib/glib-The-Main-Event-Loop.html#id3076251 J On 2/22/06, shibu

Re: Font antialiasing on X (was: Re: Font Contrast)

2006-02-13 Thread John Cupitt
On 2/13/06, Gus Koppel [EMAIL PROTECTED] wrote: Hence, the effect can be turned off. In X-Windows it's nowadays controlled by the Xft + Fontconfig library. Unfortunately AFAIK there is no way to thoroughly configure use of antialiasing via Gnome, so you will likely have to edit the config file

Re: Gtk on MAC OS X

2006-02-12 Thread John Cupitt
On 2/11/06, Calvin Ellis [EMAIL PROTECTED] wrote: My question to the gtk developers is what would be the best approach as to distributing software on the MAC platform that requires gtk? I do this by creating a myapp.app directory in my home area, then installing my program, gtk and

Re: brand newbie question

2006-01-26 Thread John Cupitt
On 1/26/06, Ryan Moszynski [EMAIL PROTECTED] wrote: The first task i was given was to take the output from the program i have pasted at the end of this message, and, every time the program is run, have it present the information in the form of a gnome window with a chart plotting the output of

Re: Forcing first exposure

2006-01-13 Thread John Cupitt
On 1/13/06, Gravis Zero [EMAIL PROTECTED] wrote: not exposed until after you load the file. needless to say i would like to be able to load the image into the drawing area when loaded instead of when it is exposed as it make the app look slugish or frozen. i have I would load the image in

Re: Regarding GLIst Search Function

2006-01-05 Thread John Cupitt
On 1/5/06, V.Ravikumar [EMAIL PROTECTED] wrote: Is there any to search fast in a Glist(if my list is large) , other than the g_list_find API function. I usually use a combination of a list and a hash for situations like this. Use the list to keep the traverse order for the hash. John

Re: Call a function after showing something in a DrawingArea

2006-01-04 Thread John Cupitt
Hi Christoph, On 1/4/06, Christoph Bersch [EMAIL PROTECTED] wrote: Great, this seems to work :-) Good! I thought, that a call of gtk_widget_draw() might be better than gtk_widget_queue_draw_area(), as it draws immediately, although it is deprecated. So how could a call of

Re: Call a function after showing something in a DrawingArea

2006-01-03 Thread John Cupitt
On 1/3/06, Christoph Bersch [EMAIL PROTECTED] wrote: I want to write a program, that draws something in a DrawingArea, and calls a function after _showing_ the changes in the DrawingArea: 1) call function draw_something() 2) show the changes 3) call a function measure() 4) return to step 1)

Re: Proposition for platform maximum filename/pathname length symbols

2005-12-24 Thread John Cupitt
On 12/24/05, Tor Lillqvist [EMAIL PROTECTED] wrote: While I have the list's attention, it would be nice to add stat() and fstat() wrappers that would definitely be large file aware on all platforms. Large-file wrappers for ftruncate() and lseek() would be very handy too. Win32 (as far as I

Re: Tiff monchrome memory usage

2005-12-23 Thread John Cupitt
On 12/22/05, David Stevenson [EMAIL PROTECTED] wrote: I am using tiff files that are 9000x6000 pixels black and white. ( they are schematic drawings intended to print A0 size ) I calculate this as just under 8meg at 1 bit per pixel, however when I open in Gimp or Eye of Gnome they seem to use

Re: gtk_window_set_focus()

2005-12-23 Thread John Cupitt
Hi, On 12/23/05, Richard Boaz [EMAIL PROTECTED] wrote: One issue that came up over time (when actually unleashed to the end users...) was that when the program was away reading the files, user events (e.g., mouse click) would get caught and (maybe) cause problems since the program was not in

Re: Double buffering while moving in a 'fixed'

2005-12-13 Thread John Cupitt
On 12/13/05, Andrew Shafer [EMAIL PROTECTED] wrote: Inside the fixed I have components. Components can be any widget and they are also associated with a shape mask. I collect all the widgets and masks, then draw them into the fixed and mask them to get a shaped window. (the components make

Re: signals and threads

2005-12-07 Thread John Cupitt
On 12/7/05, Dmitry A. Yanko [EMAIL PROTECTED] wrote: On Wed, Dec 07, 2005 at 12:46:28PM -0500, Tristan Van Berkom wrote: May I just ask why you think you need to use threads in the first place ? It is more convenient. :) It is difficult to handle many external events whithout threads. Each

Re: Q: Suitability of GTK+ for critical embedded application

2005-12-04 Thread John Cupitt
On 12/3/05, Are Leistad [EMAIL PROTECTED] wrote: The one thing that makes me hesitate is the question about stability. By stability I mean lack of (serious) bugs and memory leaks. I'm not embedded, but the GTK app I usually work on (medium sized? 250,000 lines) seems leak-free, according to

Re: glib on ubuntu

2005-11-27 Thread John Cupitt
On 11/26/05, riccardo ferraro [EMAIL PROTECTED] wrote: Hallo! I have Ubuntu Breezer on a Toshiba Satellite A80. I'm trying to install atk-1.9.0. Breezy comes with atk-1.10.1, are you sure you want to install an earlier version? ___ gtk-list mailing

Re: Signal on mouse over menu item?

2005-11-26 Thread John Cupitt
On 11/26/05, Daniel Pekelharing [EMAIL PROTECTED] wrote: Is there a signal on a GtkMenuItem that gets called when the cursor is moved onto the item? I use select for when a menu item is highlit but before it is activated. John ___ gtk-app-devel-list

Re: Signal on mouse over menu item?

2005-11-26 Thread John Cupitt
On 11/26/05, Daniel Pekelharing [EMAIL PROTECTED] wrote: I need to receive any keys pressed whilst a menu item is selected ... I connect a menu item with key-press-event, but it seems to do nothing, even though Gtk doesn't spit out the usual: signal x is invalid for instance y... I'm not

Re: Memory consumption

2005-11-25 Thread John Cupitt
On 11/25/05, Andrey Karavaev [EMAIL PROTECTED] wrote: How about reducing of memory consumption(may be in next GTK+ versions..) ? Problem is following: even very simple GTK-application takes huge place in memory( resident memory) so if we have multiuser sysem . Memory use can be hard to

  1   2   3   4   5   >