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: stopping signals
Hi, dave walters [EMAIL PROTECTED] writes: I have a spin button with a callback function invoked by the value_changed signal. The callback func has a gtk_spin_button_set_value(). When this executes it causes the spinner to emit the value_changed' signal which invokes the callback which executes set_value() etc. It's recursive. I tried using g_signal_stop_emission_by_name() put in before the set_value() but it didn't work. Any ideas?? I don't understand the reason for this particular callback construct but since in general user interface elements often need to be updated from callback functions and the recursiveness you describe is causing problems for GObject newbies, here's how to solve this problem: Either block the value_changed signal handler using g_signal_handlers_block_by_func() before you set the value and unblock it later or compare the set value with the new one and only set the value if the two differ. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: default gtk2 font size
Hi, [EMAIL PROTECTED] writes: I think his question was What file do I put this in for a *system-wide* default value? If that was the question, the answer is to put the very same line into /etc/gtk-2.0/gtkrc Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Your opinion about how to get data from dialog box
Hi, Roger Leigh [EMAIL PROTECTED] writes: This might be OT, but I would inherit from Gtk::Dialog, and provide get_foo() methods to get at my data. Mixing the user interface with the actual code seems to be a bad design choice. The dialog should be a view on the data not providing the data. So you should connect to the signals that indicate that the user changed data in the view and update your model accordingly. The rest of the application doesn't need to deal with the dialog or any other portions of the user interface then. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: basic font problem
Hi, Shane McAndrew [EMAIL PROTECTED] writes: Other X applications (such as emacs) can display all the characters in the file with the standard font -misc-fixed-medium-r-normal--15-*-*-*-c-70-iso8859-1. So I have concluded it is not an X windows problem. Am I right? Yes, newer GTK+ apps don't use the X core fonts. You probably just need to add some fonts to your fontconfig setup. Look at /etc/fonts and check out the fc-list and fc-cache man-pages Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: default gtk2 font size
Hi, Kurt Erickson [EMAIL PROTECTED] writes: Under my debian unstable install, if I delete my .gtkrc-2.0 file, gtk2 fonts revert to 8pt size. What do I change to make them revert to 12pt by default, instead? In other words, I'm looking for a way to configure the default gtk2 font size. I've been looking around for this information for the past few days, and I can't seem to find it. Add this line to your .gtkrc-2.0: gtk-font-name = Sans 12 Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Glib 2.0
Hi, Marte il guerriero [EMAIL PROTECTED] writes: I installed Glib 2.2.3 (I downloaded if from here : ftp://ftp.gtk.org/pub/gtk/v2.2/glib-2.2.3.tar.gz) and everything was ok, without any problem. I installed Glib 2.2.3 with these commands: 1) ./configure 2) make 3) make install The problem is that when I try to install any applications that requires Glib my computer doesn't see the Glib as installed. I want to add this: when I type glib-config --version glib it doesn't return 2.x as version but 1.x as version. glib-2.0 doesn't come with a glib-config file. This is intentional since glib and glib2 are different libraries that are not compatible. So you simply cannot update glib-1.2 to glib-2.0. You can however install both libraries in parallel and as soon as all applications have been ported to use glib2, you may deinstall the old version. For information on how to compile applications against glib2, see http://developer.gnome.org/doc/API/2.0/gtk/gtk-compiling.html What is said there, applies to glib2 with minor modifications. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Getting gtk+ to find my private copy of libgobject-2.0.so
Hi, Michael Terry [EMAIL PROTECTED] writes: I thought I said so: Here's the setup: I checked out glib, atk, and pango. I compiled them all with --prefix=/home/mike/path, LD_LIBRARY_PATH=/home/mike/path/lib, PKG_CONFIG_PATH=/home/mike/path/lib/pkgconfig, and PATH=/home/mike/path/bin:$PATH. They all seem to be OK. Well, you also need to set LD_LIBRARY_PATH when running the executables. Setting it at compile time won't be sufficient. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: no subject
Hi, Pisanu Prasertnopakun [EMAIL PROTECTED] writes: I want to update my gtk1.2 to gtk2.2. And i try to install every packages that in http://developer.gnome.org/doc/API/2.2/gtk/gtk-building.html recommend. But i have many problems with installation they need more and more packages. :( First of all, you cannot update gtk+-1.2 to gtk+-2.2. Both are different libaries with a different API and both can be installed in parallel. You should only remove gtk+-1.2 if you are sure that no application on your system is using it any longer. Can someone send me an installation list or what should i do step by step to install gtk2.2? GTK is good but so complicate to install it. Assuming you are using Linux, I suggest you use the packages provided by your distributor. The GTK+ package should have a list of dependencies so that all required packages are pulled in automatically. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: How to create a API doc
Hi, Vincent Torri [EMAIL PROTECTED] writes: I would like to know the program that you (documentation maintainers) used to create the GTK (and others) API on gtk.org ? Have a look at the docs/reference folder in the GTK+ source tree. The documentation is created from inline comments using gtk-doc. gtk-doc creates templates in Docbook/XML that can then be edited further. Later the XML source is converted to HTML or other formats. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GTK+-2.3.0 released [unstable]
Hi, Matthias Mann [EMAIL PROTECTED] writes: Now GtkCTree is not very old but deprecated. What's about GtkFileSelection? Du i need to update my source code in the next three months? Deprecated doesn't mean that you cannot use it any longer. It just means that you should not be using it in new code. If i like to install any for M$-Windows 1995 written application on a $Windows XP system (since 2000) there are no problems while using these very old binaries on a modern PC system. But installing Gtk+ application binaries, written in 2002, will make big problems for big projects if i like to install them on a one year newer OS(with Gtk+)? Just keep gtk+-1.2 installed and you can continue to use the old software. This actually works a lot better than Windows backward compatibility. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: emitting a signal for refeshing entries
Hi, Peter Van Osta [EMAIL PROTECTED] writes: Thank you all for the replies, but what I am looking for is a way to send an EXPOSE signal to the main window and wiil this signal propagate to all the widgets in this main window ? Call gtk_widget_queue_draw() on the top-level widget (the window). Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk on windows
Hi, U Fleku [EMAIL PROTECTED] writes: Hi all, I am a windows user and I am trying to port gtk on cygwin. If you give support only to Unix users, I'll thank you anyway. Win32, especially cygwin, is an officially supported platform so there's no need to port anything. If you are looking for Win32 binaries, there is this link on the GTK+ homepage that points to http://www.gimp.org/~tml/gimp/win32/ Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk on windows
Hi, U Fleku [EMAIL PROTECTED] writes: If you are looking for Win32 binaries, there is this link on the GTK+ homepage that points to http://www.gimp.org/~tml/gimp/win32/ Yes, I know gtk for win32, but the package don't have the gtk-config file, that the compilation of Lopster requires. I have only extract the files of the package into the cygwin directory. It's wrong? If your software looks for gtk-config, it requires the old GTK+-1.2 API. There are win32 packages that provides this API. The windows port was added early in the 1.3 series, so you want to download the 1.3 packages from Tor's site. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: why is gtk install so difficult?
Hi, Steve Grimaud [EMAIL PROTECTED] writes: I'm sorry, but the statement below by Reuben hits the nail on the head for the user. The user doesn't compile any packages. Perhaps the user installs a binary package from time to time but actually she shouldn't even have to bother with that. Sven's answer (also quoted below) assumes several things that just aren't likely to happen unless you're advanced in the use of Linux and in building and installing software packages. I read the docs and followed the steps for pointing to what I believed were the right locations. I wonder why I should have to understand how the compiler and linker work in order to install a program. You don't need to understand how they work but you should have understood where the compiler and linker look for include files and libraries. This involves understanding the basics of gcc and ld command-line options (and on Linux it also involves a basic understanding of ldconfig). This is basic knowledge for building software. You can hardly get away witout this knowledge and if you are not willing to learn this stuff, you simply should not try to install software from source. Fortunately the Linux user nowadays can happily live without having to know all this since she will never have to compile from source. If it is easy enough to understand from a hundred lines of text or so, where are those lines of code? I pointed you to them in my mail. If Linux and these install and configuration packages are so powereful, the how in the world can a program not find files that I can find with a minimal comprehension of linux commands? The point is that there can be multiple versions of these files on your disk. It's very common practise to have multiple build environments on the same system. The configure script can hardly guess what build environment it is supposed to use. That's why you have to setup your build environment by setting a handful of environment variables before you run configure. Earlier in this thread people pointed out scripts that ease this task. People, are you actually realizing that building from source has become so much easier since pkg-config was introduced? While earlier each and every library installed their own foo-config file, there is now a common database of installed packages that has all this knowledge. All you need to do is to set a single environment variable correctly. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: why is gtk install so difficult?
Hi, Ruben Safir Secretary NYLXS [EMAIL PROTECTED] writes: While it might be tedious to have a properly working autoconf test, it is what is needed for a sane installation of the source. You obviously missed the cause of this particular problem. Of course what you state here is correct in general. BTW - this problem is not just with gtk, but with gnome as well. Nothing is more fustrating than being told by a gtk application that lib xyz doesn't exist, when you can see the library in plain sight on the file system. IMO this is solely a problem of people not reading the docs. Building GTK+ (and probably most if not all GNOME applications) is straight-forward if you know a handful of rules. Basically you will need to know how your compiler looks for include files and how your linker looks for libraries. Then you should know how to change these behaviours and what role pkg-config is playing in this game. All this can be explained in full detail in about hundred lines. If people would look at the file INSTALL, they would notice a link to a webpage as well as a pointer to a local file which does just that. If you have a working build environment and understand these simple rules, you shouldn't run into any build problems. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: why is gtk install so difficult?
Hi, Tara Milana [EMAIL PROTECTED] writes: My particular problem was with compiling gdk-pixbuf, I posted the problem earlier. As outlined in http://bugzilla.gnome.org/show_bug.cgi?id=103708 your problem to compile gdk-pixbuf is a version incompatibility with your binutils and you can hardly blame the GTK+ developers for this. But there are other users who might still have other problems. There will always be someone who has problems but in general the vast majority of people that attempt to build GTK+ from source don't run into any problems. Compiling GTK+ might not be trivial because of its dependencies but it is pretty much straight-forward and could hardly be made easier. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: why is gtk install so difficult?
Hi, Michael Torrie [EMAIL PROTECTED] writes: As outlined in http://bugzilla.gnome.org/show_bug.cgi?id=103708 your problem to compile gdk-pixbuf is a version incompatibility with your binutils and you can hardly blame the GTK+ developers for this. Perhaps this should be in the permanent FAQ. I had never heard about this before now. I saw one reference to it on the mailing list archives (the same problem as she had) but no one responded. That was about six months ago. I guess it's in the permanent record now, as it's now in the list archive. :) Well, it shouldn't be a problem that hits a lot of people. If I understand this correctly, it means that you messed up your system badly. This should not happen under normal circumstances. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: why is gtk install so difficult?
Hi, Russell Shaw [EMAIL PROTECTED] writes: Any version incompatibilities should be handled in the relevant configure.ac. We are talking about incompatibilies between the linker and installed libraries. This is completely out of the realm of GTK+. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: why is gtk install so difficult?
Hi, Russell Shaw [EMAIL PROTECTED] writes: You could make an autoconf macro to check the ld.so version from ldconfig -V. And how would I know that the user has libraries installed that are linked with a different and incompatible linker? The problem is not that GTK+ would depend on a specific version of the linker; that would be easy to check indeed. The problem is that the user messed up his system by mixing libraries compiled with incompatible linker versions. (At least that's what I believe to be the culprit). If you want to investigate this further, I suggest you look at the ld source code and grep for the particular error message. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk+2.2.4: text display problem...
Hi, [EMAIL PROTECTED] writes: All texts are wrongs. I can only read the half of the words. I don't know where I have to look for. Is it a problem with pango or a gtk+ problem? Do you have a reasonable font setup? Check what fonts you get when you call fc-list and have a look at /etc/fonts/fonts.conf. It should define aliases for sans, serif and monospace. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk+-2.2.0 ./configure error about pango 1.2.0
Hi, busmanus [EMAIL PROTECTED] writes: Here's what's inside my (automatically generated) pangoxft.pc: prefix=/usr/local exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: Pango Xft Description: Xft font support for Pango Version: 1.2.0 Requires: pango Libs: -L${libdir} -lpangoxft-1.0 Cflags: -I${includedir}/pango-1.0 -I/usr/include/freetype2 -I/usr/X11R6/include This looks good except for the version number. You should use the latest stable release which is 1.2.5. There are a couple of important bug-fixes since 1.2.0, perhaps they even fix your problems. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Glade 2 passing data to signal handlers
Hi, Joe Scaduto [EMAIL PROTECTED] writes: Both of your suggestions seems logical to me and I will try them. The only problem I have is that Glade 2 created that siganl connection not me. And at the beginning of the file where the signal connections are it says DO NOT EDIT THIS FILE - generated by Glade Can i still go in and change the signal connections as you suggested? Generating code with Glade is strongly discouraged. If you want to use Glade to build your user interface, please use only the generated XML files and link your application against libglade. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk+-2.2.0 ./configure error about pango 1.2.0
Hi, busmanus [EMAIL PROTECTED] writes: Looks like for whatever reason libexpat (used by fontconfig) is not found in your library search path. What does that mean? Fontconfig must have found it during compilation, because the reason I installed expat was fontconfig refusing to compile without it. It's in /usr/lib by the way and everything else seems to find it. I am surprised as well but I checked again and the symbols are indeed from expat. If you were not on Linux, I would say that your linker needs explicit dependencies but afaik that is only the case on Solaris. I guess that something went wrong with your libexpat installation. The fact that fontconfig compiled does only mean that the expat headers were found, it doesn't say much about the state of the library. Does 'ldconfig -v' list libexpat ? Does 'nm -D /usr/lib/libexpat.so' list the symbols that were shown to be missing in config.log? Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: why is gtk install so difficult?
Hi, Chad A Daelhousen [EMAIL PROTECTED] writes: Oh, I misunderstood the problem. /usr/bin/pkg-config is _still there_, oblivious to /usr/local/*, and run by default because it's earlier in $PATH. In that case, is there any situation in which /usr/bin/pkg-config should NOT look in /usr/local/lib/pkgconfig? Havoc, as maintainer, what are your thoughts? Should this be changed? Yes, pkg-config should never look into any other prefix than the one it was installed to. Unless of course you tell it so by setting your PKG_CONFIG_PATH. Please check the xdg-list archives. This has been discussed there in full length (the thread starts with https://listman.redhat.com/archives/xdg-list/2003-September/msg00106.html). Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk+-2.2.0 ./configure error about pango 1.2.0
Hi, busmanus [EMAIL PROTECTED] writes: The download page still shows version 2.2.0 as the latest stable version, at least that's what I made out of it. What page is that? http://gtk.org/download/ says 2.2 is the latest version and it links to ftp://ftp.gtk.org/pub/gtk/v2.2/. At the beginning of the file listing you can see the latest released versions in the stable 2.2 series. I did take a look, but it wasn't written in a language I understand. I cannot quote it in now, but when I do, I'd like to know, if I can send the whole file, or I'll have to try to find the sections in it that may be of significance. Please don't send the whole file. The significant part is probably right at the bottom. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk+-2.2.0 ./configure error about pango 1.2.0
Hi, busmanus [EMAIL PROTECTED] writes: I definitely won't, when I asked this question, I didn't realize it was 43 kB. Anyway, I had another look at the config.log and it makes some more sense now, but I'll need some help all the same. Here's what seems like the key to the problem: configure: In function `main': configure:15514: warning: unused variable `x_shm_info' configure:15525: $? = 0 configure:15528: test -s conftest.o configure:15531: $? = 0 configure:15541: result: yes configure:15747: checking Pango flags configure:15753: result: -I/usr/local/include/pango-1.0 -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -Wl,--export-dynamic -L/usr/local/lib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 configure:15798: gcc -o conftest -g -O2 -Wall -I/usr/local/include/pango-1.0 -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include conftest.c -Wl,--export-dynamic -L/usr/local/lib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 5 /usr/local/lib/libpangoxft-1.0.so: undefined reference to `XML_SetElementHandler' /usr/local/lib/libpangoxft-1.0.so: undefined reference to `XML_SetDoctypeDeclHandler' /usr/local/lib/libpangoxft-1.0.so: undefined reference to `XML_ParserFree' /usr/local/lib/libpangoxft-1.0.so: undefined reference to `XML_SetCharacterDataHandler' /usr/local/lib/libpangoxft-1.0.so: undefined reference to `XML_ErrorString' /usr/local/lib/libpangoxft-1.0.so: undefined reference to `XML_ParseBuffer' /usr/local/lib/libpangoxft-1.0.so: undefined reference to `XML_ParserCreate' /usr/local/lib/libpangoxft-1.0.so: undefined reference to `XML_SetUserData' /usr/local/lib/libpangoxft-1.0.so: undefined reference to `XML_GetErrorCode' /usr/local/lib/libpangoxft-1.0.so: undefined reference to `XML_GetBuffer' /usr/local/lib/libpangoxft-1.0.so: undefined reference to `XML_GetCurrentLineNumber' collect2: ld returned 1 exit status Looks like for whatever reason libexpat (used by fontconfig) is not found in your library search path. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk+-2.2.0 ./configure error about pango 1.2.0
Hi, busmanus [EMAIL PROTECTED] writes: When I am trying to configure the source code of gtk+-2.2.0, Is there a special reason you are compiling gtk+-2.2.0 instead of the newer gtk+-2.2.4? You should always use the latest released versions in the stable series (glib-2.2.3, pango-1.2.5, atk-1.2.4, gtk+-2.2.4). checking X11/extensions/XShm.h... yes checking Pango flags... -I/usr/local/include/pango-1.0 -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -Wl,--export-dynamic -L/usr/local/lib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 configure: error: *** Can't link to Pango. Pango is required to build *** GTK+. For more information see http://www.pango.org Take a look at config.log to find out why exactly the linking fails. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gdk_draw_string deprecated?
Hi, Andrej Prsa [EMAIL PROTECTED] writes: Could anyone tell me what to use if gdk_draw_string and gdk_draw_text are deprecated? I want to put labels to my graph on a drawable? PangoLayout, I think. There is some information here: http://developer.gnome.org/dotplan/porting/ar01s10.html Thanks; I'm trying to make a transition and the following bugs me already: PangoContext *context = pango_context_new (); You should ask the widget you want to draw on to generate the PangoLayout for you. No need to fiddle with PangoContext here. Try to use gtk_widget_create_pango_layout() instead. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: How to draw focus?
Hi, Peter Krueger [EMAIL PROTECTED] writes: I have a GtkDrawingArea which shall get the keyboard focus when a user clicks with the mouse over it. I want to draw a focus then as explained in the GtkDrawingArea-docs with gtk_paint_focus(). But gtk_paint_focus() is not documented. Can anyone explain me please how it shall be used and what the meaning of the different parameters is? I suggest you take a look at the GTK+ source code and check how GTK+ uses this function. It's pretty much straight-forward. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Libraries
Hi, Ruben Carvajal Schiaffino [EMAIL PROTECTED] writes: Where can I download the libraries gtk and pango since this link seems to be broken: ftp://ftp.gtk.org/pub/gtk/v2.2/ The link works for me. You probably hit the server while it was being slashdotted (GIMP goes SVG) yesterday. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: compiling gtk-application on Debian
Hi, [EMAIL PROTECTED] [EMAIL PROTECTED] writes: I am using Debian/Woody and want to compile the gtk-application gqcam. When I install gqcam as a Debian package it funktions. So I think that gtk+is installed properly. The library is probably installed properly but you need to install the -dev packages if you want to compile applications for it. Try to install libgtk1.2-dev. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: passing on signals
Hi, edscott wilson garcia [EMAIL PROTECTED] writes: Does anybody know the correct way to pass on keypressed signals received by one widget to another? Either of the following two lines causes gtk to segfault when signal received by GtkCombo is passed to GtkEntry: gtk_signal_emit_by_name (GTK_OBJECT (entry), key_press_event,event,data,NULL); gtk_signal_emit_by_name (GTK_OBJECT (entry), key_press_event,event,data); Both lines are wrong. The user_data that is passed to a signal callback is not set on signal emission but it's the data set when the signal was connected. The correct code would be: gtk_signal_emit_by_name (GTK_OBJECT (entry), key_press_event, event); Actually this is deprecated API, so you would better use the following instead: g_signal_emit_by_name (entry, key_press_event, event); This code assumes that event is a pointer to a GdkEventKey structure. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: passing on signals
Hi, edscott wilson garcia [EMAIL PROTECTED] writes: I suppose the additional parameter after event will make the call blocking so that the return value of the signal handler can be returned there, and if there is no additional parameter (or set to NULL) the function will just toss the signal on to the queue to be processed by the event loop and be non-blocking. Just a hypothesis... Wrong again. GObject signals are always executed synchronously. The g_signal_emit() call returns when all signal handlers have been run. If you pass extra parameters to the g_signal_emit() call you don't change anything. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GTK now asking for Pangox?
Hi, JS [EMAIL PROTECTED] writes: Well, I downloaded Xft and it now is causing problems. It doesn't want to compile. Here is the log: cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode make: *** [xftcolor.o] Error 1 Argh, that stupid smart preprocessor. Seems to be causing nothing but trouble, better turn it off (but don't ask me how to do that). Do you have X11 headers installed actually? A quick look at config.log seems to indicate that this is not the case. Well, you cannot compile any software for X11 without the X11 header files. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GTK now asking for Pangox?
Hi, JS [EMAIL PROTECTED] writes: It seems odd though, since I do have the Apple X11 server installed on my system and I have installed other packages without an issue. Binary packages or did you compile applications that use X11 from source? You don't need the headers in order to use X11 applications, you only need them to compile any. BTW, could you please try to quote only the relevant parts of the mails you are replying to? I find it very distracting when people quote full mails with signatures and everything. A little bit of netiquette on the list can't hurt. Thank you. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: glib probs...
Hi, Jamie McLaughlin [EMAIL PROTECTED] writes: Oh, pity a poor struggling TD that is trying his best to learn more and more... I use Maya at work, and Shake, and all's peachy in RH7.1. It uses GLIB2.0 (iirc...), or whichever release it used. Now, at work, Softimage|3D, Maya, XSI, Houdini, and Shake ALL are perfectly fine on 7.1, but when I try on my home machine (RH9), they complain of not being able to find the correct version of GLIB, and are unable to link with libc.so.6, so I'm quite stuck here. I have asked several people if it is possible to fix this easily. It can't be THAT hard to fix, can it? I just do not know what to do, as there is no documentation on this problem. You are confusing glib with glibc. Your application looks for glibc, which is the GNU libc. However this mailing list is about glib and gtk+. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GTK Configure Can't link to libjpeg now
Hi, JS [EMAIL PROTECTED] writes: configure:23772: checking for jpeg_destroy_decompress in -ljpeg configure:23803: gcc -o conftest -g -O2 -Wall conftest.c -ljpeg -lintl 5 ld: can't locate file for: -ljpeg Is there a file called libjpeg.so on your system? Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Setting fixed-width font
Hi, Peter Krueger [EMAIL PROTECTED] writes: This will completely override the old font attributes. If you only want to change the font from Helvetica or whatever it is to Fixed and keep the other attributes (style and font size) but you don't already know them, this is a bit more complicated. I never tried it, but I think something like this could work: First you must get the current PangoFontDescription from the widget's style. Then get the description string for it ( char* pango_font_description_to_string(const PangoFontDescription *desc); ) and exchange the font name with Fixed. When you got that you can create a new PangoFontDescription and modify the widget as explained above. You don't need to create a string representation of the font description and fiddle with it since you can modify the font description using the provided Pango API: http://developer.gnome.org/doc/API/2.0/pango/pango-Fonts.html Basically you call pango_font_description_set_family (font_desc, monospace); Note that monospace is the preferred alias to use for a font with fixed glyph widths. Which font is choosen depends on the user's font configuration then. Any correct fontconfig installation is supposed to provide at least one font for each of the sans serif and monospace aliases. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GTK now asking for Pangox?
Hi, JS [EMAIL PROTECTED] writes: configure: error: pangox Pango backend is required for x11 target Now, I already installed Pango and have tried to compile GTK in X11 but it still wants pangox. What is that and how do fix this problem? You compiled Pango but what Pango backends did you compile? Pango's configure script told you about this (in the last lines of it's output). Try running 'pkg-config --list-all' and see what pango packages it lists. You will need pangoxft or pangox to compile gtk+ and gimp requires that you have pangoft2 as well. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GTK now asking for Pangox?
Hi, JS [EMAIL PROTECTED] writes: At least Pango Ft2 is installed, but how do I get Pangox to install? Actually you should seek to get PangoXft installed. PangoX is the old way of handling fonts on the X server side, you better forget about it. Pango will compile the PangoXft backend if it finds xft2. If you installed this library, pkg-config should list it as xft version 2. Try running 'pkg-config --modversion xft'. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GTK Can't Find libtiff
Hi, JS [EMAIL PROTECTED] writes: Well, I looked through the help page and decided to try to compile GTK with the string that you suggested. However, configure still didn't link to libtiff. Can you show us the relevant (tiff-related) parts of config.log? Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GTK Can't Find libtiff
Hi, JS [EMAIL PROTECTED] writes: configure:23170: checking for TIFFReadScanline in -ltiff configure:23201: gcc -o conftest -g -O2 -Wall -L/usr/local/bin conftest.c -ltiff -lm -lintl 5 ld: table of contents for archive: /usr/lib/libtiff.a is out of date; rerun ranlib(1) (can't load from it) Never seen this particular error before but obviously something went wrong when you built libtiff. Looks like you did not create a shared library that gtk+ could link against. libtiff.a is just an object archive for static linking. Is there a libtiff.so in the somewhere? Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GTK Can't Find libtiff
Hi, JS [EMAIL PROTECTED] writes: I have searched the entire root directory and cannot find a libtiff.so file. Is there anyway I could get this file so I can get GTK to recognize libtiff? Yes, compile a shared libtiff library or get your hands on a prebuilt version. fink should have it. how can the build of libtiff go wrong like this? Try if passing --enable-shared to libtiff's configure script. Well, does libtiff have a configure script at all? Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GTK Can't Find libtiff
Hi, JS [EMAIL PROTECTED] writes: As I continue on my quest to get GIMP running on MacOS 10.2.6, I have again ran into a snare with installation. This time it deals with GTK itself. After compiling and installing Pango, I tried to compile GTK again. Well, it came up with another dependency that I needed to install, libtiff. So I went to the GTK site and downloaded the libtiff dependency and compiled and installed it without a problem. Then I went back to GTK and tried to compile it, but it is still asking for libtiff. Here is a portion of the log: checking for TIFFReadScanline in -ltiff... no checking for TIFFWriteScanline in -ltiff... no checking for TIFFFlushData in -ltiff34... no configure: WARNING: *** TIFF plug-in will not be built (TIFF library not found) *** configure: error: *** Checks for TIFF loader failed. You can build without it by passing *** --without-libtiff to configure but some programs using GTK+ may *** not work properly If all else fails, you could disable tiff support as explained in the error message above. It's not really vital for most GTK+ applications, definitely not for GIMP. But since you will want to compile the tiff plug-in in GIMP later, we better tell you how to persuade configure to find libtiff... Check the output of configure --help. It tells you how to add linker, compiler and preprocessor flags. What you will need here is something like LDFLAGS=-L/usr/local/lib ./configure Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Can't Install Pango 1.2.5 on MacOS X
Hi, JS [EMAIL PROTECTED] writes: I and a friend of mine have been trying to get the GIMP running on MacOS 10.2.6 without getting MACgimp. So we have gotten all the necessary software (X11 and Apple Developer Tools) to start working on the installation. On the first try to compile GIMP, we, of course, ran into the dependencies needed by GIMP. We then started downloading and installing them (PKGconfig, Gettext, Libiconv, Glib, and GTK). But, once we got to GTK, we noticed that it needed its own dependencies. We then worked on getting ATK to compile and install, which wasn't easy, and Pango 1.2.5, which we can't seem to get to compile. You need also fontconfig = 2.2.0, available from http://x2.freedesktop.org/software/fontconfig Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Can't Install Pango 1.2.5 on MacOS X
Hi, JS [EMAIL PROTECTED] writes: Thank you both for the great info and links! Actually, I and my friend realized the fontconfig dependency right after posting to the list, but thanks again for the links and the extra help. I will be trying the install of fontconfig soon and will let you all know if Pango and GTK will compile and install. No problem. If you get GIMP-1.3 up and running, I'd appreciate if you could send me one or two nice screenshots that I can put up on http://developer.gimp.org/screenshots.html. The MacOS X shot there is becoming a bit outdated... Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Can't Install Pango 1.2.5 on MacOS X
Hi, JS [EMAIL PROTECTED] writes: It seems to be asking for the expat library, but I am not sure what it is or where to download this dependency. Any help finding this would be great! expat, XML parser library, google will get you there Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Can't compile pango 1.2.5 on a SunOS 5.8 box
Hi, [EMAIL PROTECTED] writes: ok... got fontconfig compiled and set PKG_CONFIG_PATH... other problem... i don't have xft... got openwin without xft. can't I compile pango??? You can compile pango with fontconfig and xft, but it is strongly recommend you install these libraries. Xft is just a library, it can be installed on top of whatever X server you are using. Your real problem is however that glib is not correctly installed. Most probably the linker doesn't find the glib libraries because you installed it outside the library search path. You will have to change the library search path (or simply run ldconfig to update the linker cache). Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Can't compile pango 1.2.5 on a SunOS 5.8 box
Hi, [EMAIL PROTECTED] writes: the xft library... is this vendor dependent? i've searched xft with google, but don't found a download link... www.xfree86.org got the entire package... but i want only xft http://pdx.freedesktop.org/~fontconfig/release/xft-2.1.2.tar.gz Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: more broken installers
Hi, Anthony [EMAIL PROTECTED] writes: Installing ggv-2.4.0.1. Like many other packages, it refuses to look in the /usr/local/lib directory for glib, and instead it looks in /usr/lib. glib is installed in /usr/local. /etc/ld.so.conf has /usr/local/lib as the first line, and doesn't have /usr/lib in it at all. And I have run ldconfig many times. Various kludgey fixes for this brokenness have worked for other packages. export LDFLAGS=-L/usr/local/lib worked for gedit, and export LD_LIBRARY_PATH=/usr/local/lib worked for pango. But not ggv. I also tried to pass --libdir=/usr/local/lib. But ggv doesn't seem to care that I've told it in many ways to look in /usr/local/lib; it insists on looking in /usr/lib, because the files aren't there. (And yes, I am rm -rf'ing the ggv source folder and re-un-packing it each time I try something else.) CAN SOMEONE PLEASE TELL ME WHY THESE INSTALLERS ARE LOOKING IN THE WRONG PLACE. Please. Please help. This is so frustrating. It would help if you read the docs. Docs you should read in particular are ldconfig(8), pkg-config(1) and http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html http://developer.gnome.org/doc/API/2.0/gtk/gtk-compiling.html Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Refreshing window other
Hi, SMS WebMaster [EMAIL PROTECTED] writes: 2. Where can I download http://www.gtk.org/tutorial/ in html format. (the URL ftp.gtk.org/pub/ can't be found !!!) The documentation is part of the GTK+ source tarball. It is by default installed (and cross-linked with documentation for glib, pango and atk) into ${prefix}/share/gtk/doc/html. So you might already have it on your disk. 3. How can I check if a file exist. (Is there any function in GTK to do that. if not then please how can I do it in C) Such functionality is in GLib, see http://developer.gnome.org/doc/API/2.0/glib/glib-File-Utilities.html Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Source for testgtk
Hi, Don Dudley [EMAIL PROTECTED] writes: GTK+ comes with a program called testgtk, installed in /usr/bin. Actually this executable is not supposed to be installed. Anyone know where one can obtain the source code for it? You will find the source in the tests directory of the GTK+ source tree. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: (no subject)
Hi, edscott wilson garcia [EMAIL PROTECTED] writes: On Wed, 2003-09-17 at 15:05, Philippe wrote: Hello, I've got a dialog with three treeviews and one treemodel filled with the names of all the users for the system. I'd like the three treeviews to use the same treemodel. yet they must not display the same users. my question is : is there a way to filter the rows of a treemodel which are goint to be displayed by a particular treeview?? AFAIK, no. Take a look at EggTreeModelFilter: http://cvs.gnome.org/lxr/source/libegg/libegg/treeviewutils You will still need multiple views but there you get a filter API. Might actually make it into GTK+ one day... Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GTK+ documentation
Hi, Chris Moller [EMAIL PROTECTED] writes: I'm in the process of writing a CDT hover help extension to Eclipse, the mechanism that pops up a brief description of a function when you park the cursor over the function name in the Eclipse C/C++ editor. To do this, I need to store API info in a retrievable form. So, the question is: Is there a tagged text version of the GTK docs I could use to extract the relevant info? Something that identifies function names as such, associated arg lists, etc. with SGML or Docbook semantic tags, or something similar. Look into the developer documentation that is part of the source tree (glib, pango, atk, gtk+, ...). It's in DocBook XML. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: mtrace reading
Hi, [EMAIL PROTECTED] writes: in a my application with gtk, program makes and destroy many widgets. With 'top' I have noticed an enormous use of memory for my appl. and so i have used mtrace() function to test memory usage. I suggest you try using memprof instead. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk 2.2.2 and gtk-perl 0.7009
Hi, xavier dumur [EMAIL PROTECTED] writes: I'm trying to build Gtk-perl 0.7009 AFAIK, that version requires gtk+-1.2 which is not compatible with gtk+-2.2 but can be installed in parallel. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: blocking signals
Hi, Peter Van Osta [EMAIL PROTECTED] writes: I am using a spinbutton of which I change the value by interactively by pushing the arrows, but also from another place in the software. However I capture the changed signal, which is very annoying when changing the value of the spinbutton in the program as it makes the callback function respond also to the change of the spinbutton value. What is the best way to temporarily block or interrupt the changed signal to the callback function ? http://developer.gnome.org/doc/API/2.0/gobject/gobject-Signals.html#g-signal-handlers-block-by-func Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk_text_buffer_insert() cause fault.
Hi, [EMAIL PROTECTED] writes: After cross-compiling all the gtk+2.2 related things for my iPAQ, I can run all test applications in the examples directory except 'paned'. When I run 'paned' I got following errors. # ./paned Gtk-ERROR **: file gtktextdisplay.c: line 237 (get_shape_extents): should not be reached aborting... Aborted What GDK backend are you using? If this is a framebuffer-based GTK+, this could be a bug in PangoFT2. Can you please specify exactly what versions of GTK+ and Pango you are using. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk_text_buffer_insert() cause fault.
Hi, [EMAIL PROTECTED] writes: I'm not using framebuffer based gtk+. Good, I'm not responsible for your bug then ;) I think you should write a small test-case that triggers your problem and file a bug-report at bugzilla.gnome.org attaching your test code. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: How can I disable the arrows in submenus?
Hi, On Thu, 2003-08-21 at 01:18, Pablo De Napoli wrote: I want to ask you a question. I don't like the ugly arrows that appear in submenus in gtk+ 2.2 How can I diable them? (I think that they are not a good idea since they make harder to read the submenus) Shall I change somthing in the gtkrc file? Or should I modify the source ? Use a theme that doesn't draw the arrows. If there is no such theme, writing one would be trivial. Just create a theme engine that overrides GtkStyle::draw_arrow and have it not draw anything when the detail is menu_item. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Is GTK+ mature on all platforms?
On Thu, 2003-08-14 at 06:57, Michael Torrie wrote: (Does anyone know how to ask GTK+ for the operating system directory separatoer character?) G_DIR_SEPARATOR and G_DIR_SEPARATOR_S (these have been in glib-1.2 already). GIMP is a good example, except that the new GImp 1.3 does not yet compile under GTK/Win32 2.2.2. This is not true, it compiles and runs just fine. The GIMP-1.3 code also has way less platform-specific code than the 1.2 codebase had. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Is GTK+ mature on all platforms?
On Tue, 2003-08-12 at 21:31, Charlie Root wrote: So I guess the question is are there large applications that can run on win32 demonstrating the strengths of GTK+? What about The GIMP (http://gimp.org/win32) ? Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: problems installing latest version of glib...
Hi, Ed Hartnett [EMAIL PROTECTED] writes: I am on a red hat Linux box, trying to install glib-2.2.2. As per web page instructions, I first got and installed pkg-config. That seemed to go fine. I got version 0.15. During configure of glib-2.2.2 I got the following problem: checking for pkg-config... /usr/bin/pkg-config configure: error: *** pkg-config too old; version 0.14 or better required. What's up with this? How should I proceed? Try 'pkg-config --version' do see what version of pkg-config is used. You probably have an older version in /usr/bin and installed 0.15 in /usr/local/bin. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Printer friendly docs
Hi, Cross-posting to four lists is very bad style. Please read up on netiquette and how to use mailing lists. Because i'm learning the package, it's too tedious to read all the documentation on the monitor. What's the best way to get a printable output preferably with a table of contents and page numbers? I made good experience with xmlto but keep in mind that the output is _huge_. You will need a lot of paper to print all this. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GTK2 problems after power cut
Hi, Wedge_ [EMAIL PROTECTED] writes: This is a slightly strange problem, but I hope someone can help. Yesterday, for no apparent reason, all the lights in my house went off for about half a second. When I checked my comp, it had reset itself. I logged back in, and everything seemed fine, but none of the programs I use which were compiled with gtk2 support will work anymore, and they all fail with a similar error, which I have no idea how to fix. Running gkrellm2 gives: ** (gkrellm2:4455): CRITICAL **: file pango-color.c: line 952 (pango_color_parse): assertion `spec != NULL' failed -:2: Invalid color constant '(null)' -:2: error: invalid string constant #eee1b3, expected valid string constant Segmentation fault Looks like a corrupted gtkrc-2.0 file. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Installing local/individual GTK
Hi, J. Davison de St. Germain [EMAIL PROTECTED] writes: PPS. I'm trying to install it locally because our program that links against the older/system installed libs exhibits strange behavior and also to learn about the GTK system. The strange behavior is this: The program comes up but when I try to bring up a menu (which needs a font) it freezes up. After about 4 minutes, it returns printing out a message that says something like font not found, please look at your .fonts.conf file... etc. I have /usr/local/lib/pango/1.2.0/modules (which have a bunch of .so's in it) in my .fonts.conf file. (BTW, a .fonts.cahce-1 files is created with that path in it.) I've searched the web trying to find out how to make this work, but I can't find anything. It is unclear to me how all these pieces fit together and I can't find a lot of docs on all the different pieces. Perhaps solving this problem is easier than the installing of GTK. Any help on this problem is also greatly appreciated. Thanks again in advance. It should be sufficient to make sure that there is at least one useable font installed in the directory configured in /etc/fonts/fonts.conf or ~/.fonts.conf. You also need to run fc-cache once (as root for globally installed font files). Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk2 win32 and default font
Hi, Kiyoshi TAKAHASHI [EMAIL PROTECTED] writes: That's strange because when I use this, the font is not changed and I have the error message: assertion GDK_IS_COLORMAP(colormap) failed. Up to now, I still wasn't able to change the default font size, in spite of the numerous solutions proposed :( If you want to change the font-size for all GTK2 applications, all you need is to edit the gtkrc-2.0 file. I am sure this file does also exist on Win32. You just need to add a line that says: gtk-font-name=Sans 18 or similar. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Odd Problem with Icons (2.2.2)
Hi, ellF [EMAIL PROTECTED] writes: I'm having an odd problem with icons, as my subject line suggests. I noticed that in gaim (and reproducible with the Stock Icons and Items demo, part of the gtk-demo app), icons would lose their image (that is, either get garbled or disappear entirely) until the mouse passes over them. I did not observe this problem until I installed gtk-2.2.2, and the associated dependencies. See http://bugzilla.gnome.org/show_bug.cgi?id=114878. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Fuzzy fonts under 2.2.2?
Hi, Geoff [EMAIL PROTECTED] writes: I just upgraded from gtk+-2.0.9 to 2.2.2. I don't run gnome, but I think I have all necessary libraries. I am running Xfree 4.3 and the icewm WM. I am no expert on fonts. I work mostly in arial, and I immediately noticed that the font seems to look less sharp than it did before I upgraded. The difference was immediately obvious in the newsreader Pan, where I had previously been using arial 12, which now looked bigger and much fuzzier than before. It helps to reduce the size to 11 (which previously would have been too small and is now quite legible), but the poorer quality (to my eye), of the rendering remains. Is there a reason for this? Am I doing something wrong? GTK+-2.2 by default uses Xft2 to render antialiased fonts while GTK+-2.0 defaulted to the old-fashioned X11 core fonts. If you really don't like the new font rendering, you can set the environment variable GDK_USE_XFT to 0. But you should be aware that the old server-side font rendering will not stay forever, it is likely not to be supported with future releases of Pango. You can improve the text rendering by using an uptodate version of freetype2. Also, enabling the truetype bytecode interpreter in freetype2 improves the legibility of small fonts. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtkFB performance
Hi, Peter Gasper [EMAIL PROTECTED] writes: Well, I compiled the geode specific framebuffer drivers. While there was a tiny noticeable speed improvement in redrawing, it is still much too slow. Any other ideas? What sort of linux OS environment related things could cause poor performance. The framebuffer driver will not give you any speed improvements unless you use GTK+-DirectFB and have a gfx card supported by DirectFB. The linuxfb backend does not take advantage of hardware acceleration. One thing you should also take care of is that you have mtrr enabled. Check what /proc/mtrr says and read what the kernel docs say about mtrr and framebuffer devices. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Can't run the example
Hi, Jane Young [EMAIL PROTECTED] writes: I just installed GTK+-2.2.2 and libraries including atk-1.2.4, glib-2.2.2 and pango-1.2.3, but when I was trying to compile an example which is included in the zip file, it gave me errors like: gcc menu.c -o menu -Wall -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED 'pkg-config gtk+-2.0 --cflags --libs' /bin/sh: pkg-config: command not found Well, you better install pkg-config then. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtkFB performance
Hi, Peter Gasper [EMAIL PROTECTED] writes: I have a simple GUI app (gtkmm) running on gtkFB. The framebuffer driver being used is the kernel's vesa driver. It runs, but screen redraws (for example resizing of panes) are very slow and cause the mouse to pause till its done redrawing. I can see several causes of this: 266 processor (shouldn't be an issue though) using the vesa fb driver rather than the one specifically for the geode (our processor) that its unaccelerated (fix by using DirectFB?) others? There was support added for the NSC GX1/GX2 cards to DirectFB recently. That might be the chip you are using. So you could try GTK+-DirectFB. This would also fix the blocking mouse since it uses threads for input devices. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk-config
Hi, [EMAIL PROTECTED] writes: I built glib, atk, pango, then gtk. No gtk-config? No, gtk-config is in gtk+-1.2 only. Please read http://developer.gnome.org/doc/API/2.0/gtk/gtk-compiling.html Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Uninstall GLIB 2.2.1
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 it is best *** to remove the old version of GLib. You may also be able to fix the error *** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing *** /etc/ld.so.conf. Make sure you have run ldconfig if that is *** required on your system. *** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH *** to point to the correct configuration files no configure: error: *** GLIB 2.0.0 or better is required. The latest version of *** GLIB is always available from ftp://ftp.gtk.org/. How do i stop this error from occurring? Read it carefully and then do what it suggests ?! Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Save errors message
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... How to record the errors messages of GTK ? Error messages and warnings go to stderr but you are only catching stdout. Try './test errors.log 21'. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Save errors message
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: problems with Item Factory
Hi, Stoyan karanfilov [EMAIL PROTECTED] writes: I got an error : ANSI C++ prohibits conversion from `(Scene *)' to `(...)' Please read the comment in gtkitemfactory.h. You need an explicit cast if you are using GtkItemFactoryCallback from C++. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: newbie: doubt on GObject system
Hi, Tarun Ramakrishna Elankath [EMAIL PROTECTED] writes: I am new to Gtk and have been reading up on GObject and GType. What I have failed to understand is why is it that the GTypeInfo structure fails to provide a field for instance finalizer functions ? We have fields for specifying class initialization, class finalization, instance initialization functions but *not* for instance finalization. For specifying an instance finalization function, one needs to assign it to the finalize member of the GObjectClass in the instance init function. And in addition, make sure that this user-defined finalization function also calls the finalize function of the parent class object. Is this the only way to do it ? Have I misunderstood something here ? I think you understood the principles pretty well. Well, most people assign the finalize method when the class is initialized, not in the instance initializer. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: trying to build gtk+-2.2.1 - error when running configure
Hi, Luong, Natalie N [EMAIL PROTECTED] writes: I ran ./configure, and I get the following error (as recorded in the config.log): configure:12889: checking for gdk-pixbuf-csource configure:12920: result: no configure:12928: error: Could not find a gdk-pixbuf-csource in your PATH How do I fix this? Looks as if you are cross-compiling. You need gdk-pixbuf-csource on the build host. It is installed with gtk+, so the easiest solution is probably to install gtk+ on the build host. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Label issue of toggle buttons...
Hi, Hari Prasad Nadig [EMAIL PROTECTED] writes: This didn't work I'm using GTK 1.2. Perhaps this is a function in GTK 2.0... Yes, this function was added in GTK+-2.0 and no, I'm not going to give support for an outdated and unmaintained GTK+ version that noone should be developing with any longer. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Label issue of toggle buttons...
Hi, Paul Davis [EMAIL PROTECTED] writes: gtk_label_set_text (GTK_LABEL(GTK_BIN(button)-child), OFF); Fortunately you don't need to write this ugly code any longer since there is gtk_button_set_label() nowadays. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Speed of GtkListStore additions O(n^2)?
Hi, Linus Walleij [EMAIL PROTECTED] writes: Then I happen to need to blank the store and refill it repeatedly. And there doesn't seem to be a good way to turn sorting _off_ once you turned it on, so any subsequent fills will be O(n^2) anyway. Any suggestions? Or will I simply have to destroy the ListStore (and thus the ListView) and create a new one each time I want to do something like this? What we are doing in gimp (plug-ins/dbbrowser/dbbrowser_utils.c) is the following: dbbrowser-store = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_STRING); gtk_tree_view_set_model (GTK_TREE_VIEW (dbbrowser-tv), GTK_TREE_MODEL (dbbrowser-store)); g_object_unref (dbbrowser-store); /* fill the store */ gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (dbbrowser-store), 0, GTK_SORT_ASCENDING); The views keeps alive and the new store is filled reasonably fast and sorted afterwards. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Label issue of toggle buttons...
Hi, Hari Prasad Nadig [EMAIL PROTECTED] writes: I created a new toggle button.. gtk_toggle_button_new_with_label(ON); now how do I change the label to OFF when the button is toggled? gtk_button_set_label (GTK_BUTTON toggle), OFF); Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk_menu: update the menu
Hi, Maarten [EMAIL PROTECTED] writes: I use strtok to separate the entrys from the string. Have a look at the strtok(3) man-page. It explains why you should _never_ use this function. Consider to use g_strsplit() instead. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: compiling problem of gtkpixbuf
Hi, yangxiaoli [EMAIL PROTECTED] writes: From tutorial I get a program about pixbuf.When I compiled it using command: gcc pixbuf.c -o pixbuf 'pkg-config gtk+-2.0 --cfalgs --libs' There are two problems with your command. First, it should be --cflags, not --cfalgs. Then, you need to use backticks, not apostrophes: gcc pixbuf.c -o pixbuf `pkg-config gtk+-2.0 --cflags --libs` Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Running gtk+-1.2
Hi, Shiraz Baig [EMAIL PROTECTED] writes: I have installed on my computer, both, the gtk+-1.2 and gtk+-2.0. I want to compile programs with gtk+-1.2. But I do not know how to do that? I can compile with gtk+-2.0 by using pkg-config --cflags --libs, but I do not know, how to compile the programs writting under gtk+-1.2 I tried: gcc -o pgm pgm.c `pkg-config gtk+-1.2 --cflags --libs` Try the above with 'gtk+' instead of gtk+-1.2. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: theme question
Hi, Dave Smith [EMAIL PROTECTED] writes: I am just learning about GTK and I have a related problem. My test program does not seem to find my ~/.gtkrc file. Are you using GTK+-2.x (well, you should)? If so, try to rename your file to .gtkrc-2.0. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: theme question
Hi, Dave Smith [EMAIL PROTECTED] writes: BTW, I am using gtk+-2.2.1, (my distro initially loaded 1.2). Any ideas on why the font command still doesn't work in this file? Yes. The syntax for gtkrc-2.0 is not 100% compatible with the old gtkrc format. Fonts are no longer specified using the XLFD. If you want to change the default font, try adding a single line like: gtk-font-name = Sans 10 Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Transparent buttons
Hi, Paul Davis [EMAIL PROTECTED] writes: On Tue, 2003-05-27 at 18:51, sydney barrow wrote: Is there a way to create transparent buttons (so that the background pixmap shows through) in GTK+ (1.2)? Any help would be greatly appreciated. IIRC, this was one of the really cool features of GTK+ 2, and it isn't possible in GTK+ 1. it certainly is possible, though it can be quite a bit more work. you need to use gtk_widget_shape_combine_mask() together with a GtkEventBox as the underlying widget type. getting full GtkButton semantics from this is hard, but if you want something that responds with generic (ie. button_press, button_release) events, its not that bad. If all you want is the background pixmap to show through, you don't need to do anything special since a GtkButton does not have it's own window but draws on the window of it's parent. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: succeeded in Xscreensaver+GTK on Solaris 2.8
Hi, Utku Ozcan [EMAIL PROTECTED] writes: 3. Not to mention, I have installed make-3.80, m4-1.4, autoconf-2.57, automake-1.7.3 (http://www.gnu.org). Some tarballs require aclocal-1.4 instead of aclocal and automake-1.4 instead of automake in $PATH, therefore I have manually created symbolic link to aclocal-1.4 and automake-1.4. (I don't know if this is automatically done-able during installation of these programs) these packages require automake-1.4. That's why they explicitely use the versioned exectuable name. Instead of creating links to a wrong version, you should have installed automake-1.4. Recent patchlevels install versioned binaries and can coexist with automake-1.7 Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: succeeded in Xscreensaver+GTK on Solaris 2.8
Hi, Utku Ozcan [EMAIL PROTECTED] writes: I haven't used automake-1.4 before, can't we say that automake-1.7 program is backwards compatible with automake-1.4? What kind of side effects might have the symbolic link workaround I've found above? unfortunately, 1.7 is not 100% backward compatible. If you got away with linking, that is fine, but in general it is better to install automake-1.4 if it is explicitely requested. Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Pango/Xft compile problem
Hi, Frank Hrebabetzky [EMAIL PROTECTED] writes: Thanks for the hint 'config.log'. Nevertheless it contains basically the same lines as the 'make' output (see below). So what can I try? you could have a look at the header file that fails: /usr/X11R6/include/X11/Xft/XftFreetype.h:73: parse error before `*' The problem should be obvious if you look there. My version seems to be slightly different, but I'd say it chokes on FcPattern. You installed fontconfig, didn't you ? Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: widgets arange question
Hi, Stoyan karanfilov [EMAIL PROTECTED] writes: Hi, I'm newie to GTK programming. I am writting a program in which I want to place 4 frames with same square sizes (fillinf a square area in the window) and 1 notebook on the right. I already have a menu and toolbar on top of the window. How can I do this with less widgets - vbox, hbox, etc.? by using a GtkTable ?! Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Pango/Xft compile problem
Hi, Frank Hrebabetzky [EMAIL PROTECTED] writes: GTK is needed for a bunch of X-Windows programs, and it requires pango, so I downloaded pango-1.0.5. I tried to install, but during ./configure, the following lines appeared: .. checking for XftFontOpen in -lXft... yes checking X11/Xft/XftFreetype.h usability... no checking X11/Xft/XftFreetype.h presence... yes configure: WARNING: X11/Xft/XftFreetype.h: present but cannot be compiled configure: WARNING: X11/Xft/XftFreetype.h: check for missing prerequisite headers? configure: WARNING: X11/Xft/XftFreetype.h: proceeding with the preprocessor's result checking for X11/Xft/XftFreetype.h... yes checking for pkg-config... /usr/local/bin/pkg-config take a look at config.log to see what really goes wrong about compiling XftFreetype.h. I'd guess you are missing freetype headers. Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: How to add backend application
Hi, pratik desai [EMAIL PROTECTED] writes: I have to run a dc servo motor through RTLinux but the front end GUI needs to be written in Linux. The problem is that how can i connect my applcation to RTLinux module using fifo(real time FIFOs)in GTK programme. Is it possible to write an application which in turn can start the motor. At the same time I need to display the angular position of motor. (Motor should move exactly to that angle specified by user) have a look at GIOChannels: http://developer.gnome.org/doc/API/2.0/glib/glib-IO-Channels.html They are easily integrated into the GTK+ main loop. Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Maybe a bug of gtk/gdk ?
Hi, James Su [EMAIL PROTECTED] writes: when I call gtk_init (argc, argv) with argc == 0, the program crashed at gdk_parse_args () in gdk.c. I digged into the source code and found that there are possiblly some bugs in gdk_arg_context_parse, which does not check if argc = 0. I don't know should we treat it as a bug, or just restrict argc 0 in the documentation and force application send a valid data to gtk_init? IIRC, this has been fixed quite some time ago. Did you check GTK+ HEAD and look into Bugzilla? Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Double-buffering with GTK
Hi, Zigus Software Inc [EMAIL PROTECTED] writes: I have to create a game in Linux using c++ and gtk v2.0. I'll have a lot of small images (around 100) in the screen that will need to move fast. I was wondering how redrawing can happen fast without flickering. How can I implement double-buffering to make everything smoother? GTK+-2.x already transparently implements double-buffering for you. Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Maybe a bug of gtk/gdk ?
Hi, James Su [EMAIL PROTECTED] writes: Sorry, I'm using gtk+2.2.1. I'll check GTK+ HEAD later. But I wonder if this fix will be merged into 2.2 series? if the problem exists in 2.2.1, it probably has not been fixed. Bug fixes are currently always applied to the 2.2 branch as well. Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: How is GdkPixbuf pixel data stored?
Hi, Christopher Andrew Chenery [EMAIL PROTECTED] writes: My Question is simply why are there two extra bytes per image row, what do they represent and what is a rowstride? - the documentation assumes this knowledge! rowstride is the number of bytes you need to skip to get to the same column in the next row. The reason that this is not equal to width * bpp is simply that memory is most efficiently accessed on word boundaries. For this reason, GdkPixbuf (and other libraries that deal with pixel graphics), assure that pixel rows start on word boundaries. The extra two bytes you see are just for padding and you should never access them. Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list