facing Problem with gdk event key

2003-09-26 Thread Sagar Shah



Hi 
all,i need a help regarding GdkEventKey, i would like to divide my 
problem into 2 sub parts.1)in my gtkmm application i want to assign some 
shortcut keys, to some process., somy method which handles the key press 
event :bool window1::on_window1_key_press_event(GdkEventKey *ev)i 
want to trace ctrl-shift F1, so my condition 
isif((ev->keyval==GDK_F1)&&((ev->state & 5)==5) && 
(ev->type ==GDK_KEY_PRESS))    {   //5 is 
for shift value of ctrl and shift value.g_message("U have press ctrl shift 
F1")}when i pressed the keys, these is condition is never valid or 
never occurs, if i trace out ctrl-shift-A, it is properly traced.can 
any one tell me, why is it so, and what should i do2) in KDE environment 
ctrl+F1 is to change to desktop 1, ctrl+F2 to shift to desktop 2 etc. but if 
supposed in my application i had assigned ctrl+F1 shortcut key to some event, 
and i want that event to be invoke,instead to change the desktop that system 
has reserved.how it could be done.any help in urgent would 
greatly be appreciated.RegardsSagar 
Shah.


Re: os x and glib

2003-09-26 Thread Jeffrey Auerbach
I got past the configure portion by setting the environment var:
LDFLAGS=-L/sw/lib which is the location of gnu libiconv.

The compile still fails with iconv errors:

/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..
-DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED
-DGLIB_COMPILATION   -pthreads  -g -O2 -Wall -c gconvert.c
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\"
-DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -pthreads
-g -O2 -Wall -c gconvert.c  -fno-common -DPIC -o .libs/gconvert.o
gcc: unrecognized option `-pthreads'
gconvert.c:25: header file 'iconv.h' not found
gconvert.c:43: #error GNU libiconv in use but included iconv.h not from
libiconv
gconvert.c:62: undefined type, found `iconv_t'
gconvert.c:75: undefined type, found `iconv_t'
gconvert.c:113: undefined type, found `iconv_t'
gconvert.c:167: undefined type, found `iconv_t'
gconvert.c:167: syntax error, missing `;' after `)'
gconvert.c:190: undefined type, found `iconv_t'
gconvert.c:190: syntax error, missing `;' after `)'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic
mode
make[3]: *** [gconvert.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2




On 9/26/03 9:53, "JS" <[EMAIL PROTECTED]> wrote:

> Hi Jeff,
> 
> Hmm, you seem to be having the same issues that I have
> with GTK but with glib.  However, I was able to get
> glib to find libiconv.  This is the version of
> libiconv I installed:
> http://www.gnu.org/software/libiconv/#downloading .
> 
> I would try downloading that version and compile and
> install it and see what happens.  It just might work.
> 
> If not, then hopefully someone else on the list should
> be able to help.  They have been very helpful with my
> GTK problems.
> 
> HTH,
> J Silverman
> --- Jeffrey Auerbach <[EMAIL PROTECTED]> wrote:
>> Hello
>> 
>> I am trying to configure glib-2.2.3 on mac os x but
>> I am running into a
>> problem:
>> 
>> checking for iconv_open... no
>> checking for libiconv_open in -liconv... no
>> checking for iconv_open in -liconv... no
>> configure: error: *** No iconv() implementation
>> found in C library or
>> libiconv
>> 
>> I know that libiconv is installed on this system but
>> configure can't find
>> it.  I've specified the prefix where the libs are
>> installed but no luck.
>> 
>> Can someone point in the direction of an answer?
>> Does anyone know the last
>> known version >2.x  to work successfully on os x?
>> 
>> Thanks
>> Jeff
>> 
>> ___
>> gtk-list mailing list
>> [EMAIL PROTECTED]
>> http://mail.gnome.org/mailman/listinfo/gtk-list
> 
> __
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
> 
> 

*
Jeff Auerbach
Director, Network Operations
Workspeed, Inc.
(917)369-9025 x203
http://www.workspeed.com
*


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK now asking for Pangox?

2003-09-26 Thread JS
Hi Sven,

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

And here is what I can find from config.log for Xft:

configure:939: gcc -E  conftest.c >/dev/null
2>conftest.out
configure:935: undefined type, found `Syntax'
configure:935: illegal external declaration, missing
`;' after `Error'
cpp-precomp: warning: errors during smart
preprocessing, retrying in basic mode
configure: failed program was:
#line 933 "configure"
#include "confdefs.h"
#include 
Syntax Error
configure:956: gcc -E -traditional-cpp  conftest.c
>/dev/null 2>conftest.out
configure:1002: checking for X
configure:1069: gcc -E -traditional-cpp  conftest.c
>/dev/null 2>conftest.out
configure:1065:27: X11/Intrinsic.h: No such file or
directory
configure: failed program was:
#line 1064 "configure"
#include "confdefs.h"
#include 
configure:1458: checking for freetype-config
configure:1537: checking for freetype/freetype.h
configure:1547: gcc -E -traditional-cpp 
-I/usr/include/freetype2 conftest.c >/dev/null
2>conftest.out
configure:1583: checking for FT_Init_FreeType
configure:1611: gcc -o conftest -g -O2 
-I/usr/include/freetype2  conftest.c  -lfreetype -lz
1>&5
ld: warning dynamic shared library:
/usr/lib/libz.dylib not made a weak library in output
with MACOSX_DEPLOYMENT_TARGET environment variable set
to: 10.1
configure:1662: checking for fontconfig-config
configure:1741: checking for fontconfig/fontconfig.h
configure:1751: gcc -E -traditional-cpp 
-I/usr/include/freetype2  conftest.c >/dev/null
2>conftest.out
configure:1787: checking for FcInit
configure:1815: gcc -o conftest -g -O2 
-I/usr/include/freetype2   conftest.c  -lfreetype -lz 
1>&5
ld: Undefined symbols:
_FcInit
configure: failed program was:
#line 1792 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully
few prototypes,
which can conflict with char FcInit(); below.  */
#include 
/* Override any gcc2 internal prototype to avoid an
error.  */
/* We use char because int might match the return type
of a gcc2
builtin and then its argument prototype would
still apply.  */
char FcInit();

int main() {

/* The GNU C library defines this for functions which
it implements
to always fail with ENOSYS.  Some functions are
actually named
something starting with __ and the normal name is
an alias.  */
#if defined (__stub_FcInit) || defined
(__stub___FcInit)
choke me
#else
FcInit();
#endif

; return 0; }

Is there anyway I could solve this?

Thanks again for all the help!
J Silverman
--- Sven Neumann <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> JS <[EMAIL PROTECTED]> writes:
> 
> > Hmm, it seems that Xft2 is not installed on my
> system
> > by executing your string.  Should I go ahead and
> > download xft2 from
> > http://pdx.freedesktop.org/~fontconfig/ and
> install
> > xft2 and recompile Pango?
> 
> That's exactly what I would have suggested.
> 
> 
> Sven
> 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK now asking for Pangox?

2003-09-26 Thread Sven Neumann
Hi,

JS <[EMAIL PROTECTED]> writes:

> Hmm, it seems that Xft2 is not installed on my system
> by executing your string.  Should I go ahead and
> download xft2 from
> http://pdx.freedesktop.org/~fontconfig/ and install
> xft2 and recompile Pango?

That's exactly what I would have suggested.


Sven

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK now asking for Pangox?

2003-09-26 Thread JS
Hi Sven,

Hmm, it seems that Xft2 is not installed on my system
by executing your string.  Should I go ahead and
download xft2 from
http://pdx.freedesktop.org/~fontconfig/ and install
xft2 and recompile Pango?

Thanks again,
J Silverman
--- Sven Neumann <[EMAIL PROTECTED]> wrote:
> 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


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK now asking for Pangox?

2003-09-26 Thread Sven Neumann
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 now asking for Pangox?

2003-09-26 Thread JS
Hi Sven,

Hmm, it seems like pangox was never installed when I
compiled Pango.  Here is the list that comes up for
pkg-config:

bash-2.05a$ pkg-config --list-all
fontconfig  Fontconfig - Font configuration and
customization library
freetype2   FreeType 2 - A free, high-quality, and
portable font engine.
gmodule-2.0 GModule - Dynamic module loader for GLib
glib-2.0GLib - C Utility Library
gobject-2.0 GObject - GLib Type, Object, Parameter and
Signal Library
gthread-2.0 GThread - Thread support for GLib
libpng  libpng12 - Loads and saves PNG files
pangoft2Pango FT2 - Freetype 2.0 font support for
Pango
libpng12libpng12 - Loads and saves PNG files
pango   Pango - Internationalized text handling
atk Atk - Accessibility Toolkit

At least Pango Ft2 is installed, but how do I get
Pangox to install?

Thanks again for all the help!

J Silverman
--- Sven Neumann <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> 
> 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

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK now asking for Pangox?

2003-09-26 Thread Sven Neumann
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


GTK now asking for Pangox?

2003-09-26 Thread JS
Hi Sven and All,

With the help of my friend, I have gotten libjpeg and
libpng compiled and installed correctly.  Even GTK
recognizes them.  However, it now seems to be missing
something else. Here is part of the log for the GTK
compile:

checking for sys/wait.h that is POSIX.1 compatible...
yes
checking return type of signal handlers... (cached)
void
checking for x86 platform... no
checking for freetype-config...
/usr/bin/freetype-config
checking For sufficiently new FreeType (at least
2.0.1)... yes
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?

Thanks,
J Silverman

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Window size

2003-09-26 Thread Don Dudley
When I create a window with just a couple of items in
it (menu bar, some labels, check boxes, etc), it packs
down to a little tiny window during runtime, big
enough only to show the items visible. 

I add and remove window objects depending on user
selection, etc., and I'd like to keep the same overall
window size regardless of how many objects are
currently visible.

How do I set packing so that the window has a minimum
size, even if some of it may be blank?

Thanks
Don

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Setting fixed-width font

2003-09-26 Thread Havoc Pennington
On Fri, 2003-09-26 at 07:05, Egon Andersen, Talura wrote:
> 
> I have a widget (actually a GtkLabel, but it may be changed later) for 
> which I want use fixed-width font.
> 
> Is there a simple way to achieve this?

Use gtk_widget_modify_font() to set the font to "monospace"

Havoc


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


GtkScrolledWindow problem

2003-09-26 Thread Matteo Frigerio
Hello, i have a problem with the GtkScrolledWindow. I
have a
strange situation: i have two scrolled window packet
in a GtkVBox.
I have disabilated the scrolled window scrollbar
(GTK_POLICY_NEVER)
and i draw my self a hscrollbar and put in the
GtkVBox. I need
this because when the user scroll i have to scrool
both the 
scrolled window. For scroll the window i use:

  // Take from gtkscrolledwindow.c
  new_value = CLAMP (new_value, adj->lower, adj->upper
- adj->page_size);
  gtk_adjustment_set_value (sfl->inte_adj, new_value);
  gtk_adjustment_set_value (sfl->fixed_adj,
new_value);

The value for my hscrollbar adj
(upper,lower,page_size,page_increment)
is taken from the hadjustment of the first scrolled
window 
(the two window have the same dimension).

The problem is that when scroll i obtain that the
scrolled window
became black. What can i do for this situation ? Where
i am wrong ?

thanks, hammer.
  


__
Yahoo! Mail: 6MB di spazio gratuito, 30MB per i tuoi allegati, l'antivirus, il filtro 
Anti-spam
http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK Configure Can't link to libjpeg now

2003-09-26 Thread JS
Hi Sven,

No, there is no file called libjpeg.so on my system. 
However, I am thinking maybe this version of libjpeg
(v6) could be the issue since the beta version of
libtiff compiled great.  Do you know of a site where I
could get a newer version of libjpeg (I have already
did a quick google search and have not been able to
find a newer version)?

Thanks,
J Silverman
--- Sven Neumann <[EMAIL PROTECTED]> wrote:
> 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


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Setting fixed-width font

2003-09-26 Thread Sven Neumann
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: Setting fixed-width font

2003-09-26 Thread Peter Krueger
Hi Egon,
> I have a widget (actually a GtkLabel, but it may be changed later) for
> which I want use fixed-width font.
>
> Is there a simple way to achieve this?
yes it is. You can modify the font of any widget like this:

  PangoFontDescription *font_desc = pango_font_description_from_string(
"Fixed 12");
  gtk_widget_modify_font(pGTKLabel, font_desc);
  pango_font_description_free(font_desc);

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.

Regards...Peter
-- 

Peter Krüger

applied software solutions (appss) GmbH
Sandtorstr. 23
D-39106 Magdeburg
Germany

Phone:  +49-(0)391-54486-19388
Fax:+49-(0)391-54486-19222
email:  [EMAIL PROTECTED]
URL:http://www.appss.de

Managing Director: Uwe Hess, Dietmar Schäfer
Register: HRB12386, AG Mageburg

"Virtual business becomes reality!"

This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK Configure Can't link to libjpeg now

2003-09-26 Thread Sven Neumann
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: glib probs...

2003-09-26 Thread Sven Neumann
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


Setting fixed-width font

2003-09-26 Thread Egon Andersen
Hi,

I have a widget (actually a GtkLabel, but it may be changed later) for 
which I want use fixed-width font.

Is there a simple way to achieve this?

(I've looked in the FAQ and mail-archive. But it only described a 
solution using a resource file, which I don't want to use in this case.)

Best regards
Egon Andersen
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


glib probs...

2003-09-26 Thread Jamie McLaughlin
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.

It's giving me this error:


/usr/Softimage/XSI_3.0/Application/mainwin/mw/bin-linux_optimized/mwcleanup: 
relocation error: 
/usr/Softimage/XSI_3.0/Application/mainwin/mw/lib-linux_optimized/libkernel32.so: 
symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time 
reference
/usr/Softimage/XSI_3.0/Application/bin/XSI: relocation error: 
/usr/Softimage/XSI_3.0/Application/mainwin/mw/lib-linux_optimized/libkernel32.so: 
symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time 
reference


Anyone have any ideas?  Has this been seen before, and has it been fixed?  
Only Softimage|3D and Shake work, as they don't include an ounce of GTK 
code...

Any help is greatly appreciated. (and if you could reply to 
[EMAIL PROTECTED] that'd be great, as I'm no good with 
message-boards...)

---
Jamie
_
High-speed Internet access as low as $29.95/month (depending on the local 
service providers in your area). Click here.   https://broadband.msn.com

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


GTK+-2 + OS2

2003-09-26 Thread andre-junior
Hi all,

I´d like to known if that is some gtk+-2 port to OS2, or
some progress to do so. I have a program in gtk+-2 and
need to run it on OS2. I found a gtk-1.2 binary, but is
not usable.

Best Regards
Andre Moreira



__
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br/


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: os x and glib

2003-09-26 Thread JS
Hi Jeff,

Hmm, you seem to be having the same issues that I have
with GTK but with glib.  However, I was able to get
glib to find libiconv.  This is the version of
libiconv I installed:
http://www.gnu.org/software/libiconv/#downloading .

I would try downloading that version and compile and
install it and see what happens.  It just might work.

If not, then hopefully someone else on the list should
be able to help.  They have been very helpful with my
GTK problems.

HTH,
J Silverman
--- Jeffrey Auerbach <[EMAIL PROTECTED]> wrote:
> Hello
> 
> I am trying to configure glib-2.2.3 on mac os x but
> I am running into a
> problem:
> 
> checking for iconv_open... no
> checking for libiconv_open in -liconv... no
> checking for iconv_open in -liconv... no
> configure: error: *** No iconv() implementation
> found in C library or
> libiconv
> 
> I know that libiconv is installed on this system but
> configure can't find
> it.  I've specified the prefix where the libs are
> installed but no luck.
> 
> Can someone point in the direction of an answer? 
> Does anyone know the last
> known version >2.x  to work successfully on os x?
> 
> Thanks
> Jeff
> 
> ___
> gtk-list mailing list
> [EMAIL PROTECTED]
> http://mail.gnome.org/mailman/listinfo/gtk-list

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


GTK Configure Can't link to libjpeg now

2003-09-26 Thread JS
Hi All,

With the help of my friend, I was finally able to get
configure for GTK to link with libtiff.  He actually
told me of a new beta version of libtiff (v3.6.0) that
compiled correctly.  However, GTK needs libjpeg, but
even after compiling libjpeg, configure still can't
find it.  Here are the error messages from the GTK
compile and from GTK's config.log:

checking for jpeg_destroy_decompress in -ljpeg... no
configure: WARNING: *** JPEG loader will not be built
(JPEG library not found) ***
configure: error:
*** Checks for JPEG loader failed. You can build
without it by passing
*** --without-libjpeg to configure but some programs
using GTK+ may
*** not work properly

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

ac_cv_lib_jpeg_jpeg_destroy_decompress=no

HAVE_JPEG_FALSE=''
HAVE_JPEG_TRUE=''

LIBJPEG=''

| char jpeg_destroy_decompress ();
| int
| main ()
| {
| jpeg_destroy_decompress ();
|   ;
|   return 0;
| }
configure:23824: result: no
configure:23830: WARNING: *** JPEG loader will not be
built (JPEG library not found) ***
configure:23954: error:
*** Checks for JPEG loader failed. You can build
without it by passing
*** --without-libjpeg to configure but some programs
using GTK+ may
*** not work properly

I have also tried compiling GTK with the LDFLAGS
command with no success.  Any help would be great!

Thanks,
J Silverman
 

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Setting fixed-width font

2003-09-26 Thread Egon Andersen, Talura
Hi,

I have a widget (actually a GtkLabel, but it may be changed later) for 
which I want use fixed-width font.

Is there a simple way to achieve this?

(I've looked in the FAQ and mail-archive. But it only described a 
solution using a resource file, which I don't want to use in this case.)

Best regards
Egon Andersen
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: GObject finalizers

2003-09-26 Thread Cedric Marcone
Hi Mathieu,

I'm CC'ing gtk-list, because your document might really be helpful to
the crowd of newbies like me out there :) 

Thank you VERY MUCH, I just had a quick look to your doc and I think it
will answer most of my questions (Will read it fully tonight).

Good job,
--
Cédric

On Fri, 2003-09-26 at 10:10, Mathieu Lacage wrote:
> Hi cedric,
> 
> I tried to provide such a document there:
> http://le-hacker.org/papers/gobject/index.html
> 
> Mathieu
> 
> On Fri, 2003-09-26 at 09:49, Cedric Marcone wrote:
> > Thanks Sven,
> > 
> > That's exactly what I did. But I was not sure if it was considered the
> > right way of doing it.
> > 
> > Some more questions :
> > 
> > 1- Why isn't the instance initializer method not handled the same way ?
> > 
> > 2- Is there a consensus about the type returned by the constructor
> > (target type (MyInstanceType) or root type (GObject) or even
> > intermediate type (GtkWidget))
> > 
> > 3- Reading GObject documentation, I can read :
> > "[GLib Object System provides] a signal system that allows very flexible
> > user customization of virtual/overridable object methods [...]"
> > Why isn't the finalizers triggered by signals callbacks ?
> > 
> > I know my newbie questions might sound despairing but I couldn't find
> > any official documentation on GObject / GType system "best-practices".
> > 
> > Thank you,
> > --
> > Cédric
> > 
> > On Thu, 2003-09-25 at 19:57, Sven Neumann wrote:
> > > Hi,
> > > 
> > > Cedric Marcone <[EMAIL PROTECTED]> writes:
> > > 
> > > > sorry if it's a FAQ but, searching the archives, I couldn't find any
> > > > helpful pointers.
> > > > 
> > > > When calling g_object_unref(), refcount is decremented. If it reaches 0,
> > > > GObjectClass->finalize(Gobject *) is called. And that's a damn good
> > > > thing ;)
> > > > 
> > > > If I subclass GObject with a class containg dynamically allocated
> > > > instance vars, I will need to provide my own finalize() to get rid of
> > > > them, and chain the call to "GObjectClass->finalize()".
> > > > 
> > > > The question is how to provide my own instance finalizer and register
> > > > it...
> > > 
> > > Register a class initializer and install the instance finalizer there.
> > > Have a look at some example code, almost every GObject does it that
> > > way.
> > > 
> > > 
> > > Sven
> > > 
> > > ___
> > > gtk-list mailing list
> > > [EMAIL PROTECTED]
> > > http://mail.gnome.org/mailman/listinfo/gtk-list
> > 
> > ___
> > gtk-list mailing list
> > [EMAIL PROTECTED]
> > http://mail.gnome.org/mailman/listinfo/gtk-list

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: GObject finalizers

2003-09-26 Thread Cedric Marcone
Thanks Sven,

That's exactly what I did. But I was not sure if it was considered the
right way of doing it.

Some more questions :

1- Why isn't the instance initializer method not handled the same way ?

2- Is there a consensus about the type returned by the constructor
(target type (MyInstanceType) or root type (GObject) or even
intermediate type (GtkWidget))

3- Reading GObject documentation, I can read :
"[GLib Object System provides] a signal system that allows very flexible
user customization of virtual/overridable object methods [...]"
Why isn't the finalizers triggered by signals callbacks ?

I know my newbie questions might sound despairing but I couldn't find
any official documentation on GObject / GType system "best-practices".

Thank you,
--
Cédric

On Thu, 2003-09-25 at 19:57, Sven Neumann wrote:
> Hi,
> 
> Cedric Marcone <[EMAIL PROTECTED]> writes:
> 
> > sorry if it's a FAQ but, searching the archives, I couldn't find any
> > helpful pointers.
> > 
> > When calling g_object_unref(), refcount is decremented. If it reaches 0,
> > GObjectClass->finalize(Gobject *) is called. And that's a damn good
> > thing ;)
> > 
> > If I subclass GObject with a class containg dynamically allocated
> > instance vars, I will need to provide my own finalize() to get rid of
> > them, and chain the call to "GObjectClass->finalize()".
> > 
> > The question is how to provide my own instance finalizer and register
> > it...
> 
> Register a class initializer and install the instance finalizer there.
> Have a look at some example code, almost every GObject does it that
> way.
> 
> 
> Sven
> 
> ___
> gtk-list mailing list
> [EMAIL PROTECTED]
> http://mail.gnome.org/mailman/listinfo/gtk-list

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list