forcing window/widget sizes

2003-06-11 Thread Teardrop Sky
i'm trying to set the window sizes in a program, but both of the methods i found via searching the archives didn't work.. (gtk_window_set_default_size and gtk_widget_size_request) i was trying to force it to the current X setting, 1024x768 but i tried a few different sizes, but it always looked

Uninstall GLIB 2.2.1

2003-06-11 Thread Gerald Wong
I've installed glib-2.2.2 but i can't compile atk or pango because of the following error: checking for GLIB - version = 2.0.0... *** 'pkg-config --modversion glib-2.0' returned 2.2.2, but GLIB (2.2.1) *** was found! If pkg-config was correct, then it is best *** to remove the old version of

problem using gconf_client_notify_add

2003-06-11 Thread CHEE BIN HOH
I setup a callback using gconf_client_notify_add for a key, and then go on to g_main_loop_run, but the callback is NOT invoked when the key is changed, unless I use gtk_main () instead of g_main_loop_run. is there a way to use g_main_loop_run with gconf_client_notify_add without resolve to

size of the font

2003-06-11 Thread Kiyoshi TAKAHASHI
Is it possible to change the size of the font for every widget of a window? (eventhe text of the statusbar, adjustements,...)? If not, is it possible to change the size of the font used by gtk (like a configuration)? Elsewhere, what is the simpliest way to change the size

Re: Uninstall GLIB 2.2.1

2003-06-11 Thread Sven Neumann
Hi, Gerald Wong [EMAIL PROTECTED] writes: I've installed glib-2.2.2 but i can't compile atk or pango because of the following error: checking for GLIB - version = 2.0.0... *** 'pkg-config --modversion glib-2.0' returned 2.2.2, but GLIB (2.2.1) *** was found! If pkg-config was correct, then

Re: Uninstall GLIB 2.2.1

2003-06-11 Thread Gerald Wong
Sorry i'm relatively new to linux. How do i uninstall glib-2.2.1? I have RedHat 9 and i think it comes with glib-1.2 or something (that's what rpm says). So i don't know where glib-2.2.1 came from. Even if i installed it using make install, I don't know how to remove something that has been

Re: Uninstall GLIB 2.2.1

2003-06-11 Thread Gerald Wong
Ok, this is what i've gathered: glib-2.2.1 is included with RedHat 9 It can't be uninstalled because it fails the dependencies check How do i overwrite it with a glib compiled from source? Don't worry, i've solved the problem. Just wait for the RPM to come out.

Re: Uninstall GLIB 2.2.1

2003-06-11 Thread Owen Taylor
On Wed, 2003-06-11 at 07:32, Gerald Wong wrote: Ok, this is what i've gathered: glib-2.2.1 is included with RedHat 9 It can't be uninstalled because it fails the dependencies check How do i overwrite it with a glib compiled from source? Don't worry, i've solved the problem. Just wait for

Re: Uninstall GLIB 2.2.1

2003-06-11 Thread Shaun McCance
On Wed, 2003-06-11 at 06:32, Gerald Wong wrote: Ok, this is what i've gathered: glib-2.2.1 is included with RedHat 9 It can't be uninstalled because it fails the dependencies check Right. RedHat 9 comes with both 1.2.10 and 2.2.1. Glib 2 is quite an overhaul from GLib 1, so you need both

gtk_radio_button and pixmap

2003-06-11 Thread jlebra
Hello, How can I change the pixmap in a gtk_radio_button ??? Thanks! PS: I tried to use the gtk_toggle_button : With this one it's ok, I can change the pixmap... But I don't have the label link to the button... So I use the gtk_toggle_button_with_label; but the label is inserted into the

Re: Uninstall GLIB 2.2.1

2003-06-11 Thread Gerald Wong
Thanks for the really useful info. It would take ages trying to find it out by searching. and thanks for ppl's patience. Since Linux is becoming more popular there'll be more newbie posts. _ Get mobile Hotmail. Go to

Save errors message

2003-06-11 Thread dcabaton
Hi ! I create an gtk interface with glade for the framebuffer ! When i run the application there is mani errors message but i can't read this ! I run with ./test errors.log but there is no message in the file ! The messages are about GTK Warning... How to record the errors messages of GTK ?

Re: Save errors message

2003-06-11 Thread Sven Neumann
Hi, dcabaton [EMAIL PROTECTED] writes: Hi ! I create an gtk interface with glade for the framebuffer ! When i run the application there is mani errors message but i can't read this ! I run with ./test errors.log but there is no message in the file ! The messages are about GTK Warning...

Image under framebuffer

2003-06-11 Thread dcabaton
Hi ! i create an gtk interface with glade for framebuffer but i have several problems !!! - under glade, i add an image but under framebuffer the application don't show the image ! An example of the code source to display an image... image12 = create_pixmap (window1, GNOME-Hint_alt.png);

Re: Save errors message

2003-06-11 Thread dcabaton
Error messages and warnings go to stderr but you are only catching stdout. Try './test errors.log 21'. Sven YES : this is the solution ! But can you explain the 21 !! what this ? Thanks ! :)) David -- +--+ | David CABATON alias Obelix |

Re: Save errors message

2003-06-11 Thread Sven Neumann
Hi, dcabaton [EMAIL PROTECTED] writes: But can you explain the 21 !! what this ? Any reasonably good book about UNIX shells will tell you. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Save errors message

2003-06-11 Thread dcabaton
Ok, it's clear. :)) Thank's for help ! Regards / David PS : sorry for my englsih but... i'm french :)) -- +--+ | David CABATON alias Obelix | +--+ | | |[EMAIL PROTECTED]| |

Re: Image under framebuffer

2003-06-11 Thread dcabaton
Ok, i find informations about images problems... Yes, this is a known bug. Glade generated code seems to look for pixmaps in the default gnome directory (/usr/share/pixmaps/david). This should be solved by putting there the pixmaps, or linking /usr/share/local/pixmaps/david to

re: glib error in solaris 9 (and 8)

2003-06-11 Thread Scott Weil
Has anyone got an answer for this one? Im having the same problem with Solaris 8 (sparc). When I run a make check the strfunc-test fails. Original post: * From: Ben Taylor highlander7 cox net * To: gtk-list gnome org * Subject: glib error in solaris 9 * Date: Tue, 18

Re: size of the font

2003-06-11 Thread Teardrop Sky
.. void kiyoshis_font (GtkWidget *widget) { GtkStyle *style; style = gtk_widget_get_style(widget); style-font_desc = pango_font_description_from_string(fixed 20); /* or whatever font and size you want */ gtk_widget_set_style(widget, style); } .. int main

Re: size of the font

2003-06-11 Thread Teardrop Sky
/* standard font for all widgets that you instantiate after the call to gtk_widget_set_default_style(style); */ #include gtk/gtk.h void ok_func (GtkWidget *widget, GtkWidget *window) { gtk_widget_destroy(window); gtk_main_quit(); } int main (int argc, char *argv[]) { GtkWidget