How can I run a GtkFB's program?
I am a biginner of GTK, GtkFB. I hava installed GtkFb on Linux 7.2 (I have installed the FrameBuffer). Then I compiled and ran an program, "helloworld", which is in the "examples" directory, from console without X. But an error message, "cannot open display", is returned. I tried "./helloworld --display=/dev/fb0". Of course, I can find /dev/fb0. But, the result is the same. Generally, when I run a GtkFb program, what should I do? Or, if there are any information about running GtkFB programs, let me know where. Toyotoshi Hirotani. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Passing values to functions
To List: 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 have seen drawing_area being passed like this. How does it get to the function "hello". Thanks. bye. #include void hello( GtkWidget *widget, gpointer data ) { g_print ("Hello World\n"); } void destroy( GtkWidget *widget, gpointer data ) { gtk_main_quit(); } int main( int argc, char *argv[] ) { GtkWidget *window; GtkWidget *button; gtk_init(&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_signal_connect (GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC (destroy), NULL); button = gtk_button_new_with_label ("Hello World"); gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (hello), NULL); gtk_container_add (GTK_CONTAINER (window), button); gtk_widget_show (button); gtk_widget_show (window); gtk_main (); return(0); } __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: How add superscripts to GTKLabel text?
Chris Seberino <[EMAIL PROTECTED]> writes: > How add superscripts to GTKLabel text? > You can only do this in GTK 1.3.x/2.0. It is documented here: http://developer.gnome.org/doc/API/2.0/gtk/gtklabel.html See "Markup" section. Havoc ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
How add superscripts to GTKLabel text?
How add superscripts to GTKLabel text? Chris -- === | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax)| | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || [EMAIL PROTECTED] | === ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: HELP: Compiling GTK+ Applications on UNIX
>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) the first one is deprecated, involves lots of ugly m4 macros, can require disgusting filesystem hacking to deal with aclocal's stupid design, and is basically in poor taste. the second one is elegant, smooth, and works better in every way. ok ? :)) --p ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: HELP: Compiling GTK+ Applications on UNIX
AFAIK 1. is GTK+ 1.2 method 2. is GTK+ (1.3) 2.0 method -Brad Lin, Lynn wrote: > Hello there, > > 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) > > Thank you :) > > Lynn > ___ > gtk-list mailing list > [EMAIL PROTECTED] > http://mail.gnome.org/mailman/listinfo/gtk-list > -- - Brad House Sr. Developer Main Street Softworks, Inc. [EMAIL PROTECTED] (352) 378-8228 - ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: defn of gint32 (glibconfig.h)?
Hi, Skip Montanaro <[EMAIL PROTECTED]> writes: > I was trying to track down the definition of gint32 and the other > size-specific types just now. I have been building from CVS for quite > awhile and never have any problems related to these types, but I can't seem > to find gint32 defined in the installed header files. In my glib source > tree I see a typedef for it in glibconfig.h, but that file doesn't get > installed into /usr/local/include/glib-2.0. no, it gets installed into /usr/local/lib/glib-2.0/include since it is platform-specific and doesn't belong into ${prefix}/include. If you use pkg-config --cflags your compiler should be able to find it. Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
HELP: Compiling GTK+ Applications on UNIX
Hello there, 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) Thank you :) Lynn ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
defn of gint32 (glibconfig.h)?
I was trying to track down the definition of gint32 and the other size-specific types just now. I have been building from CVS for quite awhile and never have any problems related to these types, but I can't seem to find gint32 defined in the installed header files. In my glib source tree I see a typedef for it in glibconfig.h, but that file doesn't get installed into /usr/local/include/glib-2.0. >From my glib source tree I find: ./glib/gdate.h:typedef gint32 GTime; ./glib/grand.h:gint32 g_rand_int_range (GRand *rand, ./glib/grand.h:gint32 begin, ./glib/grand.h:gint32 end); ./glib/grand.h:gint32 g_random_int_range (gint32 begin, ./glib/grand.h:gint32 end); ./glib/gtypes.h: * more importantly, "gint32" can be adjusted to be ./glibconfig.h:typedef signed int gint32; ./glibconfig.h:typedef gint32 gssize; ./glibconfig.h:#define GINT32_TO_LE(val)((gint32) (val)) ./glibconfig.h:#define GINT32_TO_BE(val)((gint32) GUINT32_SWAP_LE_BE (val)) >From /usr/local/include I find: % find . -name '*.h' | xargs egrep gint32 ./glib-2.0/glib/gdate.h:typedef gint32 GTime; ./glib-2.0/glib/grand.h:gint32 g_rand_int_range (GRand *rand, ./glib-2.0/glib/grand.h:gint32 begin, ./glib-2.0/glib/grand.h:gint32 end); ./glib-2.0/glib/grand.h:gint32 g_random_int_range (gint32 begin, ./glib-2.0/glib/grand.h:gint32 end); ./glib-2.0/glib/gtypes.h: * more importantly, "gint32" can be adjusted to be ./gtk-2.0/gdk-pixbuf/gdk-pixdata.h: gint32 length; /* <1 to disable length checks, otherwise: ./pango-1.0/pango/pango-glyph.h:typedef gint32 PangoGlyphUnit; ./ORBitutil/basic_types.h:typedef gint32 CORBA_long; What am I missing? Other packages such as gtk and pango use gint32 and compile just fine. Thx, -- Skip Montanaro ([EMAIL PROTECTED] - http://www.mojam.com/) ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Gtk-framebuffer
On Mon, 28 Jan 2002, Rakotoarimanana wrote: > Hi all, > I wants to install the gtk framebuffer. > I install all the modules necessary: > - pkgnfig (0.7.0) (neccesaire for the installation of glib and pango) > - glib (1.3.12) > - freetype (2.0.6) > - pango (0.23) > - libjpeg, libpng > - atk (08) > - gtk+ (1.3.12) > The installation deroule normally. > But when I make the test: testgtk in " tests " of the gtk. > I compile it in one will window without X, and it y error: " Erreur de > segmentation (core dumped)". > Also let us note that I Re-install my kernel (noyau) with the > parameters of frambuffer. > Help me > Thanks in advance I just recently did some fixes to GtkFB. Can you please try the version in gnome cvs? / Alex ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: How add text above a scrollbar/GTKHScale widget?? w/ a NEW widget? Which?
>When you have a scroll bar or GTKHScale how do you >add text above it to name/explain it? Do you >add a new widget? Which one? this will stack the label below the hscale. obvious variations exist for putting it above, to the left or right. GtkWidget *hbox = gtk_hbox_new (...); GtkWidget *hscale = gtk_hscale_new (...); GtkLabel *label = gtk_label_new (...); gtk_box_pack_start (GTK_BOX(hbox), hscale); gtk_box_pack_start (GTK_BOX(hbox), label); --p ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Signal Handler problem
Hi, I have 3 windows. The first has a new button. If I click on that I get another window. In this window, I have some entry box. I enter some thing in those entry and press a button Done, which is supposed to hide this window and go back to the window from which it is originated ( i.e the one which has new button ). Problem I am facing now is, when I press on Done button, it is giving segmentation fault. I am getting gtk warning as gtk_signal_handler_unref( ): handler with ref_count ==0!. Why is this happening???. I have never faced this kind of problem before. I have configured window as GTK_WINDOW_POPUP. Is this giving problem... Thanks in Advance, Jyothi. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Make gtk 1.3 ??
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 --cflags gtk+-2.0 Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list