How to put GTK into a C function?

2002-09-05 Thread Mullin Yu
Hi all,   I saw from the tutorial that we can write a simple GTK application like the following:   #include   int main( int   argc,  char *argv[] ){    GtkWidget *window;        gtk_init (&argc, &argv);        window = gtk_window_new (GTK_WINDOW_TOPLEVEL);    gtk_widget_show  (wi

The speed of the application is slow when we have little heavy graphics on the drawing area.. Please help

2002-09-05 Thread rahul karurkar
Hi all       I have been working on this problem since long but could not get the result.     I am using GTK1.2 and Cosmo3D(a opengl library). I have mapped Cosmo3D window onto Gtk drawing area.     The speed I get with the application seems slow. When I render the surfaces with graphics t

Re: How to put GTK into a C function?

2002-09-05 Thread John . Cupitt
Mullin Yu wrote: > Hi all, > > I saw from the tutorial that we can write a simple GTK application like > the following: > > #include > > int main( int argc, > char *argv[] ) > { > > } > > But now, I want to put it inside a function that will call to pop up a > window. W

why there's no public gtk_rgb_to_hsv/gtk_hsv_to_rgb ?

2002-09-05 Thread Olexiy Avramchenko
Hello, I wonder why GTK has no public gtk_rgb_to_hsv functions ? Of course, it is not usually need but library uses them internally so why not to give the public access ? Olexiy ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/

GTK Kill

2002-09-05 Thread Stöhr Kirsten
Which sub-routine is called when a gtk program is killed by a Window Manager (like WindowMaker)? Kirsten! ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Urgent help about key_press_event

2002-09-05 Thread Matteo Frigerio
Hello at all the list. I have a problem with key_press_event. I have attach a key_press_event handler at the main window of my application. This window contain a GtkHBox with a menu and other things. The problem is that when i press F10 the menu get the focus under linux, under win2000 the system

GtkPaned question

2002-09-05 Thread Nils O. Selåsdal
I have a gtkpaned with a treeview at top and a texview at the bottom, repositioning the gutter flickers way to much. Is there a way to set the paned so it doesn’t resize the childs until one releases the mouse(sort of the diffrence between opaque/boxed resizing/dragging in many window managers.)

Help with TOM language bindings needed

2002-09-05 Thread Kai Wetzel
Hi, the TOM language bindings have not been updated to support Gtk 2 let alone GNOME 2, so I started adding wrappers for many of the new Gtk widgets and added/changed methods where necessary. I'm having a big problem now: The TOM bindings use this code: handler_id = gtk_signal_connect_full (obj

Re: Problems building testgtk

2002-09-05 Thread Larry McQueary
Well, I'm not sure about plain old C, but ANSI C++ considers any const to be private to its translation unit. I can only intuit that somehow GCC is doing the same in this instance, even though it's being called as gcc and not g++. I agree that removing the const from the declaration clears th

ierror compiling/installing 2.0.6 on solaris 7

2002-09-05 Thread Billy Patton
I get the following error from the tests directory: Making install in tests make[1]: Entering directory `/data/cdmg/opt/temp/gtk+-2.0.6/tests' /bin/bash ../libtool --mode=link gcc -g -O2 -Wall -o testgtk prop-editor.o testgtk.o ../gdk-pixbuf/libgdk_pixbuf-2.0.la ../gdk/libgdk-x11-2.0.la ../g

Re: ierror compiling/installing 2.0.6 on solaris 7

2002-09-05 Thread Larry McQueary
I experience the same problem on Solaris 2.8 with gcc-3.2. It has to do with visibility of const variables outside their translation units and so far I haven't figured out a better way to fix it than the following: Modify gtk/gtkmain.c and gtk/gtkmain.h to remove the "const" specifier from th

new mailing list for GLib requested

2002-09-05 Thread Kang Jeong-Hee
Hi. Differently from older version of GTK+, GTK+ 2 has powerful fundamentality of library: GLib, GObject. They are standalone library as well as a basement of GDK and GTK. and this gtk-(*-)list flood with GDK, GTK-level issues. it's hard job to find resources for GLib, GObject only. so I ask to

Re: new mailing list for GLib requested

2002-09-05 Thread Lars Clausen
On Fri, 6 Sep 2002, Kang Jeong-Hee wrote: > Hi. > > Differently from older version of GTK+, > GTK+ 2 has powerful fundamentality of library: GLib, GObject. > They are standalone library as well as a basement of GDK and GTK. > > and this gtk-(*-)list flood with GDK, GTK-level issues. On a relate

find a thread about: multiple cell renderer for a column

2002-09-05 Thread Kang Jeong-Hee
Hi. I think there was a thread about multiple cell renderer for a column. the conclusion of thread was it's possible, as I recall. but I could not find the thread anywhere I know. Possibly I'm wrong, it was not here. but I really miss the thread. pliz someone help me to get the thread. it was a

Re: cross compiling questions

2002-09-05 Thread Vince Busam
After trying to cross-compile GTK+, I gave up and bought a netwinder. With all the dependencies, it's not easy. Vince On 2 Sep 2002, David Meggy wrote: > I'm trying to cross compile a GTK system for an arm board. > > My first problem is with compiling pkg-config. Since I don't know > anythi

How to set Chinese characters?

2002-09-05 Thread Mullin Yu
Hi, I searched on the archive, and tried to do the following: get_set_locale(); gtk_rc_add_default_file("gtkrc.zh"); gtk_init(, .); But, I still can't display Chinese characters on the textbox. Only squares are displayed. By the way, I am developing the application

Further info: How to set Chinese characters

2002-09-05 Thread Mullin Yu
Hi all, Regarding my previous post, I changed the rc file content to the following: style "default" { font_name="Sans Italic 10" } class "GtkWidget" style "default" The fonts of the controls, include the GtkEntry, botton, labels had been changed successfully. I saw that "Sans Italic 10" sh

glib-2.0.6 source compiling problems

2002-09-05 Thread Chris B Luck
I compile the source fine but for some reason the glib-config file is missing. So when I try to compile another program it's configure script can't find the newest glib. pkg-config won't accept the new version either.. Anyone know anything about this? Has it happen to someone else or is it just

adding fifo input to the main glib2 loop

2002-09-05 Thread Ben Martin
Hi, I have an app that mkfifo()s && open()s and then attaches a g_io_channel to the fd. The basic idea is that clients can drop scheme code to a fifo for the app to execute, thus the server only reads the pipe and clients should only write it. I have this working with one catch, after the first