How convert xpixel to rgb ?
well, i get the xpixel with gdk_image_get_pixel() and i need this pixel in rgb, how convert it ?. Thanks. -- Gonzalo Montesdeoca Zamora Santa Brigida Canarias -- ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Getting a nultiple selection from a CList
Hello Neil, When you are in MULTIPLE SELECTION mode, you can select multiple row by just clicking then one after one. And if you don't want anymore one row, just click on it. It doesn't use the ctrl and shift button! If you want it to be like under windows explorer, by using shift and ctrl, to select group or individual files, then you should set the mode to EXTENDED SELECTION. It is also about multi-selection! Best regards, --- Jean-Christophe Berthon - Original Message - From: Neil Hodge [EMAIL PROTECTED] To: Jean-Christophe Berthon [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, March 29, 2002 1:50 AM Subject: Re: Getting a nultiple selection from a CList Jean: Thanks for the information. Now I have one more question related to this. I have activated GTK_SELECTION_MULTIPLE on the CList in question. However, when I try to actually do a multiple selection (mouse + shift or ctrl), nothing happens. Is this behavior not built in? If not, then how can I create it??? Thanks. Neil On Thu, 2002-03-28 at 02:30, Jean-Christophe Berthon wrote: Hello Neil, Here is how I'm doing it (I have a Selection Extended CList) GList *pxGList= NULL; gint32 iColumn; pxGList = GTK_CLIST(lstTemplate)-selection; pxGList = g_list_first(pxGList); while (pxGList != NULL) { gtk_clist_set_text(GTK_CLIST(lstTemplate), GPOINTER_TO_INT(pxGList-data), iColumn, Hello); pxGList = g_list_next(pxGList); } Best regards, --- Jean-Christophe Berthon - Original Message - From: Neil Hodge [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 7:23 PM Subject: Getting a nultiple selection from a CList All: I can't find any documentation regarding how to get the results from a multiple selection in a CList. Any help would be much appreciated. Thanks. Neil Hodge __ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list -- Neil Hodge [EMAIL PROTECTED] ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Program can't find pixmap/icon
My program loads the pixmap at runtime (using gdk_pixmap_create_from_xpm). But as soon as someone moves the binary, it can no longer find the pixmaps to use for my icons. How can I bundle the pixmaps and the binary together so that the pixmaps are always found? Thanks. You may #include it into your sources and use gdk_pixmap_create_from_xpm_d() -- Best regards Pavel. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Changing foreground color of a drawing area
Hello, I am writing an application that creates an image characterized by several different colors. For this reason, I need to change the drawing (i.e., the foreground) color of a GtkDrawingArea many times during the life of the application. I have found a way to do it but don't think it's particularly clean. I have not had much luck finding documentation that specifies a better way (that has not been deprecated). Do any of the experts have any suggestions? The structure of my current code follows: GdkColor mycolor = { 0, 0xaa, 0xaa, 0xaa }; GdkColormap *mycolormap; GdkGCValues mygcvalues; GdkColor originalcolor; /* Get the widget's graphic context properties and store the original * foreground color. */ gdk_gc_get_values( widget-style-fg_gc[GTK_WIDGET_STATE( widget )], mygcvalues ); originalcolor = mygcvalues.foreground; /* Get the widget's graphic context properties. */ mycolormap = gtk_widget_get_colormap( widget ); /* Allocate the color we wish to use. */ gdk_colormap_alloc_color( mycolormap, mycolor, TRUE, TRUE ); /* Set the foreground color to the new color. */ /* Why doesn't this work? gtk_widget_modify_fg( widget, GTK_STATE_NORMAL, mycolor ); */ gdk_gc_set_foreground( widget-style-fg_gc[GTK_WIDGET_STATE( widget )], mycolor ); /* Draw shapes in new foreground color */ . . . /* Reset the foreground color to the new color. */ gdk_gc_set_foreground( widget-style-fg_gc[GTK_WIDGET_STATE( widget )], originalcolor ); . . . Also, I tried to use gtk_widget_modify_fg (above), but it didn't work. Has anyone else had any luck? If so, would you attach a small piece of code? Thanks! Brad ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
GLib-2.0.1 released
GLib-2.0.1 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.0/ GLib-2.0.1 is a bug fix release, which is compatible with GLib-2.0.0. We recommend that people using GLib-2.0.0 upgrade to this release. About GLib == GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes in GLib 2.0.1 = * Portability fixes for Sun's Forte compiler [Erwann Chenede] * Performance improvements for GObject parameter lookup, g_filename_to/from_utf8() [Alex Larsson] * Actually check interface prerequisites [Matthias Clasen, Miroslaw Dobrzanski-Neumann] * Fix problem with glib-mkenums taking huge amounts of stack. [Owen Taylor] * Fix g_signal_handlers_disconnect_by_func() for C++ [Damien Sandras] * Fixes for g_log() and threading. [Sebastian Wilhelmi, Miroslaw Dobrzanski-Neumann, Tim Janik] * Make g_print(), g_printerr(), g_warning(), etc, convert from UTF-8 to the encoding of the locale [Sebastain Wilhelmi, Tim] * Fixes for GIOChannel on windows. [Tor Lillquist] * Fix gsize/gint mismatches in giochannel.c [Miroslaw] * Fix file descriptor leak in g_file_get_contents() [Matthias] * Workaround iconv() problems on older Solaris [Lauri Alanko] * Fix warnings with gcc-3.1 about asm const [Cody Russel] * Minor bug fixes. Other contributors: Hans Breuer, LEE Sau Dan, Sven Neumann, Salmaso Raffaele, Akira Tagoh, Morten Welinder 29 March 2002 ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Pango-1.0.1 released
Pango-1.0.1 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.0/ This is a mostly a bug fix release and is source and binary compatible with Pango-1.0.0. About Pango === Pango is a library for layout and rendering of text, with an emphasis on internationalization. Pango can be used anywhere that text layout is needed; however, most of the work on Pango-1.0 was done using the GTK+ widget toolkit as a test platform. Pango forms the core of text and font handling for GTK+-2.0. Pango is designed to be modular; the core Pango layout can be used with four different font backends: - Core X windowing system fonts - Client-side fonts on X using the Xft library - Direct rendering of scalable fonts using the FreeType library - Native fonts on Microsoft backends Dynamically loaded modules then handle text layout for particular combinations of script and font backend. Pango-1.0.0 ships with a wide selection of modules, including modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts. Virtually all of the world's major scripts are supported. As well as the low level layout rendering routines, Pango includes PangoLayout, a high level driver for laying out entire blocks of text, and routines to assist in editing internationalized text. More information about Pango is available from http://www.pango.org/. Pango depends on version 2.0.0 of the GLib library; more information about GLib can be found at http://www.gtk.org/. Changes in version 1.0.1 * Documentation improvements [Matthias Clasen] * Use new API in FreeType 2.0.9 to greatly speed up coverage calculation for Xft and FT2 backends. * Some fixes for reading of OpenType tables. * Add -D_REENTRANT to compilation when necessary. [Sven Neumann] * Try and enable ClearType for Win32 backend. [Tor Lillqvist] * Fixes for Korean glyphs in the basic-x shaper [Changwoo Ryu] * Improvements for computation of average char/digit width [Sven Neumann] * Bug and error reporting fixes [Arnaud Charlet, Erewan Chenede, Mikael Hallendal, Stefan Israelsson, Alex Larsson, Soeren Sandmann, Dan Winship] Owen Taylor 29 March 2002 ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
GTK+-2.0.1 released
GTK+-2.0.1 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.0/ along with new versions of the 3 base libraries, GLib, Pango and ATK. This is a bug-fix release, and is source and binary compatible with GTK+-2.0.0. We recommend that people using GTK+-2.0.1 upgrade to this release. What is GTK+ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+-2.0 is found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Release notes for GTK+-2.0 are at: http://www.gtk.org/gtk-2.0.0-notes.html Common questions: http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes in GTK+ 2.0.1 = * GtkTreeView fixes and performance improvements [Kristian Rietveld, Jonathan Blandford, Mike Piepe, Dave Camp] * GtkTextView fixes [Havoc Pennington] * Fix problems with accelerators on Solaris [Padraig O'Briain] * Some fixes for key bindings on keypad keys [Owen Taylor] * Fix problem with RENDER use on big endian machines [Owen Taylor, with help from Tuomas Kuosmanen] * Win32 fixes, especially dashed line drawing [Tor Lillqvist, Hans Breuer] * Compile with -D_REENTRANT when appropriate [Sven Numann] * Compiler warning cleanups [Erwann Chenede] * Fix handling of font-name XSETTING [Richard Hestilow] * Make linux-fb backend compile again [Carlo E. Prelz, Alex Larsson] * Fix problems with inappropriate menu scroll arrows [Owen] * Stock icon improvements [Jakub Steiner, Tuomas] * Much work on pixbuf loader robustness [Matthias Clasen] * Documentation improvements [Matthias, Vitaly Tiskkov] * Fix some crashes in GtkWindow accelerator handling code [Dave Camp, Matt Wilson] * Misc bug fixes Other contributors: Jacob Berkman, Dennis Björklund, Seth Burgess, Murray Cumming, Johan Dahlin, John Ellis, Kang Jeong-He, James Henstridge, Richard Hult, Thomas Leonard, LEE Sau Dan, Alexey A. Malyshev, Mark McLoughlin, Michael Meeks, Sven Neumann, Andras Salamon, Soeren Sandmann, Dan Winship, Yao Zhang 29 March 2002 ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list