jpg to xpm dynamically
Hai all Any or group of code that dinamically create xpm from hpg or png. If any one u find please inform me. Ie we give gtkImage as input and we get pixmap as output. With regards Manoj -- __ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Connecting lines in TreeView
Hello. I recently started programming with gtk2 (gtkmm, actually), and my question is: How can I get a TreeView that displays the connecting lines between the nodes? Like in gtk1.2, Qt, Windows, etc... I heard a rumor that it was not supported by the toolkit. Is this true, and if so, will it be fixed in 2.4? The lines really help the readability of a large tree IMHO, so I would almost call it a bug if it couldn't be done... I tried searching for this subject (to no avail). Any answers are appreciated. -Tor Arvid- ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Change font's size
Hai U can specify the size of font in the fints name itself. ie give font name like this -adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859-1 here 12 is the size. u will get more help from http://developer.gnome.org/doc/API/2.2/gdk/gdk-Fonts.html#gdk-font-load -- __ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk+-2.2.4 make fails
Is freetype.h on the system and in the search path? The other errors are probably caused by the following implicit declarations. I _knew_ I was asking for a smack in the chops with the bleeding obvious. Thanks for wielding the cluebat :) The final solution was to copy the whole of freetype2's include/freetype into X11R6's include directory. Apparently linking it into /usr/local/include just isn't good enough. It's now complaining about conflicts between 2 versions of libexpat (it wants libexpat.so.0, while Xft used .so.1), but I should have that fixed with a little time and some judicious recompiling... Cheers, James -- ...so there I am at ten thousand feet with a power drill in one hand, a takeaway menu in the other, no parachute and a _very_ suprised expression... pgp0.pgp Description: PGP signature
Re: Change font's size
Hi, Manoj tr [EMAIL PROTECTED] writes: U can specify the size of font in the fints name itself. ie give font name like this -adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859-1 here 12 is the size. This is the old and deprecated way of doing it. Modern code shouldn't be using XLFD any longer but use the Pango API to describe a font. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Change font's size
-adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859-1 here 12 is the size. u will get more help from http://developer.gnome.org/doc/API/2.2/gdk/gdk-Fonts.html#gdk-font-load Here it is given that GdkFont is deprecated should not be used. Is it feasible enough? Bheemesh. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Is it possible to statically link GTK?
Dear Friends, I'm trying to use GTK, and also wxWindows. Is it possible to statically link GTK to my program(so that my app can be installed on user's machine easily) and how? (BTW, is it possible to statically link wxWindows? I know this not relevant here. Just in case). Thank you very much in advance! Best regards, Richard Jiang ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Is it possible to statically link GTK?
Hi, jiangyi178 [EMAIL PROTECTED] writes: Is it possible to statically link GTK to my program(so that my app can be installed on user's machine easily) and how? Sure. Just do it like you would do for any other statically linked application. You just need to make sure you have static versions of the GTK+ libraries. Passing --enable-static to the configure scripts makes this happen. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
gtk+ for linux framebuffer crashed
Hi! I had some problems with the framebuffer version of gtk. Allways I started an application, eg gtk-demo it crashed with an segmentation fault. With the stack dump of the core file I discovered that fontconfig has some problems with the path /usr/X11R6/lib/X11/fonts/URW. After throwing the path out of the fonts.conf file gtk-demo worked like expected. The none framebuffer version of gtk+ worked without changing the fonts.conf. Has anybody an idea whats the problem is ? By Dirk #0 0x404dc6c9 in free () from /lib/libc.so.6 #1 0x402cd26c in ft_free (memory=0x80c1620, block=0x1) at /appl/src/Libraries/gtk/freetype-2.1.5/builds/unix/ftsystem.c:157 #2 0x402cd698 in FT_Free (memory=0x1, P=0xfff9) at /appl/src/Libraries/gtk/freetype-2.1.5/src/base/ftutil.c:134 #3 0x4030553b in T1_Face_Done (face=0x80d12d0) at /appl/src/Libraries/gtk/freetype-2.1.5/src/type1/t1objs.c:232 #4 0x402d0bc0 in destroy_face (memory=0x80c1620, face=0x80d12d0, driver=0x2) at /appl/src/Libraries/gtk/freetype-2.1.5/src/base/ftobjs.c:695 #5 0x402d1e9a in FT_Done_Face (face=0x80d12d0) at /appl/src/Libraries/gtk/freetype-2.1.5/src/base/ftobjs.c:1838 #6 0x405a0736 in FcFreeTypeQuery ( file=0x80b0208 /usr/X11R6/lib/X11/fonts/URW/hrger.pfa, id=0, blanks=0x80b17b0, count=0x80d1478) at fcfreetype.c:910 #7 0x405a1702 in FcFileScan (set=0x80b43d0, dirs=0x80b0168, cache=0x80b1a08, blanks=0x80b17b0, file=0x80b0208 /usr/X11R6/lib/X11/fonts/URW/hrger.pfa, force=0) at fcdir.c:113 #8 0x405a1a62 in FcDirScan (set=0x80b43d0, dirs=0x80b0168, cache=0x80b1a08, blanks=0x80b17b0, dir=0x80b3c50 /usr/X11R6/lib/X11/fonts/URW, force=0) at fcdir.c:221 #9 0x405a46ea in FcConfigBuildFonts (config=0x80b0100) at fccfg.c:206 #10 0x4059f887 in FcInitLoadConfigAndFonts () at fcinit.c:83 #11 0x4059f8e5 in FcInit () at fcinit.c:101 #12 0x405a4825 in FcConfigGetCurrent () at fccfg.c:243 #13 0x405a61d9 in FcConfigSubstituteWithPat (config=0x0, p=0x80aff68, p_pat=0x0, kind=FcMatchPattern) at fccfg.c:1140 #14 0x405a6214 in FcConfigSubstitute (config=0x0, p=0x80aff68, kind=FcMatchPattern) at fccfg.c:1344 #15 0x40348a72 in pango_fc_default_substitute (fontmap=0x8082128, pattern=0x80aff68) at pangoft2-fontmap.c:340 #16 0x4034790d in pango_fc_font_map_get_patterns (fontmap=0x8082128, context=0x80aff68, desc=0x80aff28, language=0x80afb68) at pangofc-fontmap.cI:574 #17 0x40347a58 in pango_fc_font_map_load_font (fontmap=0x8082128, context=0x80a82c8, description=0x80aff28) at pangofc-fontmap.cI:632 #18 0x40373727 in pango_font_map_load_font (fontmap=0x1, context=0x80a82c8, desc=0x80aff28) at pango-fontmap.c:85 #19 0x40371dcb in pango_context_load_font (context=0x80a82c8, desc=0x80aff28) at pango-context.c:222 #20 0x40379ba7 in pango_layout_line_get_empty_extents (line=0x1, logical_rect=0xbfffe8d0) at pango-layout.c:3518 #21 0x4037a0c0 in pango_layout_line_get_extents (line=0x80aff90, ink_rect=0x0, logical_rect=0xbfffe940) at pango-layout.c:3702 #22 0x40377469 in get_line_extents_layout_coords (layout=0x80afe68, line=0x80aff90, layout_width=-1, y_offset=0, baseline=0xbfffe9cc, line_ink_layout=0x0, line_logical_layout=0xbfffe9d0) at pango-layout.c:1848 #23 0x4037758f in pango_layout_get_extents_internal (layout=0x80afe68, ink_rect=0x0, logical_rect=0xbfffea90, line_extents=0x0) at pango-layout.c:1916 #24 0x403777f8 in pango_layout_get_extents (layout=0x8082128, ink_rect=0x0, logical_rect=0xbfffea90) at pango-layout.c:2012 #25 0x401d7bf0 in gtk_text_layout_get_line_display (layout=0x80a8030, line=0x80a77b8, size_only=1) at gtktextlayout.c:1978 #26 0x401d67ff in gtk_text_layout_real_wrap (layout=0x80a8030, line=0x80a77b8, line_data=0x80afd10) at gtktextlayout.c:966 #27 0x401d5cf7 in gtk_text_layout_wrap (layout=0x80afd28, line=0x80a77b8, line_data=0x0) at gtktextlayout.c:583 #28 0x401c22b8 in _gtk_text_btree_validate_line (tree=0x80afd28, line=0x80a77b8, view_id=0x80a8030) at gtktextbtree.c:5193 #29 0x401d6519 in gtk_text_layout_validate_yrange (layout=0x80a8030, anchor=0xbfffebf0, y0=0, y1=200) at gtktextlayout.c:882 #30 0x401e4427 in gtk_text_view_validate_onscreen (text_view=0x80a6170) at gtktextview.c:3059 #31 0x401e92c5 in gtk_text_view_value_changed (adj=0x0, text_view=0x80a6170) at gtktextview.c:6159 -- Diese E-Mail enthaelt vertrauliche oder rechtlich geschuetzte Informationen. Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie bitte sofort den Absender und loeschen Sie diese E-Mail. Das unbefugte Kopieren dieser E-Mail oder die unbefugte Weitergabe der enthaltenen Informationen ist nicht gestattet. The information contained in this message is confidential or protected by law. If you are not the intended recipient, please contact the sender and delete this message. Any unauthorised copying of this message or unauthorised distribution of the information contained herein is prohibited.
Re: gtk+ for linux framebuffer crashed
Hi, Dirk Volkmar [EMAIL PROTECTED] writes: I had some problems with the framebuffer version of gtk. Allways I started an application, eg gtk-demo it crashed with an segmentation fault. With the stack dump of the core file I discovered that fontconfig has some problems with the path /usr/X11R6/lib/X11/fonts/URW. After throwing the path out of the fonts.conf file gtk-demo worked like expected. The none framebuffer version of gtk+ worked without changing the fonts.conf. Has anybody an idea whats the problem is ? By Dirk #0 0x404dc6c9 in free () from /lib/libc.so.6 #1 0x402cd26c in ft_free (memory=0x80c1620, block=0x1) at /appl/src/Libraries/gtk/freetype-2.1.5/builds/unix/ftsystem.c:157 #2 0x402cd698 in FT_Free (memory=0x1, P=0xfff9) at /appl/src/Libraries/gtk/freetype-2.1.5/src/base/ftutil.c:134 #3 0x4030553b in T1_Face_Done (face=0x80d12d0) at /appl/src/Libraries/gtk/freetype-2.1.5/src/type1/t1objs.c:232 That's a known bug in freetype2 which has been fixed in the recent versions. Most probably XFree comes with it's own copy of freetype that is not affected. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
[Patches] Your message to gtk-list awaits moderator approval
Your mail to 'gtk-list' with the subject hi Is being held until the list moderator can review it for approval. The reason it is being held: Post by non-member to a members-only list Either the message will get posted to the list, or you will receive notification of the moderator's decision.
Symbology and annotations on top of my images.
Hi all. I plan on using a drawing area widget to display images where the user may want to place some symbology and textual annotations at various locations on the image. I am wondering how GTK / GdkPixbuf will facilitate this. Ideally, I would like to treat the symbology and text annotations as layers where the user would be able to toggle on and off the display of the symbology/annotations, and possibly drag them to different positions. Does GTK / GdkPixbuf allow me to do something like this? If not, what would be an approach to take? thanks again. amit. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Setting colour of a window
Hi, All! I'v trying to change the background color of a GtkWindow in this way: this-get_window()-set_background(Gdk::Color(maroon)); this-get_window()-clear(); However, it is still gray . Where am I wrong? Igor Gorbounov ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk+-2.2.4 make fails
[EMAIL PROTECTED] wrote: Is freetype.h on the system and in the search path? The other errors are probably caused by the following implicit declarations. I _knew_ I was asking for a smack in the chops with the bleeding obvious. Thanks for wielding the cluebat :) The final solution was to copy the whole of freetype2's include/freetype into X11R6's include directory. Apparently linking it into /usr/local/include just isn't good enough. It's now complaining about conflicts between 2 versions of libexpat (it wants libexpat.so.0, while Xft used .so.1), but I should have that fixed with a little time and some judicious recompiling... When you have libs already on your system and you compile a new setup that has other versions of the same libraries, libtool can get confused. Beware. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list