Re: [gtkmm] Problem with g_io_channel_read_chars

2002-06-07 Thread Sven Neumann
Hi, Daniel Elstner [EMAIL PROTECTED] writes: 2. how to determine what is current encoding for your connection, or where it's derived from? read the GLib API reference. g_io_channel_get_encoding() returns the current encoding of the GIOChannel. Or was the question how to determine

Re: Error I am getting

2002-06-04 Thread Sven Neumann
Hi, Dj Gilcrease [EMAIL PROTECTED] writes: Gtk-CRITICAL **: file gtkbin.c: line 217 (gtk_bin_add): assertion `bin-child == NULL' failed you are adding to a GtkBin that already has a child. Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED]

Re: NLS and glib?

2002-06-04 Thread Sven Neumann
Hi, Seemant Kulleen [EMAIL PROTECTED] writes: I am trying to compile glib-2.0.3. It turns out that I _need_ libintl.h. I had built gettext with --disable-nls so I had no libintl.h (unneeded bloat for me). Is NLS really really required for glib, or is there a hackish way to get around it

Re: How to take a snapshot of screen window under framebuffer mode?

2002-06-03 Thread Sven Neumann
Hi, sandy_21 [EMAIL PROTECTED] writes: My envirement is Redhat 7.2,any tool is available? yes, cat /dev/fb0 /tmp/fb.raw This will give you the raw pixel data in the file /tmp/fb.raw. To convert this to something more useable, I use the tools shipped with DirectFB in the tools

Re: Still no fonts with gtkfb

2002-05-31 Thread Sven Neumann
Hi, Vince Busam [EMAIL PROTECTED] writes: After much fighting, I found the culprit was freetype. A downgrade from 2.1.0 to 2.0.9 fixed the problem. an update to Pango-1.0.2 should have done the trick too. Salut, Sven ___ gtk-list mailing list

Re: Still no fonts with gtkfb

2002-05-29 Thread Sven Neumann
Hi, Vince Busam [EMAIL PROTECTED] writes: I still can't get any fonts working with gtk/framebuffer on a netwinder. Is there anywhere I can get an Xft configuration and fonts that are known to work? the following XftConfig does work for me with GTK+ on DirectFB and X11. It should as well

Re: Nvidia + GTK2

2002-05-29 Thread Sven Neumann
Hi, Eric [EMAIL PROTECTED] writes: Hi, I'm having problems with gtk2 and my geforce card. Any gkt2 application will eventually make the pc hang. I've mailed nvidia about this but I still haven't heard from them. Is this a known issue ? you are not using gdkxft, are you? gdkxft is an

Re: cell-background

2002-05-29 Thread Sven Neumann
Hi, Bernd Demian [EMAIL PROTECTED] writes: I have read in changelog new property for gtk_view to draw one row in a spcial color. I have installed 2.0.3, but I get the message GLib-GObject-WARNING **: gobject.c:1001:g_object_set_property(): object class `GtkCellRendererText' has no

Re: A question about event signal of GtkTextTag

2002-05-28 Thread Sven Neumann
Hi, Dongho Shin [EMAIL PROTECTED] writes: I connected event signal to GtkTextTag widget and examined the results, which were somewhat odd for me. The 'GDK_MOTION_NOTIFY' type event handler was called back only after 'GDK_BUTTON_PRESS' or 'GDK_BUTTON_RELEASE' type event handler was. That

Re: Missing g_str_has_prefix in glib-2.0.1

2002-05-28 Thread Sven Neumann
Hi, cbhoh [EMAIL PROTECTED] writes: i have a problem regarding about using glib-2.0.1: I can not find the symbol 'g_str_has_prefix from the library libglib-2.0.so.0.0.1, i am getting a linking error because of this g_str_has_prefix() was introduced lately in the glib-2.1 tree. It is not

Re: A question about event signal of GtkTextTag

2002-05-28 Thread Sven Neumann
Hi, Dongho Shin [EMAIL PROTECTED] writes: My working platform is Solaris 2.6 / Sun Ultra Sparc 10. Can it be the source of my problem? it shouldn't, but unfortunately there are some bugs that are not triggered on Linux (where most gtk+ developers work on) but show up on Solaris (and other

Re: No fonts with gtk framebuffer

2002-05-23 Thread Sven Neumann
Hi, Vince Busam [EMAIL PROTECTED] writes: When I run any of the example programs with gtk compiled for framebuffer mode, I don't see _any_ text anywhere. No fonts appear to be working at all. I modified pangorc and pangoft2.aliases per the documentation, but an strace shows that

Re: How to change background color in a window

2002-05-21 Thread Sven Neumann
Hi, Rick Amont [EMAIL PROTECTED] writes: I have been trying to change the background color of a window in GTK+. I have tried, among other things, changing the background color in the widget's style like this GtkStyle *style; style = gtk_widget_get_style(window); style =

Re: How to get the released signal of a mouse click in a window?

2002-05-21 Thread Sven Neumann
Hi, Rick Amont [EMAIL PROTECTED] writes: I have a scrolled window inside a window and I am connecting the pressed and released mouse button signals to their respective handling functions. While I get the pressed signal, I can not get the release signal. I've tried things like:

Re: Moving a window wm independent

2002-05-21 Thread Sven Neumann
Hi, Mattias Gaertner [EMAIL PROTECTED] writes: I want to move a whole window around. I tried gdk_window_move and gtk_widget_set_uposition. what about gtk_window_move()? Did you try that? Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED]

Re: glib install question

2002-05-17 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: I then tried to install atk-1.0.0 and pango-1.0.1. Their configure scripts both gave the same error (printed in full below): glib not found. They suggested editing my /etc/ld.so.con file to show the new path. I did this (added the line

Re: Hardcoding $prefix

2002-05-16 Thread Sven Neumann
Hi, Ralph Walden [EMAIL PROTECTED] writes: I've noticed that Pango will hardcode the $prefix from the build process into the library, and then use this path to find $prefix/etc/ configuration stuff (pango.aliases, etc.) This makes it impossible to distribute binaries of these libraries

Re: text with äæ to gtk_view

2002-05-16 Thread Sven Neumann
Hi, calmar [EMAIL PROTECTED] writes: i'm still trying to put the some text with 'gtk_text_buffer_set_text' to a 'gtk_text_view', but i can't succeed so far (due to ä and similar characters). my last try was something like this: for (int z=0 ; zlenghtofstring ;z++){ if ( (char)pstring[z]

Re: Info needed about gtk_window_list_toplevels()

2002-05-16 Thread Sven Neumann
Hi, Santhana Krishnan [EMAIL PROTECTED] writes: I would like to know what type of data (widget!) is stored in the GList * returned by the gtk_window_list_toplevels() function. http://developer.gnome.org/doc/API/2.0/gtk/gtkwindow.html#GTK-WINDOW-LIST-TOPLEVELS that'd be GtkWindow

Re: view cant' show special characters (at least not with gtk_text_buffer_set_text() so far)

2002-05-15 Thread Sven Neumann
Hi, calmar [EMAIL PROTECTED] writes: i have a gtk_text_view_new() in my program and i want to put there some text with this function: gtk_text_buffer_set_text (); as long as i have normal characters in the buffer, it's works properly. when there are any special letters (which tend to be

Re: Fw: view cant' show special characters (at least not with gtk_text_buffer_set_text() so far)

2002-05-15 Thread Sven Neumann
Hi, calmar [EMAIL PROTECTED] writes: the text put into a GtkTextView (or any other GTK+-2.0 widget) absolutely needs to be UTF-8 encoded. Glib provides a number of functions that help you to convert from and to other encodings. i tried something like this: //code begin char ** end;

Re: Availability of the GTK+ Tutorial

2002-05-14 Thread Sven Neumann
Hi, Ray Brown [EMAIL PROTECTED] writes: Can you please make available the GTK+ Tutorial in a tarball or zip format. The online version is a pain to keep going online for. they are part of the source tarballs and will even get installed (and cross-linked) on 'make install'. Salut, Sven

Re: segfault on return to gkt_main()

2002-05-13 Thread Sven Neumann
Hi, Thierry Brichler [EMAIL PROTECTED] writes: this is not true. Most signal callbacks in GTK+ are void functions. Only all GDK event callbacks have gboolean return values. There is no general rule for this; you'll have to check the header files or the API reference. Sorry for this

Re: Gtk 2.0 Tutorial Source

2002-05-13 Thread Sven Neumann
Hi, Cleber Rodrigues Rosa Junior [EMAIL PROTECTED] writes: I'd like to know where I can download the source of the tutorial that's online at www.gtk.org/tutorial (the 2.0 version). It is not in cvs neither in the tarballs. are you sure? I think it's right there in docs/tutorial. Salut,

Re: INstalling GTK (PING Sven)

2002-05-11 Thread Sven Neumann
Hi, Janos Blazi [EMAIL PROTECTED] writes: Now after installing glib, pango and atk to /opt/GTK, I cannot install GTK iteself as I get this message: checking compiler support for MMX... yes checking for freetype-config... (cached) no configure: error: pangoxft Pango backend found but did

Re: Glib questions.

2002-05-11 Thread Sven Neumann
Hi, [EMAIL PROTECTED] (Mojo B. Nichols) writes: I don't know if this an appropriate forum for posting Glib questions or not. I have a problem in which I was going to use a hash table to solve, but am know having doubts, or wondering if there is a better approach. Basically I need to store

Re: no more GTK_CHECK_CAST in newly written code?

2002-05-01 Thread Sven Neumann
Hi, myself wrote: I don't think it makes sense to introduce things like GST_TYPE_PARANOID to switch expensive type-checking casts on and off since the same effect can be achieved by using G_DISABLE_CHECKS as provided by Glib. I meant to write G_DISABLE_CAST_CHECKS of course. Salut, Sven

Re: window always on top

2002-05-01 Thread Sven Neumann
Hi, Lourdes Maldonado [EMAIL PROTECTED] writes: The main screen of my application takes up the entire screen (5x4) and I want it always to be visible. My problem is that when I press a button that displays an entry form screen that is smaller than my main screen (so the main screen is

Re: no more GTK_CHECK_CAST in newly written code?

2002-04-30 Thread Sven Neumann
Hi, Kang Jeong-Hee [EMAIL PROTECTED] writes: I've found gtktypeutils.h define GTK_CHECK_CAST with comment of /* glib macro wrappers (compatibility) */. is that meaning I'd better not to use SOME_CHECK_CAST, but to use directly G_TYPE_CHECK_INSTANCE_CAST? for example, GStreamer do

Re: need help install GTK

2002-04-27 Thread Sven Neumann
Hi, Mathew Kohel [EMAIL PROTECTED] writes: Running ldconfig solved by problem. Does ldconfig need to be ran every time a new library is compiled or just when a new path is added to ld.so.conf? everytime a new library is installed in one of the paths listed in ld.so.conf and not handled by

Re: pango 1.0.1 freetype 2.1.0 problem

2002-04-27 Thread Sven Neumann
Hi, Christian Quast [EMAIL PROTECTED] writes: I have a problem compiling pango 1.0.1 with freetype 2.1.0 installed. At least I think that the problemis caused by freetype 2.1.0 because compiling pango with freetype 2.0.9 installed everthing worked fine. try to use pango from CVS (make sure

Re: Porting GDK?

2002-04-27 Thread Sven Neumann
Hi, Roy Wood [EMAIL PROTECTED] writes: I am investigating the feasibility of porting gdk and then gtk on top of SDL, the cross-platform graphics framebuffer library (http://www.libsdl.org/). Judging by the code in the fbdev and win32 ports, it looks like it's simply a matter of grinding

Re: GtkSpinButton in GtkTreeViewColumn?

2002-04-26 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: I was just wondering if it would be possible to have a GtkSpinButton inside a GtkTreeViewColumn. As far as I can see from the documentation and the source code it's possible to render a column with GtkCellRendererText and make it editable, but that will

Re: [Job Posting] Senior GTK Systems Programmer in NY

2002-04-26 Thread Sven Neumann
Hi, [EMAIL PROTECTED] (Murray Cumming) writes: Unless you are dead0-set on C-only, GOB is a dead end. C++ makes derivation easy, and gtkmm lets you use it with GTK+. See this presentation: http://www.murrayc.com/murray/talks/2002/GUADEC3/ now if only C++ wasn't such a mis-designed pile of

Re: GLIB Hash Data

2002-04-25 Thread Sven Neumann
Hi, Ruben I Safir [EMAIL PROTECTED] writes: The example is very simple. Take in data from STDIN and use it for hash keys and values. I have to create a new pointer every time to do this with the hash functions in glib. The only way I can think of doing this is with mallac. The STDIN

Re: Problem with compile.

2002-04-25 Thread Sven Neumann
Hi, Wyatt Greenway [EMAIL PROTECTED] writes: Hello, I have a problem when I try to compile! I type this gcc -o3 -o gtk01 gtk01.c `pkg-config --libs --cflags gtk+-2.0` then it says Undifined reference to g_signal_connect Help please!!! I also typed this pkg-config --modversion gtk+-2.0

Re: GtkPreview changed behaviour

2002-04-24 Thread Sven Neumann
Hi, Maurits Rijk [EMAIL PROTECTED] writes: I noticed a difference in behaviour between the GTK 1.2 and GTK 2.0 GtkPreview widget. Somehow the following code used to work in GTK 1.2 (with gtk_signal_connect iso g_signal_connect, etc.) but in 2.0 the motion_notify_event doesn't seem to get

Re: need help install GTK

2002-04-24 Thread Sven Neumann
Hi, Mathew Kohel [EMAIL PROTECTED] writes: I been trying to install The GIMP for a couple of days now, but I cant seem to get past installing the pango library for GTK. It can not find the glib, but I just compiled glib version 2.0.1. Here is there error message I get when I run configure

Re: GtkPreview changed behaviour

2002-04-24 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: are you sure? I had a quick look at the state of the plug-in in CVS and it seems as if preview_move() gets called since the coordinates in the statusbar are correctly updated. Yep, that's one of the things I don't understand: the preview_move() get's

Re: GtkPreview changed behaviour

2002-04-24 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: Now if I only can find out why my plugin starts with the size of a stamp and GTK is complaining about a negative size of -9 for some widget I use.. perhaps removing this (braindead) code in dialog creation could help: gtk_widget_set_size_request(dlg, 0,

Re: Serious Gtk 2.0 Compilation Problem (PLEASE HELP)

2002-04-18 Thread Sven Neumann
Hi, Janos Blazi [EMAIL PROTECTED] writes: I installed Gtk 2.0 and could not compile the tutorial programs. Then I had a friend of mine, who is a Unix expert, reinstall everything and he could not compile the first tutorial program either. So he told me that the problem was that pkg-config

Re: GtkDrawingArea

2002-04-18 Thread Sven Neumann
Hi, Jean-Yves Lamoureux [EMAIL PROTECTED] writes: I'm using a GtkDrawingArea to display some realtime graphics. I was wondering why even with setting GDK_RGB_DITHER_NONE, the display of my picture seems to be 32bpp. Is there a way to avoid all color conversions, so I can do it myself ?

Re: GtkDrawingArea

2002-04-18 Thread Sven Neumann
Hi, Jean-Yves Lamoureux [EMAIL PROTECTED] writes: And what about displaying method ? Is a drawing area using Xshm when available ? Is there a way to do some dga stuff with it (don't think so) ? What about screen resolution change ? (XF86VidModeSwitchToMode). you can use a GdkImage of

Re: GtkDrawingArea

2002-04-18 Thread Sven Neumann
Hi, Jean-Yves Lamoureux [EMAIL PROTECTED] writes: So, I made some quick tests, the rbg_image is really 15bpp (my server display depth). So the documentation is buggy, or there's something I've missed :) it would help if you could explain what you are doing exactly. Perhaps a short code

Re: Gtk 2.0 gtk_image_new_from_file trouble

2002-04-18 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: I got the Hello World thing from gtk.org and compiled it and it worked fine. Now I inserted the lines GtkWidget *image; image = gtk_image_new_from_file (/opt/kde2/share/doc/HTML/en/khelpcenter/lines.png); and it compiled. But when i run the

Re: Building Gtk+ (pkg-config not found)

2002-04-16 Thread Sven Neumann
Hi, Janos Blazi [EMAIL PROTECTED] writes: export PKG_CONFIG_PATH=/opt/gtk/bin Salut, Sven This does not help either. Now I have tried so many things... For example I set PKG_CONFIG instead of PKG_CONFIG_PATH and the I got the message my pkg-config was too old version 0.5 or

Re: Fwd: Re: text on a pixmap

2002-04-15 Thread Sven Neumann
Hi, Jean-Yves Lamoureux [EMAIL PROTECTED] writes: Hi. I tried to create a GdkPixmap from a pixmap in a header file. (I mean a .xpm wrote by Gimp, I put the array on my program). (Tried with gdk_pixmap_create_from_xpm and _d too). GtkWidget *AboutWindow; GdkPixmap *pixmap;

Re: Fwd: Re: text on a pixmap

2002-04-15 Thread Sven Neumann
Hi, Jean-Yves Lamoureux [EMAIL PROTECTED] writes: it might be a valid GtkWindow, but gdk_pixmap_create_from_xpm_d wants a GdkWindow. You'd better compile with -Wall to catch such errors. Yeah, didn't saw this warning. I'm a bit confused with gTk and gDk in types names you know :)

Re: Fwd: Re: text on a pixmap

2002-04-15 Thread Sven Neumann
Hi, Jean-Yves Lamoureux [EMAIL PROTECTED] writes: It works well now. Hum. don't crash anymore. So I've a clear window, with NOTHING in it. just a window. I've a pixmap too. so I wanted to put, as Nuno said, the pixmap in background. But all I get is a blank window. Did I miss something

Re: Building Gtk+ (pkg-config not found)

2002-04-15 Thread Sven Neumann
Hi, Janos Blazi [EMAIL PROTECTED] writes: I downloaded pkg-config... and installed it with ./configure --prefix/opt/gtk make make install After this I tried to build glib 2.02 but received the configuration error pkg-config not found. I can see pkg-config in the directory

Re: active and inactive

2002-04-12 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: I use gtk_widget_set_state(button1,GTK_STATE_INSENSITIVE) to inactive the button1. It works !!! But then when using gtk_widget_set_state(button1,GTK_STATE_NORMAL) or gtk_widget_set_state(button1,GTK_STATE_ACTIVE) to restore button1 active. It fails.

Re: My gtk is does'nt work ??? :(

2002-04-12 Thread Sven Neumann
Hi, Nicolas web [EMAIL PROTECTED] writes: gcc -Wall -g x.c -o x 'gtk-config --libs' 'gtk-config --cflags' which won't work since you need to use backticks (`) instead of apostrophes ('). Apart from that the output of `gtk-config --cflags` `gtk-config --libs` is equivalent to `gtk-config

Re: GtkDrawingArea signal

2002-04-12 Thread Sven Neumann
Hi, Jean-Yves Lamoureux [EMAIL PROTECTED] writes: I would like to get events on a GtkDrawingArea, especially the mouse clicks and mouse position. I wrote that : gtk_signal_connect (GTK_OBJECT (MyWindow-MyDrawingArea), clicked, GTK_SIGNAL_FUNC (MyHandler), GTK_OBJECT (file_menu));

Re: null returned for g_locale_to_utf8() for g_file_get_contents()

2002-04-09 Thread Sven Neumann
Hi, Kang Jeong-Hee [EMAIL PROTECTED] writes: is this case I wanna convert euc-kr(my native) into utf8 to feed xchat 1.9 which in development against gtk2. gtk2 require each .po as utf-8, not native anymore. you probably want to use msgconv (part of gettext-0.11). Salut, Sven

Re: How to set the font in gtk2

2002-04-09 Thread Sven Neumann
Hi, Xuedong Zhang [EMAIL PROTECTED] writes: But I cann't find a way to change the font in gtk2 program? I put the following lines in my ~/.gtkrc-2.0 but it just did nothing for my default fonts? ANy one can give me a suggestion that how can I can change the default font? style

Re: How to set the font in gtk2

2002-04-09 Thread Sven Neumann
Hi, Xuedong Zhang [EMAIL PROTECTED] writes: THanks, I find this works. Anyway, is there any documents about the rc file change from gtk 1.2 to gtk2.0?? Seems I cann't use same file because they are not compatible? if I remember correctly this is the only incompatibility in the gtkrc

Re: Writing a new widget - gtk_type_unique has been deprecated

2002-03-28 Thread Sven Neumann
Hi, Bradley F. Hartman [EMAIL PROTECTED] writes: I'm going through the tutorial on how to create a new widget. The tutorial indicates that every new widget needs to have a _get_type() function (the tutorial function name is tictactoe_get_type())

Re: How center a small button horizontally like in this picture....

2002-03-27 Thread Sven Neumann
Hi, Christian Seberino [EMAIL PROTECTED] writes: I want a button to be centered horizontally in a vbox like this: -- | -- |--- vbox | |Button|| | -- | -- Notice empty space above, below and

Re: newbie: display HTML with GTK+ 2?

2002-03-26 Thread Sven Neumann
Hi, Thomas Nichols [EMAIL PROTECTED] writes: That would be great - what would you use in GTK 1.2? I can then find out whether the same approach might work in 2.0. for GTK+-2.0, check out gtkhtml2: http://gtkhtml2.codefactory.se/ Salut, Sven ___

Re: glib headaches - configure not propertly detecting gnu gettext

2002-03-25 Thread Sven Neumann
Hi, rob [EMAIL PROTECTED] writes: I'm not an autoconf wizard so this is really irritating the hell out of me. I've got the following packages installed at a base of /usr/local. % xgettext -V xgettext (GNU gettext) 0.11.1 % gettext -V gettext (GNU gettext) 0.11.1 However when I try to

Re: configure problems for gtk+-2.0.0

2002-03-21 Thread Sven Neumann
Hi, Chee Bin HOH [EMAIL PROTECTED] writes: checking ATK flags... -I/usr/local/include/atk-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -L/usr/local/lib -latk-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 checking for atk_object_get_type in -latk-1.0... no

Re: gtk2.0 theme engine error

2002-03-20 Thread Sven Neumann
Hi, Nick Soffe [EMAIL PROTECTED] writes: I'm new to this list but have enjoyed using gtk1.2 for a year or so. I have just installed gtk2.0 on my RH7.2 system. I first upgraded pkg-config from V 0.7.0 to 0.8.0 and loaded the binary RPM's from the gtk web site. The installation seemed to go

Re: gtk2.0 theme engine error

2002-03-20 Thread Sven Neumann
Hi, Nick Soffe [EMAIL PROTECTED] writes: Thanks for the information Sven. I have no engines directory in /usr/lib/gtk-2.0/2.0.0 so I assume it isn't included in the RPM's and I have to load it separately. Just for interest, why is gtk2.0 looking for the Raleigh theme when running the simple

Re: pango font for arrow keys

2002-03-20 Thread Sven Neumann
Hi, Deepa Chacko Pillai [EMAIL PROTECTED] writes: I am porting GdkFont in stock-ticker to Pango. I am not able to find the Pango font which will display the up/down arrow characters. Previously, it was Symbol (Adobe). When I used Symbol as the font to Pango, it gave me Invalid UTF8 string

Re: cant complete install..

2002-03-20 Thread Sven Neumann
Hi, ±i¥ý¥Í [EMAIL PROTECTED] writes: My system is Mandrake 8.1 after setting up glib-1.2.10, and it doesnt have an error message, then i go back to configure gtk+-1.2.10 ,but i have got the following message.. checking for catalogs to be installed... az ca cs da de el

Re: Help getting pkg-config working - GTK+ 2.0

2002-03-19 Thread Sven Neumann
Hi, Philip Bunce [EMAIL PROTECTED] writes: I am having problems getting pkg-config to work. I tried pkg-config gtk+-2.0 --cflags --libs but I got this... sh: gnome-config: not found ignore that message. It's because pkg-config has some evil hacks to try to give some sort of

Re: GtkStateType....

2002-03-18 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: i'm trying to deactivate a button, and i did the following: gtk_widget_set_state(button, GTK_STATE_INSENSITIVE); but when i try to reactivate the button i did: gtk_widget_set_state(button, GTK_STATE_NORMAL); and it doesn't work, nor do the other

Re: Error messages

2002-03-14 Thread Sven Neumann
Hi, Ricky Foo [EMAIL PROTECTED] writes: I kept getting this error message: Xlib: unexpected async reply (sequence 0x342). After a while, the application crashes out. What does it mean and how can I resolve it? looks like you are using threads and didn't read the FAQ. Salut,

Re: GtkGLArea and signals

2002-03-14 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: I've just started using GTK and GtkGLArea imparticular, and I've got a problem with signals... I have a callback that is responsible for redrawing the glarea widget when it receives an expose_event signal, which works fine when just resizing the window etc.

GTK+-DirectFB version 2.0.0 released

2002-03-12 Thread Sven Neumann
Hi, GTK+-DirectFB implements a GDK backend for GTK+-2.0.0 based on DirectFB, a graphics hardware abstraction layer for the Linux framebuffer. As DirectFB provides drawing functions, a windowing stack and manages input devices, this is a lightweight GDK port. Due to the use of DirectFB, graphic

Re: expose event pixmap question

2002-03-12 Thread Sven Neumann
Hi, Christian Seberino [EMAIL PROTECTED] writes: It is slowly becoming clearer thanks to you. We can draw on a pixmap which is associated with a window which is part of a drawing area. Configure/Expose events that *just* modify pixmaps work great. I assume at the end of one of those

Re: {SPAM?} Re: expose event pixmap question

2002-03-12 Thread Sven Neumann
Hi, Christian Seberino [EMAIL PROTECTED] writes: Thanks! I'm getting the impression NOTHING should be done in configure_handler. Why even bother to bind it to *anything* then? Am I wrong? there are cases where it makes sense to use the configure event but in most cases you just ignore it

Re: Problem starting Apps

2002-03-06 Thread Sven Neumann
Hi, Christian Quast [EMAIL PROTECTED] writes: Hi, I just installed gtk-1.3.15 and all its corresponding libs. After that I compiled and installed gimp. But I got a problem whenever I try to start any application requiering gtk. eg. gimp-1.3 [0]: gimp-1.3 gimp-1.3 (pid:13714): **

Re: help with text wrapping on a GtkTreeView and displaying non US chars

2002-03-03 Thread Sven Neumann
Hi, Ramsés Morales [EMAIL PROTECTED] writes: I want to display ISO-8859-1 characters on a text cell on a GtkTreeView. I'm getting this error: Invalid UTF8 string passed to pango_layout_set_text() The text gets cut where the first character with an accent should appear. you _must_ use

Re: gtk-deviceid How to use?

2002-02-23 Thread Sven Neumann
Hi, Lam Yick Yan [EMAIL PROTECTED] writes: I have just devleoped a X input driver for my small graphic tablet. And it is working Now I have cursor that will move according to mouse OR graphic tablet. Now I want to develope a gtk application that will ONLY respond the event

Re: upgrading GTK1.2 to GTK2.0 and displaying images

2002-02-20 Thread Sven Neumann
Hi, Peter Van Osta [EMAIL PROTECTED] writes: I am currently running a RedHat 7.2 system with GTK1.2 installed. How do I upgrade from GTK1.2 to GTK2.0 without breaking the system ? I am using GNOME for my desktop and I do not want to crash the system by changing libraries the system might

Re: memory leak (continuation)

2002-02-18 Thread Sven Neumann
Hi, William Dulyea [EMAIL PROTECTED] writes: An expansion to an earlier mail I sent... In this code snippet below I can observ that removing(destroying) container widgets does not have the desired effect. Please comment: Code snippet... cur_page =

Re: Signals...

2002-02-18 Thread Sven Neumann
Hi, Nuno Afonso [EMAIL PROTECTED] writes: i have a button that is connected to a function called restartApp(GtkWidget *widget, Tabuleiro *tabuleiro) . (Tabuleiro is a static cast of a drawing area). When the button is clicked the restartApp is called and executes the following line

Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in argument passing

2002-02-15 Thread Sven Neumann
Hi, Chris Seberino [EMAIL PROTECTED] writes: pthread_t thread; pthread_create(thread, NULL, (void*) doSimulation, NULL); Help! I trying to assign a function to a thread in my amateur PThread calls above. Without (void*) before function name I get an error and WITH (void*) I get

Re: synthetic button press event in GTK1.2

2002-02-11 Thread Sven Neumann
Hi, mallum [EMAIL PROTECTED] writes: I need to send a 'synthetic' button release event. Im under the impression I can only do this with a call to Xlibs XSendEvent. do you really need to do that? What are you trying to acomplish? Salut, Sven ___

Re: Creating widgets with auto-repeat

2002-02-09 Thread Sven Neumann
Hi, David J. Singer [EMAIL PROTECTED] writes: Thanks to Pauk for the pointers on how to make my autorepeat code a bit more elegant, but having looked at the suggestions I'm a bit puzzled... info-value++; info-count = 0; info-state = 0; info-timer_id =

Re: sleeping

2002-02-09 Thread Sven Neumann
Hi, David Eduardo Gomez Noguera [EMAIL PROTECTED] writes: I am writing a program to control two steppers. To control its speed, i would need to sleep the function that moves them. Is it safe to use sleep/nanosleep? or are there safer functions or a better way to do it than a callback from

Re: Iconify/deioconfy gtk windows

2002-02-08 Thread Sven Neumann
Hi, Paul Davis [EMAIL PROTECTED] writes: I thought there would be a gtk_window_iconify function or something similar. i doubt it. under X, (de)iconification is *generally* considered to be a function of the window manager, not the application. GTK+-2.0 has this function. Basically it

Re: Button press

2002-02-06 Thread Sven Neumann
Hi, David Eduardo Gomez Noguera [EMAIL PROTECTED] writes: I wanted to make a button behave lika a keyboard key, in that if i leave the key pressed, it will repeat. Thus i connected a button widget to a pressed signal, but when i press it its like sometimes it was kust once, and other times

Re: vertical or rotated gtk_label_new(TEXT) possible???

2002-02-06 Thread Sven Neumann
Hi, Paul Davis [EMAIL PROTECTED] writes: Is it possible to have gtk_label_new(TEXT) be vertical or rotated??? no. X (which GDK relies on in the version of GTK+ that you are almost certainly using) provides no facilities for text rotation. this is not the full truth since X11R6 does

Re: [INIMSS] How can I change the text of a button.

2002-02-04 Thread Sven Neumann
Hi, Dino Cherian K [EMAIL PROTECTED] writes: Any body please help me in finding a way to change the text of a GtkButton. gtk_label_set_text (GTK_LABEL (GTK_BIN (button)-child), foo); Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED]

Re: drawing a line

2002-02-03 Thread Sven Neumann
Hi, Shiraz Baig [EMAIL PROTECTED] writes: I do understand the advantage of expose but I wanted to understand the fundamentals first. actually I don't think the concept of expose events as exposed by X11 (and thus GDK) has any advantages, but that's a different question... BTW, I have

Re: drawing a line

2002-02-01 Thread Sven Neumann
Hi, Shiraz Baig [EMAIL PROTECTED] writes: I changed the parameters as suggested by Mr Neumann and viola! I am drawing the lines without expose event and only with pushing a button. now move your mouse over the line you've just drawn or obscure the window by moving another window over it.

Re: HELP: Compiling GTK+ Applications on UNIX

2002-02-01 Thread Sven Neumann
Hi, Havoc Pennington [EMAIL PROTECTED] writes: Paul Davis [EMAIL PROTECTED] writes: Paul Davis [EMAIL PROTECTED] writes: i sincerely hope that in a future release of the 1.2 series, pkg-config gets added. Note that pkg-config has some dubious legacy hacks in it - try

Re: gtk+ 1.2 and gtk+ 1.3

2002-01-31 Thread Sven Neumann
Hi, satyajit kanungo [EMAIL PROTECTED] writes: Yes , you can install both the libraries on the same system and work on both the version . you can change your LD_LIBRARY_PATH and BIN path accordingly to compile the software with different version . you don't even need to install into

Re: drawing a line

2002-01-31 Thread Sven Neumann
Hi, Shiraz Baig [EMAIL PROTECTED] writes: I want to draw a line when I push a button. I have written the following code. It draws line thru two alternative signal commands. a. Thru the timer function. b. Thru the push button. It works with the timer function. But it does not work with

Re: HELP: Compiling GTK+ Applications on UNIX

2002-01-29 Thread Sven Neumann
Hi, Paul Davis [EMAIL PROTECTED] writes: What is the different between these 2 methods: 1. gcc -o myprog `gtk-config --cflags --libs` (GTK FAQ) 2. cc `pkg-config --cflags --libs gtk+-2.0` myprog.c -o mypgrog (GTK+ Reference Manual) as was already stated, the first is the 1.2 way, the

Re: Passing values to functions

2002-01-29 Thread Sven Neumann
Hi, Shiraz Baig [EMAIL PROTECTED] writes: I am a newbie. Can anyone tell me, in the following elementary program, why doesn't the function hello that it has not been passed any data. Because in gtk-signal-connect, we are passing NULL data. Wherefrom is this data coming. In another case, I

Re: passing values to functions - question repeated

2002-01-29 Thread Sven Neumann
Hi, Shiraz Baig [EMAIL PROTECTED] writes: I am going to repeat my question and try to clarify it further. We know that in any program, whenever we call a function, we have to pass some data to that function and then only that function can use that data. In my program (that I

Re: Memory problems with g_list_append()

2002-01-29 Thread Sven Neumann
Hi, Jeff Shipman - SysProg [EMAIL PROTECTED] writes: I have a situation where I build a list of valid shells (from /etc/shells) with one function and then compare a user's shell with that list using another function to determine if the user has a valid shell. However, I'm running into a

Re: Make gtk 1.3 ??

2002-01-28 Thread Sven Neumann
Hi, Vahid Zahiri [EMAIL PROTECTED] writes: I install Gtk 1.3.7,and i can run testgtk and gtk-demo. you should consider upgrading to a newer version (1.3.12 is the latest release). when i want compile my program, what can i use instead `gtk-config --libs --cflags`? pkg-config --libs

Re: conflicting types?

2002-01-27 Thread Sven Neumann
Hi, Vahid Zahiri [EMAIL PROTECTED] writes: when i use #include gdk/gdkx.h and compile my program,i get this error : /usr/include/X11/Xlib.h:291: conflicting types for `Screen' /usr/local/dx/include/dx/object.h:44: previous declaration of `Screen' both libraries violate the

Re: Multiple sub-windows browsing.

2002-01-27 Thread Sven Neumann
Hi, Raphaël Souchal [EMAIL PROTECTED] writes: I'd like to set a range of 6 second-level windows in my main window,one behind the other,and to be able to select the one I want on top Any idea ? I'd use a GtkNotebook and hide the tabs (gtk_notebook_set_show_tabs). Salut, Sven

Re: TAB operation in text widget

2002-01-25 Thread Sven Neumann
Hi, Philip Bunce [EMAIL PROTECTED] writes: Yes, GtkTextView is only in 1.3.x/2.0. The gtk.org homepage seemed to discourage using 1.3 or 2.0 by calling 1.2 the stable version, so since I am new to GTK+ I decided that stability seemed like a good idea. If I upgrade to get GtkTextView,

Re: How to use GError?

2002-01-22 Thread Sven Neumann
Hi, Luis Velez [EMAIL PROTECTED] writes: I am trying to use gdk_pixbuf_save function but this function uses a GError as a parameter. So I create the GError and use the g_error_new_literal function to give it a domain, code and etc... The problem is that even including the glib.h GError

<    2   3   4   5   6   7   8   >