Re: passing 3 widgets as parameters to g_signal_connect

2004-07-05 Thread Sven Neumann
Hi, Russell Shaw [EMAIL PROTECTED] writes: G_CONST_RETURN gchar *oper1,*oper2; oper1 = gtk_entry_get_text(GTK_ENTRY(elem-op1)); oper2 = gtk_entry_get_text(GTK_ENTRY(elem-op2)); Why would you use G_CONST_RETURN here? The right thing to do is to use the const qualifier directly.

Re: GLIB / Pango install

2004-07-05 Thread Sven Neumann
Hi, Andreas Hagele [EMAIL PROTECTED] writes: Did you also install the development RPM packages? Do I need to. Well, you said you want to compile gimp and were looking for installing the required packages to do that. Since your goal is to develop software that uses gtk+ and friends, you will

Re: Pango 1.4.0

2004-07-05 Thread Sven Neumann
Hi, Jerry Pringle [EMAIL PROTECTED] writes: Looking over the output, the first error appears to be: pangox.c:26:22: X11/Xlib.h: No such file or directory In file included from pangox.c:32: pangox.h:31:22: X11/Xlib.h: No such file or directory Does this mean that

Re: GLIB / Pango install

2004-07-05 Thread Sven Neumann
Hi, Andreas Hagele [EMAIL PROTECTED] writes: I don't want to develop software that uses gtk+ at all. I just want to USE gimp as an ordinary user. No programming, nothing. just use the application. You said you want to compile it. Thus you will need the header files which is what the

Re: GLIB / Pango install

2004-07-05 Thread Sven Neumann
Hi, Andreas Hagele [EMAIL PROTECTED] writes: and if I would go down that path of installing the development packages, where do I find them? ftp://ftp.gtk.org/pub/gtk/v2.2/ doesn't seem to have anything there. Of course not. It's not the job of the GTK+ developers to provide you with binary

Re: Best way to copy a GString object

2004-07-05 Thread Sven Neumann
Hi, Michael Torrie [EMAIL PROTECTED] writes: What is the best way to copy a GString object in glib (plain c)? There doesn't seem to be any copy constructor. My current guess is to use g_string_new_len(src-str,src-len). However that won't put in a terminating null character which I'd like

Re: GLIB / Pango install

2004-07-04 Thread Sven Neumann
Hi, Andreas Hagele [EMAIL PROTECTED] writes: I'm new to Linux and try to install Gimp 2.0 onto a RedHat 9 installation with Gnome desktop. Gimp needs a new GTK which needs Pango which in turn needs GLIB = 2.4.0 Please do yourself a favor and either read the files called INSTALL or (way

Re: Building glib docs

2004-06-20 Thread Sven Neumann
Hi, Russell Shaw [EMAIL PROTECTED] writes: When building glib docs from cvs, i get: touch tmpl-build.stamp *** Building XML *** cd . \ gtkdoc-mkdb --module=glib --source-dir=../../.. --output-format=xml --sgml-mode --output-format=xml --ignore-files=trio 100% symbol docs coverage

Re: gtk_widget_set_uposition() in Gtk-2.0?

2004-06-19 Thread Sven Neumann
Hi, David J. Singer [EMAIL PROTECTED] writes: This function is only really useful on a window, so you are supposed to use gtk_window_set_position() instead. But gtk_window_set_position() doesn't allow an arbitrary position to be specified. You can only really position at the center or

Re: Building shared libraries under cygwin

2004-06-19 Thread Sven Neumann
Hi, Maarten Boekhold [EMAIL PROTECTED] writes: ps. In case this is fixed in CVS, are there any snapshots available? On my system (cygwin) I can't go through the autoconf stuff because packages like jade/openjade are not available... You shouldn't need these if you pass --disable-gtk-doc to

Re: draw a 16bpp unindexed image on PC linux

2004-06-18 Thread Sven Neumann
Hi, Juhana Sadeharju [EMAIL PROTECTED] writes: The full update takes 80+ msec -- i.e., max frame rate is as low as 12 frames per second. Drawing to RGB image takes time as well, and so the frame rate drops too low. Image size is 900x600. I don't think you can expect a higher frame rate from

Re: gtk_widget_set_uposition() in Gtk-2.0?

2004-06-18 Thread Sven Neumann
Hi, David J. Singer [EMAIL PROTECTED] writes: I notice from the documentation that gtk_widget_set_uposition() is deprecated in Gtk-2.0, but there is no mention of how the same functionality should be implemented... Can anyone tell me? This function is only really useful on a window, so you

Re: add text to entry fails. g_snprintf bad?

2004-06-09 Thread Sven Neumann
Hi, edward hage [EMAIL PROTECTED] writes: gchar *labeltext1; g_snprintf(labeltext1, 6, %f, sim.stepsize); g_free(labeltext1); I suggest you read the snprintf() manpage. You are using g_snprintf() on unallocated memory and later you even free the memory that has never before

Re: win32 binaries for GTK+

2004-06-05 Thread Sven Neumann
Hi, ofey aikon [EMAIL PROTECTED] writes: Where can I download win32 binaries for GTK+ ? I had downloaded one of the earlier versions from http://www.dropline.net/gtk/ .But in that site, Todd now suggests to download from Tor's site instead, at http://www.gimp.org/win32 . I have been trying

Re: New file chooser and keyboard accelerators...

2004-06-05 Thread Sven Neumann
Hi, Aaron Gaudio [EMAIL PROTECTED] writes: Okay, I'm on the bleeding edge now with evolution 1.5 and galeon 1.3.15, and have been exposed to the new gtk 2.4 file chooser. I hope not to be beating a dead horse here, as this might be a contraversial topic, but I do have some constructive

Re: compile failure gtk+ 2.4.0 and 2.4.1 on Solaris 8

2004-06-02 Thread Sven Neumann
Hi, Jean Bréfort [EMAIL PROTECTED] writes: I really do not understand what is wrong. It should work, the symbols exist in libintl and you have -lintl on the command line. Did you try to compile everything with --disable-nls? (if you compile glib with this option dgettext and related

Re: GIMP Notebook

2004-05-30 Thread Sven Neumann
Hi, David Christian Berg [EMAIL PROTECTED] writes: Since gimp.org is down, and gtk means gimp toolkit I thought you guys may know... gimp-developer list would have been more appropriate. I was wondering, how the dockable tabs in gimp are called, cause I mean to apply a style to them.

Re: Calculating bounding boxes for rendered fonts

2004-05-26 Thread Sven Neumann
Hi, John Cupitt [EMAIL PROTECTED] writes: I'm using pango_layout_get_extents( layout, ink_rect, logical_rect ); ink rect is the bounding box of the pixels that will be painted, logical_rect includes a bunch of extra spacing and allowance for ascenders / descenders / extra punctuation

Re: install GTK+ without the GTK-Wimp component

2004-05-24 Thread Sven Neumann
Hi, it would certainly increase the likelihood of a helpful reply if you would teach your email client not to send HTML mails but good old plain text with proper linebreaks. Sven ___ gtk-list mailing list [EMAIL PROTECTED]

Re: Changing property from RC file

2004-05-12 Thread Sven Neumann
Hi, Roger Leigh [EMAIL PROTECTED] writes: On Sat, May 08, 2004 at 10:19:27AM -0500, Canek Peláez Valdés wrote: Hi; I want to know if it's possible to change some Widget's property through a RC file. I want that my invisible char in entries be a little circle, not an asterisk. I've a

Re: Now it's fonts

2004-05-11 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: fc-list. The answer to my long-standing search. :) I owe this man a beer or similar if we're ever on the same side of that big puddle. ;) I've been using xfontsel and xlsfonts for close to 2 decades, and was peeved when I found xftlsfonts and it only

Re: Deriving from GtkWindow

2004-05-11 Thread Sven Neumann
Hi, Roger Leigh [EMAIL PROTECTED] writes: I've been learning about GType/GObject, and trying to create my own objects. I'm attempting to derive a new object from a GtkWindow. While the code compiles, I can't cast the object to a GtkWindow: You are initializing the instance in the class

Re: Deriving from GtkWindow

2004-05-11 Thread Sven Neumann
Hi, Roger Leigh [EMAIL PROTECTED] writes: Question: why does GTypeInfo not have a corresponding instance_finalise/instance_dispose for instance_init? Because these are class methods that can be overridden by derived classes. Sven ___ gtk-list

Re: Pango 1.4.0 (Solaris 9 gcc 3.2.3) refuses to compile

2004-05-05 Thread Sven Neumann
Hi, Ian Dennison [EMAIL PROTECTED] writes: OK, first time trying to get GTK working. atk compiled OK, glib compiled OK, jpeg and tiff compiled OK but pango keeps throwing a wobbly over header files. I have googled for an answer and tried all the ones I found, with no luck. The first

Re: treeview and left hand mouse

2004-05-01 Thread Sven Neumann
Hi, edscott wilson garcia [EMAIL PROTECTED] writes: Is there any way to swap mouse buttons 1 and 3 for left hand people within a gtk2 app? This is usually done at the X server level (in your XF86Config), not at the application level. Sven ___

Re: clock using GTK+

2004-04-26 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: gtk_timeout_add Or rather g_timeout_add(), since gtk_timeout_add() is the deprecated API that shouldn't be used in newly written code. Sven ___ gtk-list mailing list [EMAIL PROTECTED]

Re: Speed of Gdk-Pixbuf Vs. GdkRGB

2004-04-24 Thread Sven Neumann
Hi, David J. Singer [EMAIL PROTECTED] writes: I notice the scribble example uses 'gtk_widget_queue_draw_area' to basically call expose to redraw the bit that's changed. Is this the approved (and optimal - in a speed sense) way to do it or just a simplification for the example?

Re: compile gtk static

2004-04-22 Thread Sven Neumann
Hi, you might find this talk helpful: http://directfb.org/documentation/gtk_embedded.xml Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Speed of Gdk-Pixbuf Vs. GdkRGB

2004-04-22 Thread Sven Neumann
Hi, David J. Singer [EMAIL PROTECTED] writes: I'm a little confused now! In my original posting I mentioned that I usually define a backing pixmap in a 'configure' callback, draw the graphical content into the pixmap, then copy it to the drawing-area in one go in an 'expose' callback. I

Re: error: core dumped

2004-04-21 Thread Sven Neumann
Hi, ViNiCiUs [EMAIL PROTECTED] writes: I'm a newbie and I'm learning how to work with images... I compile a file test using gcc file.c -o file `pkg-config --cflags --libs gtk+-2.0` When I try to execute the file, I recept the error core dumped. So, someone know what is wrong in this file ?

Re: error: core dumped

2004-04-21 Thread Sven Neumann
Hi, J. Ali Harlow [EMAIL PROTECTED] writes: On 2004.04.21 10:52 Sven Neumann wrote: Your usage of GError is wrong. Please read the API documentation on it again. The (probably) correct code is: int main (int argc, char *argv[]) { guchar*v; GdkPixbuf *pixbuf

Re: Speed of Gdk-Pixbuf Vs. GdkRGB

2004-04-21 Thread Sven Neumann
Hi, David J. Singer [EMAIL PROTECTED] writes: On Wednesday 21 April 2004 6:13 pm, John Cupitt wrote: They are equivalent (AFAIK). You only need the lower-level stuff if you want to avoid loading the whole image into memory OK. That's interesting. I kinda assumed GdkRGB would be loads

Re: Pango Use

2004-04-20 Thread Sven Neumann
Hi, Dov Grobgeld [EMAIL PROTECTED] writes: Have a look at pangoft2topgm in the pango/examples directory. It shows you how to construct a pango layout and then convert it to a gray level image. You may then connect your code at this point and turn this image into a mask that you may write to

Re: 'synchronous redraw' with a DrawingArea

2004-04-16 Thread Sven Neumann
Hi, Pascal Ognibene [EMAIL PROTECTED] writes: I've an application with one main window where I draw some diagrams, and a collection of dialog boxes, always transient for the main window (that is, they're always on the top). When I do modifications in a dialog box and close it it should

Re: closing windows

2004-04-09 Thread Sven Neumann
Hi, Ranieri Oliveira [EMAIL PROTECTED] writes: To close the entire program I use the function gtk_main_quit(), but which function I must use to close one another window that is not the main window? gtk_widget_destroy() Sven ___ gtk-list mailing

Re: glib install problems

2004-03-29 Thread Sven Neumann
Hi, Anthony DiSante [EMAIL PROTECTED] writes: Well, I'm not clueless, but that doesn't mean I know everything, either. Why don't you recommend fiddling with the stuff in /usr? Most binary packages install themselves to the /usr prefix, while source packages go to /usr/local. By not touching

Re: Compile/Link program static in Gtk

2004-03-29 Thread Sven Neumann
Hi, Flavio Alberto Lopes Soares [EMAIL PROTECTED] writes: I need to know how to compile/link an application that the interface was made using glade in static form, I looked for this in web but I can't found nothing conclusive. The Makefile files in directories was made by Glade and I change

Re: glib install problems

2004-03-29 Thread Sven Neumann
Hi, M Hoskison [EMAIL PROTECTED] writes: Life is too short to become intimately familiar with how the compiler and linker work beyond what is required to successfully build the vast majority of applications. I shall reserve a place on my hard drive for Gimp2.1, and by that time hopefully its

Re: glib install problems

2004-03-28 Thread Sven Neumann
Hi, Anthony DiSante [EMAIL PROTECTED] writes: As if the whole gtk/glib nightmare weren't confusing enough, glib-2.2 and glib-2.4 etc install themselves in directories named glib-2.0. That could be your problem. No, it isn't. Also, there isn't any gtk/glib nightmare, you are just clueless.

Re: glib install problems

2004-03-28 Thread Sven Neumann
Hi, Anthony DiSante [EMAIL PROTECTED] writes: No one told me to. The new glib got installed to /usr/local/lib/ so I figured these ones might correspond to the old version. And it solved the problem of pango not getting past configure. Well, if you want to get rid of the glib-2.2

Re: How to customize libglib

2004-03-26 Thread Sven Neumann
Hi, Mikio Kishi [EMAIL PROTECTED] writes: Now, I'm using glib-2.2.3. It's so useful, there are a lot of modules ! But, for the moment, I need only a few data types (GString, GHashTable, GTree, and so on..), and I hope that the size of libglib is as small as possible because I'd like to

Re: gtk 2.4 compilation wants pango 1.2?

2004-03-26 Thread Sven Neumann
Hi, Dave Reed [EMAIL PROTECTED] writes: On a Solaris 9 system, I installed: glib-2.4.0 pango-1.4.0 atk-1.6.0 but when configuring gtk+-2.4.0 I get: - checking for freetype-config... /usr/local/bin/freetype-config

Re: [GTK+-2.0] gtk get date ??

2004-03-13 Thread Sven Neumann
Hi, Alain D'EURVEILHER [EMAIL PROTECTED] writes: Is it possible to get the current date with gtk functions ? Is there something like gdk_get_time (NULL); which returns the current time, but for returning the current date ? Such functionality doesn't belong into a toolkit. The reason that

Re: [GTK+-2.0] gtk get date ??

2004-03-13 Thread Sven Neumann
Hi, Alain D'EURVEILHER [EMAIL PROTECTED] writes: Also, I know a system command 'date' which return the date in a format I can specify. Can I get the output of this command in a variable of my program ? man strftime(3) Now this is getting off-topic. gtk-list is not about general ANSI C

Re: Problem with GTK+ 2.0.3

2004-03-13 Thread Sven Neumann
Hi, Jrmy Desvages [EMAIL PROTECTED] writes: I've got a little problem with the configure script of GTK+ 2.0.3 Is there a particular reason you are using that outdated version? Please try gtk+-2.2.4 (and the respective versions of glib, atk and pango). Sven

Re: glib's prerequisite of gettext

2004-03-05 Thread Sven Neumann
Hi, nospam [EMAIL PROTECTED] writes: Is there any way to configure glib without gettext? Not really. Applications using glib are supposed to be able to rely on the presence of gettext functionality. You can however get glib to compile w/o gettext with some simple tweaks. So if you have a very

Re: pango include files

2004-03-02 Thread Sven Neumann
Hi, Dave Kuhlman [EMAIL PROTECTED] writes: I'm having problems compiling pango. The error messages seem to be telling me that I need to change pango source code. But, I'm guessing there is something I've set up incorrectly. Here are the error messages: gcc -DHAVE_CONFIG_H -I. -I.

Re: logo and wait...

2004-03-02 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: My idea for logo window is: a) Show a window with logo and label. b) 'Catch' signal after window is showed. c) After signal is caught load 'data/settings'. d) Destroy logo-win. e) Launch 'main_window_application'. You don't need to wait for a signal. Just

Re: (no subject)

2004-02-26 Thread Sven Neumann
Hi, wEngUang [EMAIL PROTECTED] writes: i've found a problem in compiling atk-1.0.3,./configure command exits with an error : pkg-config --modversion glib-2.0 return 2.0.7,but GLIB (2.2.1)was found. First of all,I uninstalled the glib-2.0.7 installed before,and then I tried to find

Re: glib-2.2.3 build problem

2004-02-25 Thread Sven Neumann
Hi, Ed Arnold [EMAIL PROTECTED] writes: I ran into a minor problem with build of glib-2.2.3 on a sun-sparc-solaris2.9 system. Can someone tell me if this is a bug that should be reported, or a feature I should enjoy. Do yourself a favor and use GNU make to build glib and friends. Sven

Re: Refreshing an Image

2004-02-24 Thread Sven Neumann
Hi, Matt Sampson [EMAIL PROTECTED] writes: First of all I am brand new to GTK+, but not C. After banging my head against a wall for a week I feel I am no closer to a solution, so that's why I'm here. Now that's out of the way... I am trying to write a program that will grab an image from

Re: Error in compiling GTK+ applications

2004-02-24 Thread Sven Neumann
Hi, Kendl Tibor [EMAIL PROTECTED] writes: I've compiled and installed a gtk-2.3.2, and tried to compile a gtk application, in this case a mozilla-1.6 browser. It's configure script exited with an error that it cannot find the 'gtk-config' script. I checked the whole / directory with mc's

Re: Colormap issues

2004-02-24 Thread Sven Neumann
Hi, Dennie, Brooke [EMAIL PROTECTED] writes: I'm a little confused as to how the following code can produce the output: succeeded... 15736992 256 gdk_color_parse(green, color); if(gdk_colormap_alloc_color(colormap, color, FALSE, TRUE)) printf(succeeded... %d %d\n,

Re: g_io_channel and UDP sockets

2004-02-24 Thread Sven Neumann
Hi, Jeff Abrahamson [EMAIL PROTECTED] writes: I have an app that talks UDP, and I'd like to use a glib-2.0 main event loop to handle communication. (I can handle it myself using sendto and recvfrom, but I'd like the main event loop to do polling for me and then call my handler functions.

Re: g_io_channel and UDP sockets

2004-02-24 Thread Sven Neumann
Hi, Jeff Abrahamson [EMAIL PROTECTED] writes: Setting the encoding unfortunately just gives me a different error stream. Now I see an infinite stream of these: (process:12739): GLib-CRITICAL **: file giochannel.c: line 1662 (g_io_channel_read_to_end): assertion `(error == NULL) ||

Re: How do people make the semi-transparent windows?

2004-02-23 Thread Sven Neumann
Hi, Michael Torrie [EMAIL PROTECTED] writes: Can anyone tell me how people make those windows semi-transparent? Is it done in gtk or in the specific window manager? Until the compositing extensions are defined and available in X11, there is no real way to make windows semi-transparent.

Re: Can anyone tell me how to make a floating window?

2004-02-19 Thread Sven Neumann
Hi, Jack Chen [EMAIL PROTECTED] writes: Thank you, John. It looks like GNOME's website has a better documentation of GTK than GTK's website does. Thank you for pointing that website to me, and I'll do as you suggested on the other things. The docs that you were pointed at are part of the

Re: gtk2 fonts too small on FreeBSD 5.1

2004-02-15 Thread Sven Neumann
Hi, Ads Serpe [EMAIL PROTECTED] writes: I'm using the gtk-2.2.4_1 port for FreeBSD 5.1, and I noticed a decrease in the size of the text that is displayed by each app using gtk2, comparing to gtk1. The font rendering of gtk1 and gtk2 don't have much in common (if anything at all), so it's

Re: Hello World link errors

2004-02-09 Thread Sven Neumann
Hi, can you please _not_ send HTML mail to mailing lists. Thanks you. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: GTK+ books

2004-02-08 Thread Sven Neumann
Hi, Juhana Sadeharju [EMAIL PROTECTED] writes: From: Jack Chen [EMAIL PROTECTED] Hi, I think the official GTK programming tutorial on the official GTK's site is the best resource for programming GTK I've found. So, the situation is pretty bad. I checked drawing area widget page in the

Re: Building GTK, Pango without Freetype or Xft

2004-02-06 Thread Sven Neumann
Hi, Viraj Chatterjee [EMAIL PROTECTED] writes: ./configure --help talks about enabling or disabling a FEATURE by doing a --enable-FEATURE or a --disable-FEATURE, however, what are the valid list of FEATUREs for a particular source package of glib, or pango, or gtk, ... is not easliy

Re: GTK Warning

2004-02-03 Thread Sven Neumann
Hi, Steve Slade [EMAIL PROTECTED] writes: I'm very new to the world of UNIX having been introduced through my recent purchase of OS X. I am trying to find alternatives to programs such as Photoshop and Dreamweaver. I found the Gimp and Bluefish. I downloaded Fink and began installing GTK,

Re: g_filename_to/from_utf8()

2004-02-02 Thread Sven Neumann
Hi, Egon Andersen [EMAIL PROTECTED] writes: I've had some problems with g_filename_to/from_utf8(). The encoding of the returned string depends on the encoding of your locale but only if you have the environment variable G_BROKEN_FILENAMES set. Sven

Re: A problem about multi display!

2004-01-30 Thread Sven Neumann
Hi, ruihua yu [EMAIL PROTECTED] writes: To all: Now I have a problem about display. envirament: system: Red Hat9.0 GTK Version: GTK+-1.2.10 Glib Version: glib1.2.10 Following is what I want to do? One process to show two display(DISPLAY1:

Re: pkg-config

2004-01-29 Thread Sven Neumann
Hi, Serdar Ozgur ATA [EMAIL PROTECTED] writes: as an inexperienced person on Linux platform, I try to build glib-2.2.3 also gtk+-2.2.3 but I've received the error pkg-config not found. You need to make sure pkg-config is in your executable path. Since it was installed to /usr/local/bin, you

Re: Change font's size

2004-01-27 Thread Sven Neumann
Hi, Manoj tr [EMAIL PROTECTED] writes: U can specify the size of font in the fints name itself. ie give font name like this -adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859-1 here 12 is the size. This is the old and deprecated way of doing it. Modern code shouldn't be using

Re: Is it possible to statically link GTK?

2004-01-27 Thread Sven Neumann
Hi, jiangyi178 [EMAIL PROTECTED] writes: Is it possible to statically link GTK to my program(so that my app can be installed on user's machine easily) and how? Sure. Just do it like you would do for any other statically linked application. You just need to make sure you have static versions

Re: gtk+ for linux framebuffer crashed

2004-01-27 Thread Sven Neumann
Hi, Dirk Volkmar [EMAIL PROTECTED] writes: I had some problems with the framebuffer version of gtk. Allways I started an application, eg gtk-demo it crashed with an segmentation fault. With the stack dump of the core file I discovered that fontconfig has some problems with the path

Re: gtk+-2.2.4 make fails

2004-01-26 Thread Sven Neumann
Hi, [EMAIL PROTECTED] [EMAIL PROTECTED] writes: The config line is: ./configure --prefix=/opt/pkgs/gtk+-2.2.4 --enable-fbmanager --with-xinput=yes --with-x Try --with-xinput=xfree instead if you want to use a tablet with GTK+ later. This won't fix your compile problems but it might save you

Re: Keyboard shortcuts for menu items

2004-01-26 Thread Sven Neumann
Hi, Tom Alsberg [EMAIL PROTECTED] writes: Just a small question bugging me - in GTK+ 1, it was possible to assign and change keyboard shortcuts to menu items, etc. by just having them selected and pressing the desired key combination. Why is it not so in GTK+ 2 anymore? Am I missing

Re: gtk+-2.2.4 make fails

2004-01-26 Thread Sven Neumann
Hi, Aaron Neerenberg [EMAIL PROTECTED] writes: Is there an option to just completely turn ximput off? I've tried with --with-ximput=no, but it doesn't seem to work as one would expect. It's spelled --with-xinput, not --with-ximput. It seems I was wrong and --with-xinput=yes or simply

Re: GTK Gimp confusion

2004-01-18 Thread Sven Neumann
Hi, Brad Kligerman [EMAIL PROTECTED] writes: I've already followed the errors msgs recommendations, but still get the same result. When I do $ rpm -qa | grep gtk+ I get gtk+-devel-1.2.10-25 gtk+-1.2.10-25 And for $ rpm -qa | grep gtk2 I get pygtk2-devel-1.99.14-4 pygtk2-1.99.14-4

Re: API for iterating the g_hash_table

2004-01-15 Thread Sven Neumann
Hi, Tony Yat-Tung Cheung [EMAIL PROTECTED] writes: Yes, the proposed API may expose too much implementation details in some views. For perfect API, one may want to use an iterator, instead of an integer index. Then APIs will become, gconstpointer g_hash_table_get_key(GHashTable

Re: API for iterating the g_hash_table

2004-01-14 Thread Sven Neumann
Hi, Tony Yat-Tung Cheung [EMAIL PROTECTED] writes: Currently, there is g_hash_table_size(), we could easily add iteration by providing the following two new APIs, gconstpointer g_hash_table_get_key(GHashTable *hash_table, int pos); gconspointer g_hash_table_get_value(GHashTable

Re: API for iterating the g_hash_table

2004-01-14 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: It is rather trivial to construct a GList of hash table keys (or values) using g_hash_table_foreach. Of course it's only useful on a table whose contents change never or seldom because the list has to be updated on each change. Anyway, here's what I use. I was

Re: Help cross compiling pango-1.2.5 for ARM

2004-01-09 Thread Sven Neumann
Hi, Aitor Garcia [EMAIL PROTECTED] writes: In the target I will use GTK+ on the framebuffer using DirectFB API for I understand that I do not need an X server in the target. How can I overcome this problem with pango looking for a X library when I think it does not really need one?. Did

Re: Help cross compiling pango-1.2.5 for ARM

2004-01-09 Thread Sven Neumann
Hi, Aitor Garcia [EMAIL PROTECTED] writes: checking for freetype-config... /usr/bin/freetype-config checking for FT_Get_Next_Char in -lfreetype... no That doesn't look like it's using the freetype-config script for the target platform. You should adjust your PATH accordingly. Sven

Re: Please any one can help me?!

2004-01-08 Thread Sven Neumann
Hi, Tara Milana [EMAIL PROTECTED] writes: The way around this is to use back buffers and that's X Pixmaps, in GTK it is refered to as a GdkPixmap. What you do is draw to the GdkPixmap first (same thing, draw a solid background, then details). Then you put the GdkPixmap to the GdkWindow all

Re: number list elements problem

2003-12-26 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: g_slist_remove_link (list, g_slist_nth (list, position)); You _always_ need to assign the returned list argument to your list pointer or your code will break if the head of the list is modified. Try to change that line to list = g_slist_remove_link (list,

Re: Problem in adding stock item

2003-12-20 Thread Sven Neumann
Hi, Anish Chandran [EMAIL PROTECTED] writes: Hi i got these error while i used methods to add stock icon and some other related application can anyone tell me what else i should do to make this ok does i need to include some other file or other option.. Thank you in advance to every one

Re: Problem compiling GTK application...

2003-12-13 Thread Sven Neumann
Hi, Alain D'eurveilher [EMAIL PROTECTED] writes: I just installed GTK 2.2.4 and when I want to compile, i've got thoses warning messages. It would certainly help if you could post the output of running make in an english locale. Try 'LC_ALL=C make'. Sven

Re: Problem compiling GTK application...

2003-12-13 Thread Sven Neumann
Hi, Alain D'eurveilher [EMAIL PROTECTED] writes: --- Hi, I just installed GTK 2.2.4 and when I want to compile, i've got those warning messages. Can anybody help me on this please? 15:41 [EMAIL PROTECTED] ~/gtk/reboot% LC_ALL=C make cc reboot.c -c -o reboot.o

Re: disable clear area on expose event

2003-12-12 Thread Sven Neumann
Hi, shawn boles [EMAIL PROTECTED] writes: Prior to an expose event, GDK clears the exposed area to the widget's background color. Is it possible to disable this in either a defined area or in a widget entirely? gdk_window_set_back_pixmap (window, NULL, FALSE); Sven

Re: Show window for a few seconds and delete it?

2003-12-08 Thread Sven Neumann
Hi, george carter [EMAIL PROTECTED] writes: The gtk_timeout_add that Paul posted sounds like what I might be looking for. gtk_timeout_add() is deprecated API. Use g_timeout_add() instead: http://developer.gnome.org/doc/API/2.0/glib/glib-The-Main-Event-Loop.html#g-timeout-add Sven

Re: error

2003-12-05 Thread Sven Neumann
Hi, Shalabh Raizada [EMAIL PROTECTED] writes: Gtk-CRITICAL **: file gtkbox.c: line 332 (gtk_box_pack_start): assertion 'child-parent == NULL' failed. You are attempting to add a widget to a box but the widget has been already been added to another container. Gtk-CRITICAL **: file gtkbox.c:

Re: Avoid Memory Leakage

2003-12-03 Thread Sven Neumann
Hi, Christoph Kappel [EMAIL PROTECTED] writes: I will try to make a text case later, guess the leak occurs only in conjunction with the GIOChannels. I don't use any GStrings in my project, except the GString buffer from the GIOChannels. Closing the channel und flushing the buffer should be

Re: Pango without X display/gtk_init()?

2003-12-01 Thread Sven Neumann
Hi, W. Borgert [EMAIL PROTECTED] writes: I like to add a non-X11 mode (command line only) to a GUI program. At the moment, a DISPLAY is needed for GDK/GTK, which is not useful, if running in an automated process, such as make, on a non-GUI-server. The program needs Pango nonetheless for

Re: more on g_strconcat problem

2003-11-28 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: You haven't looked at much C code, have you? :) Rest assured that I did. http://www.lysator.liu.se/c/duffs-device.html for the infamous Duff Device. I consider Duff's device a very elegant hack and have even used it myself (for DirectFB's software renderer).

Re: more on g_strconcat problem

2003-11-27 Thread Sven Neumann
Hi, Carl B. Constantine [EMAIL PROTECTED] writes: Ok, I've definately nailed the problem down to an issue with the check button in my data entry box. But it still doesn't make sense. consider the following code: idRequired =

Re: Slow Rendering?

2003-11-21 Thread Sven Neumann
Hi, Dennie, Brooke [EMAIL PROTECTED] writes: Hrmm. Setting the variable didn't seem to make much of a difference. The application now takes ~12s, but popups sped up to ~3s RENDER isn't implemented as far as I know since I get to see the extension RENDER missing error every time I run my

Re: Slow Rendering?

2003-11-21 Thread Sven Neumann
Hi, Brett Granger [EMAIL PROTECTED] writes: A quick grep of the source code (gdk/x11/gdkpango-x11.c) shows that the environment variable you really want is GDK_USE_XFT, not GDK_ENABLE_XFT. I don't know whether that will make any difference to what you're seeing, but it can't hurt to try.

Re: Slow Rendering?

2003-11-20 Thread Sven Neumann
Hi, Dennie, Brooke [EMAIL PROTECTED] writes: I have an application that works perfectly, but rendering is extremely slow (bringing up the application takes over 8 seconds, a popup window takes a little over 4). While I realize that it isn't necessarily a guarantee that this is the problem,

Re: problem in running gtk+2.2 appln for frame buffer

2003-11-20 Thread Sven Neumann
Hi, bheemesh [EMAIL PROTECTED] writes: Actually i did the same what you suggested. I came to know that it's failing in gtk_init() itself. And the problem it used give was: Gtk-WARNING: cannot open display and not exactly segementation fault. So i think i must have missed out something

Re: Slow Rendering?

2003-11-20 Thread Sven Neumann
Hi, Dennie, Brooke [EMAIL PROTECTED] writes: Oops! Of course! Sorry. GTK+ is version 2.2.1. I'm not entirely sure what you mean by backend (sorry, I'm still pretty new to this), but I think it's pangoxft. Running pkg-config --list-all didn't show anything of interest, but pkg-config

Re: Slow Rendering?

2003-11-20 Thread Sven Neumann
Hi, Sven Neumann [EMAIL PROTECTED] writes: Unless you set GDK_ENABLE_XFT to 0 explicitely, you are using the PangoXft backend then. Font configuration is done using fontconfig. Please check the fontconfig user documentation at http://pdx.freedesktop.org/~fontconfig/fontconfig-user.html

Re: (GObject) What are properties?

2003-11-19 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: what are the properties of GObjects, how are they used, and how are they different from the things that can be stored/retrieved via g_object_set/get_data() ? I've once tried, just for giggles, g_object_set(G_OBJECT(some_gtk_widget), foo, bar, NULL); and got

Re: (GObject) What are properties?

2003-11-19 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: 4) don't mess with ABI. You can add a property without worrying about changing the size of the struct. Sorry, but this is not true. The property doesn't provide a place to store the value, it only provides a way to get and set the value in a general fashion. For

Re: problem in running gtk+2.2 appln for frame buffer

2003-11-18 Thread Sven Neumann
Hi, bheemesh [EMAIL PROTECTED] writes: I am having problem in running any gtk+2.2.4 related application programs which are frame buffer enabled. All though the installation with all the dependencies necessary packages went on fine, whenever i try to run even a simple demp helloworld

Re: GTK Install Problem (..Xft backend is required)

2003-11-18 Thread Sven Neumann
Hi, Tim Johnson [EMAIL PROTECTED] writes: More problems with contingencies here. :-) When running configure for gtk+-2.3.0 (on RH 9.0): I get the following config error message Pango 1.2.0 and Xft backend is required for x11 target Pange 1.2.5 is installed. Below is snipped from

Re: glib-2.2.3 install on FreeBSD

2003-11-18 Thread Sven Neumann
Hi, Peter kryszkiewicz [EMAIL PROTECTED] writes: libiconv is installed in a standard location: /modules/libiconv.ko /usr/local/lib/libiconv.a /usr/local/lib/libiconv.la /usr/local/lib/libiconv.so /usr/local/lib/libiconv.so.3 /usr/local/lib/libiconv.so.4 That isn't exactly a standard

<    1   2   3   4   5   6   7   8   >