Re: GtkWindow popup signal

2002-08-13 Thread Sven Neumann
Hi, John Skiff <[EMAIL PROTECTED]> writes: > I'm very new to GTK+. I've been searching for a signal that a > toplevel window has just been displayed. Is there any way to be > notified when a window is popped up? you are looking for "map_event". Salut, Sven __

Re: Crashing g_string_sprintf when printing invalid floats. gtk+-1.2.9 on Linux

2002-08-12 Thread Sven Neumann
Hi, "Eric M. Monsler" <[EMAIL PROTECTED]> writes: > I'm jumping lists with this; my apologies, but it's definitely a gtk > bug and so want to followup to gtk-list. the correct place to report this would probably have been http://bugzilla.gnome.org/. > If I try to print a denormalized float wit

Re: displaying images

2002-08-04 Thread Sven Neumann
Hi, simith nambiar <[EMAIL PROTECTED]> writes: >i managed to open and display an image > using GtkImage with help from the list though! > i wanted to do that adding a timeout every 1 second > so i add an event expose and how do i write the expose > > > i want to do something like

Re: on GdkPixbuf

2002-08-02 Thread Sven Neumann
Hi, simith nambiar <[EMAIL PROTECTED]> writes: > iam struggling to get a GdkPixnmap object > which has a JPEG file in it to display on the drawing > area, > Please could anyone tell me how i should put it on the > drawing area in the > expose event > like we put a RGB data as: > >

Re: problem compiling GTK-interface combined with image prcessin lib

2002-08-01 Thread Sven Neumann
Hi, Peter Van Osta <[EMAIL PROTECTED]> writes: > I have built an interface with GTK1.2 and I am now trying to add an > image processing library. I am using GTK1.2 on Redhat Linux 7.2 (Linux > linux-1 > 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686 unknown). > > The compilation stops due to a co

Re: pb with fonts

2002-08-01 Thread Sven Neumann
Hi, <[EMAIL PROTECTED]> writes: > when i compile the classic hello world in gtk and execute it, i have fonts pb > > execution gives me that : > $ ./test > > ** (test:1972): WARNING **: Couldn't load font "Sans 10" falling back to > "Sans 10" > > ** (test:1972): WARNING **: Couldn't load font

Re: Compilation ERROR..Please Help

2002-08-01 Thread Sven Neumann
ajay kumar <[EMAIL PROTECTED]> writes: > I am trying to compile hello world prg.But its giving > the error-"gtk/gtk.h :No such file or directory" see http://developer.gnome.org/doc/API/2.0/gtk/gtk-compiling.html Salut, Sven ___ gtk-list mailing list

Re: Can't correctly set data to an object (button)

2002-07-31 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: > Well I have toggle button to wich I attached a default string ("DEFAULT") > using the gtk_object_set_user_data function. > > In the callback toggle function I reassign this string regarding the state > of the button. > > I pick up the new string from a gtk_entr

Re: Question about GtkWidget pointer?

2002-07-31 Thread Sven Neumann
Hi, "David Wang (Wang Xin-lu)" <[EMAIL PROTECTED]> writes: > I wrote a function to create menu: > void setupMenu(GtkWidget *window, GtkWidget *menu_bar, GtkWidget *menu_vbox, > GtkWidget *root_menu, GtkWidget *menu, char *labelname, gboolean boo) > [...] > why GtkWidget pointer can not

Re: Solved: gtk_widget_add_events and GtkDrawingArea

2002-07-30 Thread Sven Neumann
Hi, Peter Van Osta <[EMAIL PROTECTED]> writes: > By adding "gtk_widget_add_events" in the "expose_event" callback > function I could set the additional event(s) at the moment the > GtkDrawingArea pops up. I have included the sample code below. I don't > expect any problems to occur when the GtkD

Re: show and hide a window

2002-07-30 Thread Sven Neumann
Hi, Peter Van Osta <[EMAIL PROTECTED]> writes: > I wan to hide and show a window, but simply doing a "gtk_widget_show" > after hiding the window gives the following error: > > Gtk-CRITICAL **: file gtkwidget.c: line 1428 (gtk_widget_show): > assertion `GTK_IS_WIDGET (widget)' failed. gtk_widg

Re: Info needed regarding gdk_pixbuf_get_depth

2002-07-30 Thread Sven Neumann
Hi, "Santhana Krishnan" <[EMAIL PROTECTED]> writes: > Is there any chance the depth of a drawable widget can be '0' ? In the > following piece of code i am getting the depth value as zero for some > widgets (eg. buttons, label..). > >if (GDK_IS_DRAWABLE (widget)) >{ >depth

Re: color of button..

2002-07-30 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: > how can i change the color of the button... > reply me soon.. a quich search on Google would have certainly led you to this page: http://www106.pair.com/rhp/gtk-colors.html Salut, Sven ___ gtk-list

Re: help on RGB to jpeg

2002-07-30 Thread Sven Neumann
Hi, simith nambiar <[EMAIL PROTECTED]> writes: > does anyone know of a library for converting RGB24 > data into jpeg for Linux. > can that be done using gtk only ? this can be done using gdk-pixbuf which is part of GTK+-2.0. Salut, Sven ___ gtk-l

Re: Glib Newbie Question: manual event invoking

2002-07-29 Thread Sven Neumann
Hi, André Küster <[EMAIL PROTECTED]> writes: > I want to play a little bit with the glib2.0 Mainloop, now I have a > question. I can add multiple Eventsources, but they are obviously > timer-controled. In GTK I have gtk_signal_connect, to connect a signal > to a specific event. I think glib's g_

Re: drawing a bitmap in a window with gdk_draw_rgb_image

2002-07-26 Thread Sven Neumann
Hi, Peter Van Osta <[EMAIL PROTECTED]> writes: > I have used glade to build an application in which I want to use 4 color > RGB images throughout the entire application. I have taken a look at an > example on the web (see below), but I run into trouble when I want to > "share" the variables over

Re: GdkDiplay

2002-07-25 Thread Sven Neumann
Hi, Reham Younis <[EMAIL PROTECTED]> writes: > But the problem is that I cant find on libgdk which is > installed along with gtk. the reason is that GdkDisplay is part of the multi-head changes that were introduced after 2.0. GTK+-2.0.x doesn't support this feature. You'll have to wait for GTK+

Re: Urgent: "draw" signal under gtk-2.0

2002-07-25 Thread Sven Neumann
Hi, Matteo Frigerio <[EMAIL PROTECTED]> writes: > I have a big problem: my app use the signal "draw" > (under gtk-1.2) to draw a rectangle around the widget > (idea shamelessly stolen from glade) but under gtk-2.0 > there is no more the "draw" signal. What can i do ?? connect to the widget's "e

Re: directory traversal

2002-07-22 Thread Sven Neumann
Hi, Jeff Abrahamson <[EMAIL PROTECTED]> writes: > I want to recursively traverse a directory. It seems dumb to write > this from scratch (and easy to goof on corner cases), but I haven't > found anything in glib / gtk / etc. that seems to address it. (Yeah, > this is more of a glib question than

Re: Wheel mouse scrolling.

2002-07-22 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: > how can I detect the wheel mouse's scrolling up and down? > I know Gtk+ 1.2.x versions has support for mousewheel. connect to the widget's "scroll_event". Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http:/

Re: Configure.in ang GTK 2

2002-07-21 Thread Sven Neumann
Hi, Paul Davis <[EMAIL PROTECTED]> writes: > >AM_PATH_GTK_2_0(2.0.0, , AC_MSG_ERROR(Cannot find GTK+-2.0)) > > i thought gtk+ 2 was eschewing the horrible autoconf macros in favor > of pkg-config? that's a misunderstanding, GTK+-2 got rid of gtk-config in favor of pkg-config. The much superiou

Re: Configure.in ang GTK 2

2002-07-21 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: > > > But I don't know what I must write to test if gtk2 is install on the > > > computeur. And where I precise the use gtk2 and not gtk1.2 to compile the > > > project. > > > > AM_PATH_GTK_2_0(2.0.0, , AC_MSG_ERROR(Cannot find GTK+-2.0)) > > Is there a reason to u

Re: Checking modifier keys at any moment

2002-07-18 Thread Sven Neumann
Hi, Paul Davis <[EMAIL PROTECTED]> writes: > >I have a handler for GtkTreeView's row_activated and I'd like to check > >there if at the moment of signal emision any modifier key (I'm mostly > >interested in shift and mod1 keys) is pressed. Is there any gtk function > >that returns current state

Re: from RGB - JPEG

2002-07-17 Thread Sven Neumann
Hi, simith nambiar <[EMAIL PROTECTED]> writes: > I am getting Raw RGB data - from my webcam > is there any freely available tool or function in Gtk > by which i can convert it into a JPEG image, and save > it so that i can upload it to a web server if you insist on doing it yourself

Re: newbie's question - it's urgent .

2002-07-17 Thread Sven Neumann
Hi, Chris Nystrom <[EMAIL PROTECTED]> writes: > > I am trying to draw RGB images on to the > > window, iam grabbing a frame once and displaying it in > > the expose event handler, this is ok when i do it for > > the first time , but what if i need to do it > > continiously ? > >is t

Re: OSF: glib configure skript makes trouble

2002-07-16 Thread Sven Neumann
Hi, Martin Kestel <[EMAIL PROTECTED]> writes: > it does not seem to find > /usr/local/include/libintl.h > but it is there, I know it; > I tried the following: > I said: > > ./configure --oldincludedir=/usr/local/include --includedir=/usr/local/include > > just to get the same result. > >

Re: OSF: glib configure skript makes trouble

2002-07-16 Thread Sven Neumann
Hi, Martin Kestel <[EMAIL PROTECTED]> writes: > Now, the machine is a OSF1 V5.1 732 alpha and I am trying to setup glib and > gtk, most recent version (2.0.4 glib and 2.0.5 gtk). > > I was saying ./configure in the right place and got errors about not-found > packages; I installed them: pkgconf

Re: help on plotting RGB data

2002-07-16 Thread Sven Neumann
Hi, simith nambiar <[EMAIL PROTECTED]> writes: > i have a problem here ! i have a Logitech > Quickcam driver - v4l compliant and i am reading data > - the driver gives a frame of 352 X 288 pixels in RGB > format (3 bytes/pixel), now i need to plot it on a > window using gtk > > i sho

Re: widgets do not appear, due to "event"

2002-07-12 Thread Sven Neumann
Hi, Saquib Malik <[EMAIL PROTECTED]> writes: > The following code is supposed draw a grid of buttons > on the screen, the buttons are being created using a > nested for loop, the whole thing is drawn perfectly > when i try to connect a signal and specifiy the signal > "clicked" but when i use th

Re: gtk_menu_pop

2002-07-11 Thread Sven Neumann
Hi, Saquib Malik <[EMAIL PROTECTED]> writes: > I was trying to get a pop up menu from a button, Main > and Gale did this in one of their examples, but that > was too vague for me, could anybody tell me the > prototype of the function > > gtk_menu_pop() > > alongwith a some detail of how it

Re: Is it a bug with gdk_property_get() ,implemented in directFB?

2002-07-10 Thread Sven Neumann
Hi, sandy_21 <[EMAIL PROTECTED]> writes: >I invoked this API like this: > intactual_length,actual_format; > GdkAtom actual_property_type; > jobject *obj_ptr; > > * gdk_property_get* (event->any.window, >gdk_atom_intern ("_GNU_GTKAWT_ADDR", FAL

Re: 3 questions

2002-07-09 Thread Sven Neumann
Hi, Todd Goyen <[EMAIL PROTECTED]> writes: > 1- I have a gtkfilesel widget and when i view a directory i get > errors like this when there is an umlauted character in the > filename: > > Gtk-Message: [Invalid UTF-8] The filename "Björk - Headphones.wav" > couldn't be converted to UTF-8 (try set

Re: question about gtk+ 2.0

2002-07-09 Thread Sven Neumann
Hi, Vince Busam <[EMAIL PROTECTED]> writes: > It's built into the standard gtk distribution, and working very well for > me on and ARM target. See > http://developer.gnome.org/doc/API/2.0/gtk/gtk-framebuffer.html alternatively you can download GTK+-DirectFB (another X-less GTK+ port) by foll

Re: pango 1.0.3 compilation error(pangoftp2)

2002-07-01 Thread Sven Neumann
Hi, sleon <[EMAIL PROTECTED]> writes: > Ok :) hier is my new error *G :) BTW, this is definitely the wrong mailing-list to ask about compile problems with The GIMP. > /bin/sh ../libtool --mode=link gcc -g -O2 -Wall -o gimp-1.3 > -export-dynamic -export-symbols ./gimp.sym undo_history.o image

Re: pango 1.0.3 compilation error(pangoftp2)

2002-07-01 Thread Sven Neumann
Hi, Chris Wareham <[EMAIL PROTECTED]> writes: > Replace freetype 2.1.0 with 2.0.9. The API has changed with version > 2.1.0, and the only way to use it with Pango is to alter various > library calls in the Pango source. I have done this myself, but it > was tedious ... this is not true, Pango-1

Re: missing g_value_get_as_pointer

2002-07-01 Thread Sven Neumann
Hi, cbhoh <[EMAIL PROTECTED]> writes: > I am having a problem for installing GConf-1.2.0, > it said that "undefine reference to g_value_get_as_pointer" > > and I found that gobject-2.0 built from glib-2.0.4.tar.gz does not have > the function definition. this function was renamed before the gl

Re: pango 1.0.3 compilation error(pangoftp2)

2002-06-29 Thread Sven Neumann
Hi, sleon <[EMAIL PROTECTED]> writes: > I habe xfree 4.2.0 2.4.18 kernel, 2.1.0 freetype2 Slackware 8.1 , amd > duron 1 ghz and i am trying to compile pango. > Without freetype2 it compiles also without any problems. But as i > instlled freetype2 and try to compile pango with it i become this >

Re: libart-2.0.pc

2002-06-29 Thread Sven Neumann
Hi, sleon <[EMAIL PROTECTED]> writes: > hallo, my problem: i am trying to compile gimp 1.3.7, but the > configure scipt says to me , that it can't find a libart > package(libart-2.0.pc). Ok then i downloaded libart-2.2.3 and compiled > it. but there is no *.pc file, which is needed by gimp conif

Re: GTKRC file

2002-06-27 Thread Sven Neumann
Hi, "Andrew E. Makeev" <[EMAIL PROTECTED]> writes: > Studing source codes for gtk-2.0 I found that "font" and "fontset" > tokens are just ignored in gtkrc.c now. One should use "font_name" token > to define style. > > Why I found no word about it on WEB site? because you didn't look close enou

Re: How do online html docs in GTK+? in /portable/ way possible too?

2002-06-25 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: > Ahh.. but gtk uses something *other than ASCII*. > > And thus assuming that sizeof(char) * (len+1) will result in enough storage > > >> ptr = g_malloc(sizeof(char) * (len + 1)); > > is a bug. The code as written will just "happen to work" for

Re: Problem using gtk+-2.0.4

2002-06-25 Thread Sven Neumann
Hi, Gandalf <[EMAIL PROTECTED]> writes: > I have resolved my problem by installing gtk+-1.2.1 and glib-1.2.1 and > I can execute gpa! you better update to glib-1.2.10 and gtk+-1.2.10. The 1.2.1 are stone-old and lots of bugs have been fixed since then. Salut, Sven ___

Re: Problem using gtk+-2.0.4

2002-06-25 Thread Sven Neumann
Hi, Gandalf <[EMAIL PROTECTED]> writes: > I want to use the util "gpa" (GnuPG Assistant) on Linux Mandrake 8.0 > but that required the utilisation of gtk because xhen I execute > ./configure of "gpa", it's said: > > * > Checking for GTK - version >= 1.2.1 no > "The gtk-config script install

Re: strange Seg fault

2002-06-25 Thread Sven Neumann
Hi, Marco Lettere <[EMAIL PROTECTED]> writes: > you are trying to write something to non allocated memory. > *t[3] is an array of pointers which are not initialized and could point > anywhere. when you make a sprintf on t[0] you are writing somewhere you > don't expect. Actually you're overwrit

Re: sprintf and clists

2002-06-25 Thread Sven Neumann
Hi, Sean Holt <[EMAIL PROTECTED]> writes: > gchar buffer[1024]; > > sprintf(buffer, "%d", some_dumb_int); > cclist[0] = strdup(buffer); or in one line w/o the risk of buffer overflows: cclist[0] = g_strdup_printf ("%d", some_dumb_int); Salut, Sven ___

Re: sprintf and clists

2002-06-25 Thread Sven Neumann
Hi, > check out if the string is '\0' terminated. best initialize it after the > declaration with memset(buffer,'\0',1024); sprintf terminates the string for you (but see below). > BTW wouldn't it be enough to use a buffer of size "sizeof(int)" ? no. You need to allocate enough space to print

Re: GTK+-2.0.5 compile error (Solaris)

2002-06-25 Thread Sven Neumann
Hi, "Dongho Shin" <[EMAIL PROTECTED]> writes: > I compiled the GTK+-2.0.5 on my Sun Ultra 10 / Solaris 2.6 machine, > but there were some errors like below: > > io-tiff.c:141: parse error before `tiff_put_contig' > io-tiff.c:141: warning: type defaults to `int' in declaration of `tiff_put_conti

Re: How do online html docs in GTK+? in /portable/ way possible too?

2002-06-25 Thread Sven Neumann
Hi, Christian Seberino <[EMAIL PROTECTED]> writes: > Netscape sounds interesting do you > know how to do this?... does this mean "fork" and "exec" > system calls? I don't suppose it is possible to do this with PThreads is it? I suppose you have a look the code of the webbrowser plug-in in T

Re: GIconv

2002-06-24 Thread Sven Neumann
Hi, "Olaf Leidinger" <[EMAIL PROTECTED]> writes: > Does anybody know how giconv is defined??? it's use is explained here: http://developer.gnome.org/doc/API/2.0/glib/glib-character-set-conversion.html Salut, Sven ___ gtk-list mailing list [EMAIL PR

Re: GtkTreeView - why so SLOW?

2002-06-24 Thread Sven Neumann
Hi, Olaf Frączyk <[EMAIL PROTECTED]> writes: > Inserting rows in TreeView takes much time, and eats a lot of processor > time. > The TreeView is inserted into a scrolled Window. When I use the ruler to > go up to the list and down, the CPU usage is about 50-60 percent on > Duron 1GHz. > I use Li

Re: Building glib2 without libiconv

2002-06-24 Thread Sven Neumann
Hi, "Jason Bodnar" <[EMAIL PROTECTED]> writes: > I'd like to build gtk2 without libiconv (I'm trying to keep things as small as > possibe and I'm using uClibc). I've tried configuring it like so: > > $ ./configure --prefix=/home/jbodnar/projects/mp3/filesystem --disable-nls > --disable-largefil

Re: connecting callbacks to signals

2002-06-22 Thread Sven Neumann
Hi, Peter Jay Salzman <[EMAIL PROTECTED]> writes: > i never quite got the hang of this... > > can someone explain the difference between gtk_signal_connect and > gtk_signal_connect_object? they swap the arguments that are passed to the signal handler. It's sometimes useful if you have code tha

Re: compiling gtk 1.2.5 for Darwin/mac os x

2002-06-21 Thread Sven Neumann
Hi, couzteau <[EMAIL PROTECTED]> writes: > i'm trying to install gtk 1.2.5 in order to install wxPython. > > when run make (after sucessfully running ./configure --prefix=/usr/gtk > -host=ppc) > > i get the following error: > gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g

Re: Problem with national char

2002-06-21 Thread Sven Neumann
Hi, Michal Ociepka <[EMAIL PROTECTED]> writes: > I'm using gtk+->2.0 > When I create some widget, for example label, and then : > gtk_label_set_text(., "here is some char ISO8859-2, european-polish") > > Program receive fail: > Invalid UTF8 string passwed to pango_layout_set_text. > Can You

Re: thread error under gtk 2.0

2002-06-21 Thread Sven Neumann
Hi, Matteo Frigerio <[EMAIL PROTECTED]> writes: > For an example if i make a thread that create some widget in a > window i occurs in a sync error. Seem that gtk ignore > gdk_thread_enter()/leave(). I apply the fix suggested in a previus > mail (modify gdkwindow.c) but there is no change. There

Re: Not preserving order in chained list of hash table Any consequences

2002-06-21 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: > As I see from following code excerpt from g_hash_table_resize(): > > for (i = 0; i < hash_table->size; i++) > for (node = hash_table->nodes[i]; node; node = next) > { > next = node->next; > > hash_val = (* hash_table->hash_func) (node

Re: using lookup_widget

2002-06-21 Thread Sven Neumann
ZToon <[EMAIL PROTECTED]> writes: > Thnx Sven, but the day I want to connect multiple wigdets with 1 > gtk_signal_connect, I could I do ? what do you mean? g_signal_connect() takes exactly one widget as first argument. You can't connect to signals from multiple widgets with one call of g_signal_

Re: using lookup_widget

2002-06-21 Thread Sven Neumann
Hi, ztoon <[EMAIL PROTECTED]> writes: > I have some "Segmentations Fault" problems using lookup_widget in a window just try to avoid lookup_widget(). It's inefficient and error-prone. > TList = gtk_clist_new_with_titles(2,TListTitles); > >gtk_signal_connect(GTK_OBJECT(TList),"sele

Re: destroy_signal

2002-06-18 Thread Sven Neumann
Hi, Monserrat Seisdedos Nuñez <[EMAIL PROTECTED]> writes: > I have a window, it has the X button to destroy it. > but i want the X button to just hide it not to destroy it. In the destroy > callback i wrote down: > > gtk_window_hide(window); > > but it seems to destroy the window as well. > >

Re: Shrinking GTK for PDA usage

2002-06-16 Thread Sven Neumann
Hi, Luis Oliveira <[EMAIL PROTECTED]> writes: > > you could replace X11 with DirectFB (see > > http://www.directfb.org/gtk.xml). > > I'm not sure that would be an option I'm afraid. I'd be happy to hear about your reasons. Salut, Sven ___ gtk-list

Re: Re[2]: ISO language codes

2002-06-16 Thread Sven Neumann
Hi, Phil Krylov <[EMAIL PROTECTED]> writes: > SN> In what way would Pango use ISO language codes ? > > The documentation for GtkTextTag "language" property says: > > "language" (gchararray : Read / Write) > > > > The language this text is in, as an ISO code. Pango can use this as a > > hint whe

Re: ISO language codes

2002-06-16 Thread Sven Neumann
Hi, Phil Krylov <[EMAIL PROTECTED]> writes: > Where can I find a list of ISO language codes supported by Pango? In what way would Pango use ISO language codes ? Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/li

Re: Shrinking GTK for PDA usage

2002-06-16 Thread Sven Neumann
Hi, Luis Oliveira <[EMAIL PROTECTED]> writes: > I am trying to package GTK 2.0 for my PDA, but it won't get adopted if > it's too big. > > These are the libs currently installed on my pda: > > 230 libgdk-1.2.so.0.9.1 > 84 libgdk_pixbuf.so.2.0.0 > 169 libglib-1.2.so.0.0.10 > 1463

Re: How to embed/inline jpg images in compressed form

2002-06-16 Thread Sven Neumann
Christof Petig <[EMAIL PROTECTED]> writes: > Learning to praise the features of gtk+-2.0 I quickly came to a question: > > Is it possible to embed (or inline if you prefer) jpeg (or png) images > in an gtk+ 2.0 application without uncompressing them (as done via > gdk-pixbuf-csource). I haven't

Re: setup question

2002-06-14 Thread Sven Neumann
Hi, [EMAIL PROTECTED] writes: > I have installed all the packages and have got the base example to > work. But when I try the helloworld or other examples with letters > I get an error that states can't find "Sans 10" and all callbacks > fail. Do I need to link somehow different to find fonts?

Re: i18n of gtk

2002-06-14 Thread Sven Neumann
Hi, "Shark" <[EMAIL PROTECTED]> writes: > gnome I am a newbie. How does gtk support i18n? Do I just call > gtk_set_locale and don't care anything else? you don't call gtk_set_locale() at all since gtk_init() does this for you (at least in GTK+-2.0). this URL could answer some of your questions

Re: Time Code

2002-06-11 Thread Sven Neumann
Hi, "Sidabras, Jason" <[EMAIL PROTECTED]> writes: > I need some code that will run a function about every 30 seconds while > still allowing the program to do its normal tasks. http://developer.gnome.org/doc/API/2.0/glib/glib-the-main-event-loop.html#g-timeout-add Salut, Sven _

Re: Compile under MDK 8.2 bis

2002-06-11 Thread Sven Neumann
Hi, "Castor Fou" <[EMAIL PROTECTED]> writes: > When I compile, I have errors : > [castor@athlon proj]$ make > gcc -Wall -ansi -g -c -o fonction_menu.o you want to use gcc -Wall -ansi -g -c `gtk-config --cflags` -o fonction_menu.o and use the output of 'gtk-config --libs' when linking. Salu

Re: Problem building Pango

2002-06-10 Thread Sven Neumann
Hi, jblazi <[EMAIL PROTECTED]> writes: > I had to reinstall my system and now I cannot build Pango: I receive > the error message > > aclocal: configure.in: 262: macro `AM_PATH_GLIB_2_0' not found in library > make: *** [aclocal.m4] Error 1 > > What can I do? use the tarball and the confi

Re: loading windows at a fixed x & y position

2002-06-08 Thread Sven Neumann
Hi, "Punit Neb" <[EMAIL PROTECTED]> writes: > i want to load a window at a fixed x & y position. > > after a lot of searching on the net, i found the function for this is >gtk_window_set_uposition. however on compilation i get implicit declaration of >function int gtk_window_set_uposition (..

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 d

Re: [gtkmm] Problem with g_io_channel_read_chars

2002-06-07 Thread Sven Neumann
Hi, "Andrew E. Makeev" <[EMAIL PROTECTED]> writes: > 1. where is described which encodings are legal to use in Glib::convert? iconv --list gives you a list of known encodings. Note that this list is not guaranteed to be the same everywhere (depends on the version of iconv). The common encodings

Re: I18N text (Input methods?)

2002-06-07 Thread Sven Neumann
Hi, Ian Britten <[EMAIL PROTECTED]> writes: > [ PS - Ideally, I'd like to be doing this in GTK 1.2, if possible... ] you'd do yourself a favor by using GTK+-2.0 since improving the i18n support has been one of the main design goals of GTK+-2.0. It uses UTF-8 and Unicode all over the place and

Re: gtk_adjustment_get_value()

2002-06-07 Thread Sven Neumann
Hi, "David J. Singer" <[EMAIL PROTECTED]> writes: > I've been playing around with Gtk Adjustments and have found some > useful examples My problem is, everything works just fine until > I try and call gtk_adjustment_get_value(), then it gets weird...! > > My compilation fails with: undef

Re: blit'n

2002-06-07 Thread Sven Neumann
Hi, Billy Patton <[EMAIL PROTECTED]> writes: > At the end of this function I do a > > gdk_draw_pixmap(drawing_area->window,gc,pixmap,0,0,0,0,canvas_x,canvas_y); > > > I take it that this is my blitting. Problem is I may call this draw_cell > several hundred thousand times. SO this is ver s

Re: Problem with g_io_channel_read_chars

2002-06-07 Thread Sven Neumann
Hi, "Andrew E. Makeev" <[EMAIL PROTECTED]> writes: > send 2nd (and any next, if I didn't remove watch callback with error): > then I got error: "Invalid byte sequence in conversion input" that came > in GError. I suspect that you are not dealing with UTF-8 encoded data here and didn't set the e

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 aroun

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 PROTEC

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 direct

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: 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: 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 i

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: 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 ot

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

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.

Re: Translucency with GTK2

2002-05-25 Thread Sven Neumann
Hi, Shane Butler <[EMAIL PROTECTED]> writes: > Does GTK+ support transparency of windows etc?? I realise it can > support shaped windows, but I am specifically interested in setting a > window to be say 50% translucent. I believe this sort of functionality > is provided by XRENDER. this funct

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 pang

Re: pointer grabs and drawing areas

2002-05-22 Thread Sven Neumann
Hi, Paul Davis <[EMAIL PROTECTED]> writes: > i have a drawing area set up to receive both button press+release > events. my understanding is that X/GDK automatically does a pointer > grab when a GdkWindow has these events set for itself. i also receive > motion events, via motion hints. X11 doe

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 PROTECT

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: 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 = gtk_style

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/usr/local/inclu

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: 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 ; z (char) '~' ) >pstring[z] = '~'; }

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 librar

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 > > c

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 te

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: multiple gtk_image

2002-05-14 Thread Sven Neumann
Hi, Jean-Yves Lamoureux <[EMAIL PROTECTED]> writes: > I've a set of gtk_image created like that : > > image1 = gtk_image_new (gdk_image_new (GDK_IMAGE_FASTEST, > gdk_visual_get_system (), 256, 256), NULL); huh? gtk_image_new() doesn't take any parameters. I guess you mean gtk_image_new_from_i

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

<    1   2   3   4   5   6   7   8   9   >