Re: how to hide close button in gtk dialog
Yogesh M wrote: found it, sometimes it is neccessary to avoid confusion. for example in a dialog i have a cancel button, now if the window show a close button, it is a confusion that whether the window closes or the cancel activates or both. It's common convention that title bar close buttons of windows do a cancel-close. Especially if inside the window there are both Cancel and OK buttons as well. Hint: only using the OK button should confirm input or changes. Closing the window by any other means (i.e. Cancel-button, title bar close button, hitting the [Esc] key, killing or crashing the application) never does. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
set current worlking directory to executable path
I am using Gtk in windows(as well as linux). I want to set the environment path to executable path so i can load icons present in the executable path. I will be happy if it works both on linux and windows. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Pango docs
Hi, I compiled pango. How do i turn the stuff in pango/docs/ in to some kind of manual? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: extracting a portion of a GdkPixmap
On 8/9/05, Boncek, John [EMAIL PROTECTED] wrote: I have a GdkPixmap. I need to programmatically extract a new GdkPixmap from this image based on x- and y-coordinates, plus width and height. The x, y, width, and height parameters will vary too much at runtime to store all the copies needed. I think you just make a new small pixmap of the size you need, then copy the pixels you want from your big pixmap into the small pixmap. The copy will (usually) be done in hardware, so it's very fast. You could consider using a pixbuf instead and doing the manipluation on the client side, but perhaps that doesn't suit your application. If it does, there's a very convenient pixbuf constructor: http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/gdk-pixbuf-creating.html#gdk-pixbuf-new-subpixbuf John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
How to filter the font selection dialog in GTK-2.x
gtk_font_selection_dialog_set_filter and gtk_font_selection_set_filter do not exist in 2.x I want to filter the fonts shown in the dialog to fixed pitch fonts only. I searched the archive and the question has been asked before but never answered. Lets see what happens this time. Norman Saperion Inc. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Bayer Pattern images in Pixbuf or Pixmaps
it would be helpful if you tell us what the heck a 'bayer pattern' is ... Michal Porzuczek wrote: Hi I was wondering if Pixmaps or Pixbufs support Bayer Pattern data and if not if there is a simple conversion technique to get a Bayer Pattern image into an RGB or other image format that could be used properly by a Pixbuf or Pixmap. Thanks a lot, Michal ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Bayer Pattern images in Pixbuf or Pixmaps
Stefan Kost writes: it would be helpful if you tell us what the heck a 'bayer pattern' is ... See for instance http://www.cambridgeincolour.com/tutorials/sensors.htm . That was the first Google hit when searching the words bayer array (without the quotes). I was wondering if Pixmaps or Pixbufs support Bayer Pattern Nope. That would be way too application domain specific for GTK+. if there is a simple conversion technique to get a Bayer Pattern image into an RGB or other image format that could be used properly by a Pixbuf or Pixmap. You mean a simple demosaicing (debayering) technique? Well, a trivial one like nearest neighbour for the missing colour channels of each pixel is probably simple, but it isn't good qualitywise. High-quality demosaicing algorithms are not simple. See for instance http://www.cs.pdx.edu/~cklin/demosaic/ . The Open Source dcraw program (http://www.cybercom.net/~dcoffin/dcraw/) uses an algorithm called Interpolation using a Threshold-based variable number of gradients described in http://www-ise.stanford.edu/~tingchen/algodep/vargra.html --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Color Initialization
Lists, OS: win2k/XP Using Unix/Linux you can use an .rc to initialize parameters, like a default color set, anytime GTK+ is used. What is the approach to initialize a default color set when using win2k/XP without adding code to every application? Thanks, MikeF ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
some things in GTK+ 2.7.5
Hi everybody, Some questions and remarks about files of GTK+ 2.7.5 : in GTK+ 2.7.5\gtk\gtkvpaned.c lines 199 to 209 : if (GTK_WIDGET_MAPPED (widget) paned-child1-allocation.height child1_allocation.height) { gtk_widget_size_allocate (paned-child2, child2_allocation); gtk_widget_size_allocate (paned-child1, child1_allocation); } else { gtk_widget_size_allocate (paned-child1, child1_allocation); gtk_widget_size_allocate (paned-child2, child2_allocation); } why is the order of allocating paned-child1 and paned-child2 important here ? in GTK+ 2.7.5\gtk\gtkrc.c twice the same lines, lines 2558 and 2560 : token = g_scanner_get_next_token (scanner); token = g_scanner_get_next_token (scanner); is this correct ? in GTK+ 2.7.5\gtk\gtkcheckmenuitem.c lines 441 to 444 we have : offset = GTK_CONTAINER (check_menu_item)-border_width + widget-style-xthickness; offset = GTK_CONTAINER (check_menu_item)-border_width + widget-style-xthickness + 2; is the first offset = ... really necessary here ? in GTK+ 2.7.5 in modules\engines\ms-windows, in msw_style.c, line 785 : /* Default forgeground */ this might be foreground here Benoît Carpentier, GTKool ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: Linking glib with gld in Irix
On Mon, Aug 08, 2005 at 03:41:19PM +0200, Magnus Bergman wrote: I have problems building glib (2.6.6) in Irix using GCC, gas and gld (no, I don't forget to use --with-gnu-ld). It fails then linking glib-genmarshal against glib because some symbols, including g_malloc cannot be found. Then I examine the glib library (using GNU objdump) I see than most symbols are marked hidden, for example: 60017e80 l F *ABS* .hidden IA__g_malloc While a few are not, for example: 600354bc g F *ABS* g_strcasecmp Is GNU ld even recommended for building GCC no IRIX? I don't think so. GNU ld isn't feature-complete on IRIX: http://sourceware.org/ml/binutils/2005-06/msg00621.html -- albert chin ([EMAIL PROTECTED]) ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: some things in GTK+ 2.7.5
Benoit Carpentier [EMAIL PROTECTED] writes: lines 199 to 209 : if (GTK_WIDGET_MAPPED (widget) paned-child1-allocation.height child1_allocation.height) { gtk_widget_size_allocate (paned-child2, child2_allocation); gtk_widget_size_allocate (paned-child1, child1_allocation); } else { gtk_widget_size_allocate (paned-child1, child1_allocation); gtk_widget_size_allocate (paned-child2, child2_allocation); } why is the order of allocating paned-child1 and paned-child2 important here ? Because if the child widgets have windows, then allocating them in the other order would make the windows overlap briefly, which causes unnecessary flicker and repainting. Søren ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
configure.in changes
I just rewrote large chunks of the X checks in configure.in ... there were a couple of points of this: - Remove the entanglements with pangoxft, which I've removed as a dependency of GTK+. - Use pkg-config as much as possible rather than older heuristics. With X11R7 .pc files for the X libraries will become a lot more common. - General simplification In general I think what's there now is quite a bit cleaner and simpler, but since I can't test most of the cases, there certainly is some possibility that I broke something. So, if people want to test out what is in CVS now I'd appreciate it, especially for those deviating from the central stream of Linux+recent X.org. Regards, Owen signature.asc Description: This is a digitally signed message part ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
About Pango warning : Error loading GPOS table 4097
hi all Usally i am getting the fallowing warning from pango. (process:5528): Pango-WARNING **: Error loading GPOS table 4097 i dont know the reason for this warning , i searched in google but i didn't get any proper solution. please provide me a solution to avoid this warning and please tell me what is exactly GPOS table ? Thanks in advance. -- -- Faith begins when ability fails... Girish A J Associate - Software, PicoPeta Simputers Pvt Ltd. URL http://www.picopeta.com -- ___ gtk-i18n-list mailing list gtk-i18n-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-i18n-list
Re: About Pango warning : Error loading GPOS table 4097
On Tue, 9 Aug 2005, Girish wrote: hi all Usally i am getting the fallowing warning from pango. (process:5528): Pango-WARNING **: Error loading GPOS table 4097 i dont know the reason for this warning , i searched in google but i didn't get any proper solution. please provide me a solution to avoid this warning and please tell me what is exactly GPOS table ? Most probably this means you have a corrupt font. GPOS is a class of tables in OpenType fonts. You can find the guilty font by using the tool in the pango source tree called pango/opentype/ottest to parse the OpenType tables in all fonts you have installed and see which one produces a similar error. Thanks in advance. --behdad http://behdad.org/ ___ gtk-i18n-list mailing list gtk-i18n-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-i18n-list
Re: Expose events not occurring from gdk_window_invalidate_rect
Douglas Vechinski wrote: That appears to have been the problem. Changed the rectangle to begin at (0,0). Seems to be working under all platforms. That part of the code was actually a left over from a gtkglext example that I started with and was modifying. Plus I haven't done much GTK+ programming. Trying to get familar with it. Thanks for your help. Douglas Luca Cappa wrote: Hello, Douglas Vechinski wrote: Yes it is idle a lot. Whenever your not moving the mouse or interacting with the GUI it should be sitting in main GTK event loop. On Fri, 2005-08-05 at 17:31 +0200, Sven Neumann wrote: Hi, Douglas Vechinski [EMAIL PROTECTED] writes: The problem I am having is that depending upon the size of the drawing area window, the expose event handler (to redraw the scene) is not called after I issue a gdk_window_invalidate_rect. Which is the rectangle you are calling the gdk_window_invalidate:rect? You should pass to it the rectangle relative to its upperleft origin (for its entire size you shoudl pass for example [0,0]-[width, height]), and not its allocation, that it's instead relative to the container origin. Correct me if i am wrong. Greetings, Luca ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Compiling pkgconfig with arm-linux-gcc
Hi All, As I am building gtk package, i downloaded all the dependencies and needful things. But facing some prombles: a)I tried to cofigure pkconfig with arm-linux-gcc but it is giving some problem. Can anyone tell me the command for configuring pkgconfig with arm-linux-gcc. b) same problem I am facing with glib also I type the following command to configure it: ./configure CC=/opt/gcc-3.4.0/bin/arm-linux-gcc cross_compiling=yes But it is giving the following error: unable to run the test program. Please tell me what to do,if anyone knew something abt. it. thanks and regards Prakhar __ Free antispam, antivirus and 1GB to save all your messages Only in Yahoo! Mail: http://in.mail.yahoo.com ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Very confused with pixbufs, pixmaps, images, rgbs and drawables
Hi, Chris Seaton [EMAIL PROTECTED] writes: If these names (any many of the classes themselves) are only around because of the history of X, when are we planning to update them? At the moment the entire architecture of the image system in Gdk reflects the history of one supported platform. That can't be good. Changing the names would break compatibility so it is not an option. Actually you shouldn't see any of these types but GdkPixbuf when writing a typical GTK+ application, so what's the fuzz? Sven ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
AW: fontconfig: make does not find libraries expat and freetype
Hello, I have compiled a pkgconfig from source (for build system of course not for target) in ~/toolchain/whatever And set export PKG_CONFIG_PATH=~/toolchain/whatever then I placed a symlink to libfreetype.so.6 in ~/toolchain/whatever but still bad luck. I do not know if libtool is even used. Bye Albrecht Ellinger -Ursprüngliche Nachricht- Von: Albrecht Ellinger [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 4. August 2005 14:18 An: gtk-list@gnome.org Cc: [EMAIL PROTECTED] Betreff: fontconfig: make does not find libraries expat and freetype Hello, I am cross-compiling gtk+ for mips processor. That's why I have to compile fontconfig also. Expat and freetype are there, they compiled using mipsel-linux-gcc smoothly. But now these libraries are not found during linking of fontconfig. Version: fontconfig-2.2.99 freetype-2.1.9 expat-1.95.8 ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Uninstalling gtk
Hi to all, I have Mandriva and i want to update gtk+. I've downloaded sources from the web site. But i need to remove old gtk+. I can't do it from rpmdrake, because rpmdrake give to me dependencies problems with installed programs. How can i remove old gtk without uninstalling other programs? Thanks a lot for the answer. Giovanni De Maio ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Uninstalling gtk
Hi: I've installed GTK+2.7 on a Madriva 2005, and I didn't remove anything: that way the systems thinks the old GTK+ version is already installed, so there's no problem with dependencies. The new libraries overwrite the old ones, provided that you configure the packages with the --prefix=/usr option. And these libraries are binary compatible, so the applications still work. It worked for me in a transition from GTK+-2.4 to 2.6 in my former Mandrake system, and now with the change GTK-2.6 to 2.7 (however 2.7 is still a testing release, so some times Firefox and Thunderbird crashes) Regards, D. Campos Giovanni De Maio escribió: Hi to all, I have Mandriva and i want to update gtk+. I've downloaded sources from the web site. But i need to remove old gtk+. I can't do it from rpmdrake, because rpmdrake give to me dependencies problems with installed programs. How can i remove old gtk without uninstalling other programs? Thanks a lot for the answer. Giovanni De Maio ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Compiling pkgconfig with arm-linux-gcc
Hello prakhar, On Tue, Aug 09, 2005 at 10:10:35AM +0100, prakhar vig wrote: a)I tried to cofigure pkconfig with arm-linux-gcc but it is giving some problem. Can anyone tell me the command for configuring pkgconfig with arm-linux-gcc. You need to type some command! But seriously, you'd have more chances to get help if you write at least the command you typed and the error message you saw. b) same problem I am facing with glib also I type the following command to configure it: ./configure CC=/opt/gcc-3.4.0/bin/arm-linux-gcc cross_compiling=yes But it is giving the following error: unable to run the test program. I think configure tries to run the program compiled for the target in order to determine some property of the target. Look into config.log; if this is the case, find out what configure is looking for and follow instructions in http://developer.gnome.org/doc/API/2.0/glib/glib-cross-compiling.html to set that parameter. I used the following settings in arm-linux.cache: glib_cv_stack_grows=no glib_cv_rtldglobal_broken=no glib_cv_uscore=no ac_cv_func_posix_getpwuid_r=yes After creating the file, I started ./configure --host=arm-linux --cache-file=arm-linux.cache With kind regards, Baurzhan. ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
designing an XML editor TreeView
I need to create an XML editor TreeView for SVG files. Right off I'll ask if anyone knows of a nice example of an XML editor written in GTK+ that I can take a look at. I'd want to be able to drag and drop sections of the markup and edit/add elements, attributes and values. I see the tree view having 6 columns an 'id' (string) for easy lookup of important elements. They usually have an id for a reason. a 'type' (pixmap) iconic a 'image' (pixmap) a dynamic graphic representation of the object a 'tree_control' (pixmap ^ ... ) a 'name' (string) an element or attribute name an optional 'value' (string) for attribute data. The attribute value can be a string, an enum, a number (possibly integer) coordinate data, color data, etc. So the interface for editing attribute values can benefit from some extra interface work to help the user work faster and to provide some built in data validation and hinting. I have code to validate SVG. i.e. If the value is an enumerated type, it would be nice to have a drop down selection control attached to the value that allows the user to select another valid enum. If the value is a paint, there are several options, fill styles, gradients (reference id's or url's) colors (named colors, red/green/salmon, web colors, #FF00FF) etc. One idea that occurs to me is to create right click menus for each property type, but it would be cleaner if I could integrate controls into the value field, like a dropdown box icon for enumerated items. The paint value is a good example of a complicated field that would benefit from several types of UI possibilities: 1) select an id of a valid fill type from a dropdown (i.e a previously defined gradient) 2) select a named colour value from a dropdown 3) enter a web colour directly into the field (#FFF0B6) 4) pull up a colour dialog 5) select from a list of colours used elsewhere in the document. for continuity. A right click menu would be the easiest to implement and would not complicate the tree view, but would lead to the creation of modal dialogs. I'd like to avoid that in favour of creating UI Widgets right in the tree view if possible. If anyone can suggest a clean approach to this can of worms I'd very much like to hear it. Also, this brings up UI design issues that may be unique to GTK. If there are cleaner and faster ways to do this, or just dead wrong approaches to this kind of thing I'd appreciate heads up opinions on those too. :) -- Cheers! Rick ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Compiling pkgconfig with arm-linux-gcc
Hello Baurzhan, I used the following settings in arm-linux.cache: glib_cv_stack_grows=no glib_cv_rtldglobal_broken=no glib_cv_uscore=no ac_cv_func_posix_getpwuid_r=yes After creating the file, I started ./configure --host=arm-linux --cache-file=arm-linux.cache I tried the above steps for configuring glib atleast now the error test program found is not coming, but the error I am receiving now is: error: checking for glib-genmarshal result:no error:could not found glib-genmarshal If you know something abt. it please write me. And In case of pkgconfig I don't know how to crosscompile pkgconfig , please write me the command to crosscompile pkgconfig. Thanks And Regards prakhar Send a rakhi to your brother, buy gifts and win attractive prizes. Log on to http://in.promos.yahoo.com/rakhi/index.html ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Password entry
How do I create password entry? (ie. same like Gtk2::Entry but every chars displayed as *) Thanks. -- --beast ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Re: Password entry
On Tue, 2005-08-09 at 15:15 +0700, Beast wrote: How do I create password entry? (ie. same like Gtk2::Entry but every chars displayed as *) Use $text-set_visibility(0) For example using Glade: $text=$gladexml-get_widget('entry1'); $text-set_visibility(0); Hope this help. Peco Thanks. ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Re: error when starting app
On Tue, Aug 09, 2005 at 11:30:30 +0200, Flatman wrote: * Jens Luedicke [EMAIL PROTECTED] wrote: | | This is some problem with Pango and if it appears only when running | gtk2-perl programs I would try to recompile the bindings against the | system Gtk2. | How to do this ? Depends on your system. You can always install the bindings manually (see the web page for intallation instructions) or try to rebuild the relevant package, if it's a package (see your package manager for instructions). --- Jan 'Bulb' Hudec [EMAIL PROTECTED] signature.asc Description: Digital signature ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Re: globaly remove icon
On Tue, 2005-08-09 at 15:20 +0700, Beast wrote: Suppose I want to remove all stock icon next to menu and button for all applications, is it possible? Use the Menus Toolbars preference thingy in GNOME. This isn't related to Gtk2-Perl in any way. -- Bye, -Torsten ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
circular buttons?
hi is there a way to make circular button in gtk2? i guess i could do it with images, but is there a better way? regards, bostjan -- igzebedze - he who speaks loud and say nothing ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Re: globaly remove icon
Torsten Schoenfeld wrote: On Tue, 2005-08-09 at 15:20 +0700, Beast wrote: Suppose I want to remove all stock icon next to menu and button for all applications, is it possible? Use the Menus Toolbars preference thingy in GNOME. This isn't related to Gtk2-Perl in any way. It is from gtk : my $bt_ok = Gtk2::Button-new_from_stock('gtk-ok'); -- --beast ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list