Re: .. gdk_open_display_foreign()
is there any chance that we could get a tiny modification made to gdk so that it would support an X Display opened outside of gdk? i've already written the code, and it involves a totally insignificant modification to gdk_open_display() in gdkdisplay-x11.c. rather than call XOpenDisplay(), we just accept the Display* as an argument. forget this. this allows us to write plugin UIs and mix-and-match toolkits (assuming i can find out how to get Qt to do the same thing). i've been talking out my rear-end for a while now, it seems. its not worth explaining here, i think. --p ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
problem in running gtk+2.2.4 applns for frame buffer
Hi , I am having problem in running any gtk+2.2.4 related application programs which are frame buffer enabled. Currently i am working with RedHat linux 7.2, linux-2.4.7-10. I have installed gtk+2.2.4, with all it's necessary dependencies comprising pkg-config-0.14.0, glib-2.2.3, atk-1.2.4, fontconfig-2.2.92, freetype-2.0.9, pango 1.2.5. All though the installation with all the dependencies necessary packages went on fine, whenever i try to run even a simple demp helloworld program, i get segmentation fault without being able to figure out where the bug lies. I have set my PKG_CONFIG_PATH LD_LIBRARY_PATH environment variables and i have even declared them as global shell variables. I have even executed /sbin/ldconfig added /usr/local/lib as part of ld.so.conf file in '/etc'. I had tried my bit even with DIrectfb, but after successful installation, the same problem i used to face. To tell you i have gtk+ for FRAME BUFFER not for X-Server. My kernel is suitably configured is working fine after enabling it with Frame buffer. As such i dont think there is any problem with the kernel configuration. Any help /guidences are appreciated from the mailing list members. Thank you, Bheemesh. -- Prodigy Labs (P) Ltd., Bangalore, INDIA Ph: 3598938 ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
dialog from within a thread
Hi, I would like to do a gnome_dialog_run_and_close( GNOME_DIALOG( gnome_ok_dialog( TEXT ) ) ) from within a thread created detached ( pthread_attr_setdetachstate( thread_attr, PTHREAD_CREATE_DETACHED ) ). But this does not seem possible as I get an error that only 1 main can exist ? The thread runs detached form the main process and I want to keep it that way in order not to block the main process while a very long procedure runs in the thread. Polling in the main processfor the thread would use resources. Best regards, Peter Van Osta Union Biometrica N.V./S.A. European Scientific Operations (ESO) Cipalstraat 3 B-2440 Geel Belgium Tel.: +32 (0)14 570 620 Fax.: +32 (0)14 570 621 http://www.unionbio-eu.com/ http://ourworld.compuserve.com/homepages/pvosta/cvwww.htm ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Colormap and drawing_area widget
Hi everybody, I have a little pb with gtk_drawing_area. I read tutorial and API documentation but i don't find the answer : why i obtain this error message when using the code below ? *Code* GtkWidget *ZoneDessin; GdkColormap *colormap; ZoneDessin = gtk_drawing_area_new(); colormap = gdk_window_get_colormap(ZoneDessin-window); *Error*** Gdk-CRITICAL **: file gdkdraw.c: line 244 (gdk_drawable_get_colormap): assertion `GDK_IS_COLORMAP (colormap)' failed Thanks, Luc. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Colormap and drawing_area widget
On Tue, 2003-11-18 at 11:14, [EMAIL PROTECTED] wrote: Hi everybody, I have a little pb with gtk_drawing_area. I read tutorial and API documentation but i don't find the answer : why i obtain this error message when using the code below ? because the window field of the GtkWidget is valid only when the widget is realized. You need to connect a signal handled to the realized signal and get the colormap from within this signal handler. Mathieu *Code* GtkWidget *ZoneDessin; GdkColormap *colormap; ZoneDessin = gtk_drawing_area_new(); colormap = gdk_window_get_colormap(ZoneDessin-window); *Error*** Gdk-CRITICAL **: file gdkdraw.c: line 244 (gdk_drawable_get_colormap): assertion `GDK_IS_COLORMAP (colormap)' failed Thanks, Luc. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list -- Mathieu Lacage [EMAIL PROTECTED] ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
problem in running gtk+2.2 appln for frame buffer
Hi , I am having problem in running any gtk+2.2.4 related application programs which are frame buffer enabled. Currently i am working with RedHat linux 7.2, linux-2.4.7-10. I have installed gtk+2.2.4, with all it's necessary dependencies comprising pkg-config-0.14.0, glib-2.2.3, atk-1.2.4, fontconfig-2.2.92, freetype-2.0.9, pango 1.2.5. All though the installation with all the dependencies necessary packages went on fine, whenever i try to run even a simple demp helloworld program, i get segmentation fault without being able to figure out where the bug lies. I have set my PKG_CONFIG_PATH LD_LIBRARY_PATH environment variables and i have even declared them as global shell variables. I have even executed /sbin/ldconfig added /usr/local/lib as part of ld.so.conf file in '/etc'. I had tried my bit even with DIrectfb, but after successful installation, the same problem i used to face. To tell you i have gtk+ for FRAME BUFFER not for X-Server. My kernel is suitably configured is working fine after enabling it with Frame buffer. As such i dont think there is any problem with the kernel configuration. Any help /guidences are appreciated from the mailing list members. Thank you, Bheemesh. -- Prodigy Labs (P) Ltd., Bangalore, INDIA Ph: 3598938 ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: problem in running gtk+2.2 appln for frame buffer
Hi, bheemesh [EMAIL PROTECTED] writes: I am having problem in running any gtk+2.2.4 related application programs which are frame buffer enabled. All though the installation with all the dependencies necessary packages went on fine, whenever i try to run even a simple demp helloworld program, i get segmentation fault without being able to figure out where the bug lies. Did you try to get a stack trace from the crashing program? Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
uninstall
i have installed gkt+ 2.x.x but my aplication need only 1.x.x so how to uninstall gtk+ 2.x.x ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
GTK Install Problem (..Xft backend is required)
More problems with contingencies here. :-) When running configure for gtk+-2.3.0 (on RH 9.0): I get the following config error message Pango 1.2.0 and Xft backend is required for x11 target Pange 1.2.5 is installed. Below is snipped from pango.pc pango_module_version=1.2.0 Name: Pango Description: Internationalized text handling Version: 1.2.5 Paths LD_LIBRARY_PATH=/usr/local/lib:/usr/X11R6/lib and it looks like Xft shared objects are at /usr/X11R6/lib Does this mean that GTK wants pango 1.2.0 instead of 1.2.5? comments suggestions welcome thanks tim -- Tim Johnson [EMAIL PROTECTED] http://www.alaska-internet-solutions.com ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GtkTreeView alignment
Hi! See http://mail.gnome.org/archives/gtk-list/2003-October/thread.html I am following this list closely and I was aware of your discussion about aligning *text* cells. However, I was wondering if there is generic way to align whatever contents of the cell, e.g. toggle-buttons and pixbufs. Please see the example below! Best wishes, Andrej -- Example: out of the three, only the 1st one gets aligned when the row is appended with e.g.: gtk_list_store_set (store, iter, 0, Undefined, 1, FALSE, 2, FALSE, 3, syncolor, 4, expcolor, 5, 0.0, 6, TRUE, 7, 0.5, -1); enum { PLOT_LC_FILTER, PLOT_LC_SYNTHETIC, PLOT_LC_EXPERIMENTAL, PLOT_LC_SYNCOLOR, PLOT_LC_EXPCOLOR, PLOT_LC_OFFSET, PLOT_LC_EDITABLE, PLOT_LC_ALIGNMENT, PLOT_LC_COLNO }; /* 1st example: */ renderer = gtk_cell_renderer_text_new (); g_object_set_data (G_OBJECT (renderer), column, (gint *) PLOT_LC_FILTER); column = gtk_tree_view_column_new (); gtk_tree_view_column_set_alignment (column, 0.5); gtk_tree_view_column_set_title (column, Filter); gtk_tree_view_column_pack_start (column, renderer, TRUE); gtk_tree_view_column_add_attribute (column, renderer, text, 0); gtk_tree_view_column_add_attribute (column, renderer, xalign, 7); gtk_tree_view_column_set_resizable (column, TRUE); gtk_tree_view_column_set_min_width (column, 90); gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column); /* 2nd example: */ renderer = gtk_cell_renderer_toggle_new (); g_object_set_data (G_OBJECT (renderer), column, (gint *) PLOT_LC_SYNTHETIC); g_signal_connect (G_OBJECT (renderer), toggled, G_CALLBACK (editable_cell_with_checkbox_edited), model); column = gtk_tree_view_column_new (); gtk_tree_view_column_set_alignment (column, 0.5); gtk_tree_view_column_set_title (column, Synthetic data?); gtk_tree_view_column_pack_start (column, renderer, FALSE); gtk_tree_view_column_add_attribute (column, renderer, active, 1); gtk_tree_view_column_add_attribute (column, renderer, xalign, 7); gtk_tree_view_column_set_resizable (column, TRUE); gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column); g_object_set (G_OBJECT (column), alignment, 0.5, NULL); /* 3rd example: */ renderer = gtk_cell_renderer_pixbuf_new (); g_object_set_data (G_OBJECT (renderer), column, (gint *) PLOT_LC_SYNCOLOR); g_object_set (G_OBJECT (renderer), mode, GTK_CELL_RENDERER_MODE_ACTIVATABLE, NULL); column = gtk_tree_view_column_new (); gtk_tree_view_column_set_alignment (column, 0.5); gtk_tree_view_column_set_title (column, Synthetic color); gtk_tree_view_column_pack_start (column, renderer, FALSE); gtk_tree_view_column_add_attribute (column, renderer, pixbuf, 3); gtk_tree_view_column_add_attribute (column, renderer, xalign, 7); gtk_tree_view_column_set_resizable (column, TRUE); gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column); ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
glib-2.2.3 install on FreeBSD
I'm trying to install Gtkmm and get this error when running .configure in /usr.local/glib-2.2.3 checking for iconv_open... no checking for libiconv_open in -liconv... no checking for iconv_open in -liconv... no configure: error: *** No iconv() implementation found in C library or libiconv I did install the latest libiconv ... then gettext ... then reinstalled libiconv again. Some of the archived posts mention 2 ways of installing libiconv (quoted from the README file): This library can be built and installed in two variants: - The library mode. This works on all systems, and uses a library `libiconv.so' and a header file `iconv.h'. (Both are installed through make install.) - The libc plug/override mode. This works on GNU/Linux ... I'm assuming I should use the first method, but iconv() is somehow not visible to the glib configure process. libiconv is installed in a standard location: /modules/libiconv.ko /usr/local/lib/libiconv.a /usr/local/lib/libiconv.la /usr/local/lib/libiconv.so /usr/local/lib/libiconv.so.3 /usr/local/lib/libiconv.so.4 What am I missing? regards, PK -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: glib-2.2.3 install on FreeBSD
On Tue, 18 Nov 2003 13:42:33 PST, Peter kryszkiewicz [EMAIL PROTECTED] said: I'm trying to install Gtkmm and get this error when running .configure in /usr.local/glib-2.2.3 checking for iconv_open... no checking for libiconv_open in -liconv... no checking for iconv_open in -liconv... no configure: error: *** No iconv() implementation found in C library or libiconv Can we see the corresponding error messages from config.log, please? pgp0.pgp Description: PGP signature
Re: GTK Install Problem (..Xft backend is required)
Hi, Tim Johnson [EMAIL PROTECTED] writes: More problems with contingencies here. :-) When running configure for gtk+-2.3.0 (on RH 9.0): I get the following config error message Pango 1.2.0 and Xft backend is required for x11 target Pange 1.2.5 is installed. Below is snipped from pango.pc pango_module_version=1.2.0 Name: Pango Description: Internationalized text handling Version: 1.2.5 Paths LD_LIBRARY_PATH=/usr/local/lib:/usr/X11R6/lib and it looks like Xft shared objects are at /usr/X11R6/lib Does this mean that GTK wants pango 1.2.0 instead of 1.2.5? No, it explicitely wants pangoxft, at least for the X11 target. So you will have to make sure that Pango was compiled with the Xft backend. There should be a pangoxft.pc file. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: glib-2.2.3 install on FreeBSD
Hi, Peter kryszkiewicz [EMAIL PROTECTED] writes: libiconv is installed in a standard location: /modules/libiconv.ko /usr/local/lib/libiconv.a /usr/local/lib/libiconv.la /usr/local/lib/libiconv.so /usr/local/lib/libiconv.so.3 /usr/local/lib/libiconv.so.4 That isn't exactly a standard location. You will need to make configure aware of this location by setting the appropriare environment variables. Check the output of configure --help. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GTK Install Problem (..Xft backend is required)
* Sven Neumann [EMAIL PROTECTED] [031118 12:33]: Thanks Sven -- I'm a little less confused now, however: I'm afraid that I will need some more information. The pango README makes numerous to references to Xftp but: * Sven Neumann [EMAIL PROTECTED] [031118 12:33]: you will have to make sure that Pango was compiled with the Xft there is no explicit information on _how to_ compile Xft with pango. When I run ./configure --help, I'm really not clear from the text printed whether Xft is a 'feature', 'package' or whatever. (I'm CC'ing this to the author, perhaps more information could but included on this matter for the newbies (like myself)) regards tim Hi, Tim Johnson [EMAIL PROTECTED] writes: More problems with contingencies here. :-) When running configure for gtk+-2.3.0 (on RH 9.0): I get the following config error message Pango 1.2.0 and Xft backend is required for x11 target Pange 1.2.5 is installed. Below is snipped from pango.pc pango_module_version=1.2.0 Name: Pango Description: Internationalized text handling Version: 1.2.5 Paths LD_LIBRARY_PATH=/usr/local/lib:/usr/X11R6/lib and it looks like Xft shared objects are at /usr/X11R6/lib Does this mean that GTK wants pango 1.2.0 instead of 1.2.5? No, it explicitely wants pangoxft, at least for the X11 target. So you will have to make sure that Pango was compiled with the Xft backend. There should be a pangoxft.pc file. Sven -- Tim Johnson [EMAIL PROTECTED] http://www.alaska-internet-solutions.com ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GTK Install Problem (..Xft backend is required)
Hi, Tim Johnson [EMAIL PROTECTED] writes: there is no explicit information on _how to_ compile Xft with pango. Because there is no explicit information since it works automatically if your build environment is correctly setup. Make sure that xft.pc is in your PKG_CONFIG_PATH. configure should then find it and report that it is building the Xft backend. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: glib-2.2.3 install on FreeBSD
On 18 Nov 2003 22:20:26 +0100, Sven Neumann [EMAIL PROTECTED] wrote: Hi, Peter kryszkiewicz [EMAIL PROTECTED] writes: libiconv is installed in a standard location: /modules/libiconv.ko /usr/local/lib/libiconv.a /usr/local/lib/libiconv.la /usr/local/lib/libiconv.so /usr/local/lib/libiconv.so.3 /usr/local/lib/libiconv.so.4 That isn't exactly a standard location. You will need to make configure aware of this location by setting the appropriare environment variables. Check the output of configure --help. Sven Thanks Sven, that fixed it. I've installed hundreds of packages in the last couple of years; most of them don't choke on /usr/local/lib and /usr/local/include as long as ldconfig and the environment knows about them. So I've been lulled into regarding /usr/local as a 'standard' location. But the reason I ended up upgrading glib was because, during the gtkmm-2.2.7 .configure process, pkg-config couldn't find glib-2.0.pc, no matter what I did to set PKG_CONFIG_PATH, and no matter where I put glib-2.0.pc. Upgrading to glib-2.2.3 and re-running .config solved that problem. Peter ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GTK Install Problem (..Xft backend is required)
* Sven Neumann [EMAIL PROTECTED] [031118 15:12]: Hi, Tim Johnson [EMAIL PROTECTED] writes: there is no explicit information on _how to_ compile Xft with pango. Because there is no explicit information since it works automatically if your build environment is correctly setup. Make sure that xft.pc is in your PKG_CONFIG_PATH. configure should then find it and report that it is building the Xft backend. I copied both xft.pc and fontconfig.pc from the 'old' PKG_CONFIG_PATH (/usr/lib/pkgconfig) to the 'new' PKG_CONFIG_PATH recompiled pango and GTK liked that so much better.. Thanks very much Sven! -- Tim Johnson [EMAIL PROTECTED] http://www.alaska-internet-solutions.com ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list