Re: Discarding key pressed events.

2005-06-30 Thread Luca Cappa

Luca Cappa wrote:


Hello,

in my application I have some key handlers which receive input from 
the user. When the user press a key,
a task has to be executed: this task could require a tiny time slice 
or a longer one. The problem is that if the user
hold pressed a key and the relative task takes a lot of time to be 
executed, my application will be flooded of key pressed events.
I would like to avoid the situation where I receive a lot of "key 
press" events, which force my application to execute a long
time consuming task each time the event is received, and then the 
application is stuck until all the events are "eaten".


How to avoid this? maybe i could delete the keys' event from the 
events queue? Any help?



Actually I did a workaround for this problem:

1- get an key press event;
2- disable key press event with: set_events (get_events() ^ 
Gdk::KEY_PRESS_MASK);

3- start a timer which every 10 millisecs do a task;
4- receive a key release event;
5- stop the timer
6- reenable the key press event mask: set_events (get_events() | 
Gdk::KEY_PRESS_MASK);


The problem actually is that I cant call "set_events" on a widget which 
is already realized, and I am get a lot of warnings indeed.

So, my problem is still unresolved. Anyone could help me?

Thanks in advance,
Luca


p.s. I am using gtkmm, but there is no problem in talking to my about gtk+.
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Cannot start GTK apps - gdk_visual_decompose_mask

2005-06-30 Thread David Saxton
Hello,

Recently (perhaps due to an upgrade to the system, or similar - I'm unsure 
when exactly it happened) gtk apps stopped working (the apps don't display 
any gui - just sit there taking up 100% cpu).

This happens with all gtk apps tested - e.g. gimp, inkscape, gnumeric.

Compiling gtk with debugging support shows the same backtrace:

#0  gdk_visual_decompose_mask (mask=0, shift=0x89d46c, prec=0x89d470) at 
gdkvisual-x11.c:611
#1  0x2b72c6c8 in _gdk_visual_init (screen=0x89b6c0) at 
gdkvisual-x11.c:194
#2  0x2b72a81f in _gdk_x11_screen_new (display=0x899cc0, 
screen_number=0) at gdkscreen-x11.c:429
#3  0x2b714511 in IA__gdk_display_open (display_name=0x0) at 
gdkdisplay-x11.c:183
#4  0x2b6f8c6a in IA__gdk_display_open_default_libgtk_only () at 
gdk.c:272
#5  0x2b3ec63b in IA__gtk_init_check (argc=0x0, argv=0x89d46c) at 
gtkmain.c:702

It seems like they are stuck in the following while loop in gdkvisual-x11.c 
(as shown by the backtrace):

 while (!(mask & 0x1))
{
  (*shift)++;
  mask >>= 1;
}

However, I don't know enough about gtk to investigate any further - so perhaps 
someone has suggestions on what is going wrong / how to fix this?

Thanks,
David Saxton
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Drawing higher depth images

2005-06-30 Thread David Necas (Yeti)

Is it possible to use Gdk drawing functions (gdk_draw_arc(),
etc.) to draw images of higher depth than system and save
them?

I can save GdkPixbufs.  If there were drawing primitives in
gdk-pixbuf, it would be everything I need.  However I can
draw only on GdkDrawables.

To use gdk_pixbuf_get_from_drawable() I need a colormap.

To create a colormap I need a visual.

And I can get only visuals with depths returned by
gdk_query_depths(), that is system visual.  If it's 16 or
even 8 bpp, I have to use that.

Or is there any other method to draw true color images?
(Except using other libraries like Cairo, which currently is
no option for me).

TIA,

Yeti


--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


(no subject)

2005-06-30 Thread jalkadir
In my class, when I use the "getter" to display the value I get the right
output, but when I try using the overloaded extractor operator (<<) I get
some hex value displayed. Here is some of the code:
--- snip
Main.cpp
int main() {
   Money money("12.21");

   std::cout << "Value is: " << money.getAmount() << std::endl; // 12.21
   std::cout << "Value is: " << money << std::endl; // hex value
   return 0;
}



The class goes like this:
---snip
Money.hpp
class Money {
 protected:
   float amount;//!< This variable holds the numerical value
 public:
   //! Constor
   Money(const std::string&);

   //!Copy constructor
   Money( const Money& );

   //!Destructor
   ~Money() { std::cout << amount << std::endl;} //<<=== 12.21

   // Setters
   ...
   // Getters
   const float getAmount() const;

   // Overloaded operators
   .
   friend std::ostream& operator<<( std::ostream&, const jme::Money& );
   friend std::istream& operator>>( std::istream&, jme::Money& );
   
} ; //Money



and the code looks like this
--- snip
jme::Money::Money( const std::string& x){
this->setAmount(x); // this metho converts the std::string to a float
}
const float jme::Money::getAmount() const {
return this->amount;
}
std::ostream&
jme::operator<<( std::ostream& os, const jme::Money& obj ) {
os << obj.getAmount(); //<< 0x4b1120
return os;
}
- end of snip
As you can see when using the member method getAmount() the value
displayed is in the right format, however the extractor operator is not
doing the job I thought it would.

Can anybody tell me what I am doing wrong?

TIA
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Getting the wrong output

2005-06-30 Thread jalkadir
In my class, when I use the "getter" to display the value I get the right
output, but when I try using the overloaded extractor operator (<<) I get
some hex value displayed. Here is some of the code:
--- snip
Main.cpp
int main() {
   Money money("12.21");

   std::cout << "Value is: " << money.getAmount() << std::endl; // 12.21
   std::cout << "Value is: " << money << std::endl; // hex value
   return 0;
}



The class goes like this:
---snip
Money.hpp
class Money {
 protected:
   float amount;//!< This variable holds the numerical value
 public:
   //! Constor
   Money(const std::string&);

   //!Copy constructor
   Money( const Money& );

   //!Destructor
   ~Money() { std::cout << amount << std::endl;} //<<=== 12.21

   // Setters
   ...
   // Getters
   const float getAmount() const;

   // Overloaded operators
   .
   friend std::ostream& operator<<( std::ostream&, const jme::Money& );
   friend std::istream& operator>>( std::istream&, jme::Money& );
   
} ; //Money



and the code looks like this
--- snip
jme::Money::Money( const std::string& x){
this->setAmount(x); // this metho converts the std::string to a float
}
const float jme::Money::getAmount() const {
return this->amount;
}
std::ostream&
jme::operator<<( std::ostream& os, const jme::Money& obj ) {
os << obj.getAmount(); //<< 0x4b1120
return os;
}
- end of snip
As you can see when using the member method getAmount() the value
displayed is in the right format, however the extractor operator is not
doing the job I thought it would.

Can anybody tell me what I am doing wrong?

TIA
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


GTK+2 on Linux and Windows

2005-06-30 Thread lmarcilly



Hi all!
 
I am developping an application with Gtk+-2.6.4 on a windows box. I just 
want to know if it will work properly on a linux box where i have installed 
gtk+-2.6.4 ?
 
Thanks in advance and sorry for my english!
 
lm.
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK+2 on Linux and Windows

2005-06-30 Thread jalkadir
The best way to do this is to keep testing the program in each platfor.
What I do is to develop in MSW and then I do test run on cygwin and for a
more formal check I do a test run on one of the LINUX boxen.
There have been insignificant discrepancies, but not many.

Happy hacking!!

> Hi all!
>
> I am developping an application with Gtk+-2.6.4 on a windows box. I just
> want to know if it will work properly on a linux box where i have
> installed gtk+-2.6.4 ?
>
> Thanks in advance and sorry for my english!
>
> lm.
> ___
> 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: GTK+2 on Linux and Windows

2005-06-30 Thread Benjamin Lau Wei Yii
You also need to sinder what functions you used in
your program. If there are any functions specific to
Windows, then you need to replace them with the
appropriate function calls in order for it to run on
Linux. but if you don't, and use GTK+ along with pure
ANSI C, then it's alright.



__ 
Meet your soulmate!
Yahoo! Asia presents Meetic - where millions of singles gather
http://asia.yahoo.com/meetic

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: [Dev-C++] Getting the wrong output

2005-06-30 Thread jalkadir
Yes, I just notice that, so this are the changes I have made:

--- Money.hpp
friend std::ostream& std::operator<<( std::ostream&, const jme::Money& );
friend std::istream& std::operator>>( std::istream&, jme::Money& );


--- Money.cpp
std::operator<<( std::ostream& os, const jme::Money& obj ) {
os << obj.getAmount();
return os;
}
std::istream&
std::operator>>( std::istream& is, jme::Money& obj ) {
is >> obj.amount;
return is;
}
--
But this is giving me linker errors sayng:


=  ERROR ===
In file included from money.cpp:2:
money.hpp:67: error: `std::ostream& std::operator<<(std::ostream&, const
jme::Money&)' should have been declared inside `std'
money.hpp:68: error: `std::istream& std::operator>>(std::istream&,
jme::Money&)' should have been declared inside `std'


What am I doing wrong!!?

Again thanks for you help.




> What namespaces are you using.
>
> You have declared the friend operator as:
>   std::ostream& operator<<(...)
> and implemented it as:
>   std::ostream& jme::operator<<(...)
>
> Without a maching output operator, the compiler will emit the pointer to
> the object instead.
>
> /Per W
>
> On Thu, 30 Jun 2005 [EMAIL PROTECTED] wrote:
>
>> In my class, when I use the "getter" to display the value I get the
>> right
>> output, but when I try using the overloaded extractor operator (<<) I
>> get
>> some hex value displayed. Here is some of the code:
>> --- snip
>> Main.cpp
>> int main() {
>>Money money("12.21");
>>
>>std::cout << "Value is: " << money.getAmount() << std::endl; // 12.21
>>std::cout << "Value is: " << money << std::endl; // hex value
>>return 0;
>> }
>>
>>
>>
>> The class goes like this:
>> ---snip
>> Money.hpp
>> class Money {
>>  protected:
>>float amount;//!< This variable holds the numerical value
>>  public:
>>//! Constor
>>Money(const std::string&);
>>
>>//!Copy constructor
>>Money( const Money& );
>>
>>//!Destructor
>>~Money() { std::cout << amount << std::endl;} //<<=== 12.21
>>
>>// Setters
>>...
>>// Getters
>>const float getAmount() const;
>>
>>// Overloaded operators
>>.
>>friend std::ostream& operator<<( std::ostream&, const jme::Money& );
>>friend std::istream& operator>>( std::istream&, jme::Money& );
>>
>> } ; //Money
>>
>>
>>
>> and the code looks like this
>> --- snip
>> jme::Money::Money( const std::string& x){
>> this->setAmount(x); // this metho converts the std::string to a
>> float
>> }
>> const float jme::Money::getAmount() const {
>> return this->amount;
>> }
>> std::ostream&
>> jme::operator<<( std::ostream& os, const jme::Money& obj ) {
>> os << obj.getAmount(); //<< 0x4b1120
>> return os;
>> }
>> - end of snip
>> As you can see when using the member method getAmount() the value
>> displayed is in the right format, however the extractor operator is not
>> doing
>
>
>
> ---
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> ___
> Dev-cpp-users mailing list
> [EMAIL PROTECTED]
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


pixel drawing

2005-06-30 Thread Andreas Bentlage
hi,
i have the following 2 arrays. 
gfloat pixel[6000][1] = x[n]
gfloat pixel[6000][2] = y[n]
this 2 arrays contains the x/y values for 6000 rectangles
drawn on a pixmap. Now my problem ...
with button_press_event i catch the current x/y positions
from screen. What i want is to draw the given pixels from
my arrays in a different color when i'm close to it with my mouse.
i know my english is very confuse. but i hope you understand what i'm
concerning.
Please hit me to the right way ;-)
thanx! Andreas

-- 
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Cannot start GTK apps - gdk_visual_decompose_mask

2005-06-30 Thread David Saxton
On Thursday 30 Jun 2005 14:26, you wrote:
> You don't really give us enough information to guess here. (My initial
> reaction is: that can't happen!)
>
> But we'd appreciate a bug in bugzilla, with:
>
>  - Your GTK+ version
>  - Information about your operating system (what distro and version,
>if Linux)
>  - Information about your X server
>  - The output of 'xdpyinfo' as an attachment
>
Before filing a bug with gtk, I want to check that it isn't either a bug 
elsewhere (such as in X).

The output of 'xdpyinfo' gives (amongst other things) this interesting item:

  visual:
visual id:0x3e
class:DirectColor
depth:24 planes
available colormap entries:256 per subfield
red, green, blue masks:0xff, 0x0, 0xff
significant bits in color specification:8 bits

where presumably the "0x0" for the green mask is causing the problem - indeed, 
0 is the value in visual_list in the _gdk_visual_init function returned from 
XGetVisualInfo for that visual.

All the other visuals (as shown by xpdyinfo) have non-zero masks.

If GTK should be handling the possibility that the visual could be zero, then 
this would be a bug - otherwise - what's going on?

+ Is it possible to change the mask to work around the problem as a temporary 
solution? I'd like to be able to use gtk apps again...

Thanks,
David Saxton
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Are there anybody interested in porting GTK to embedded dev board

2005-06-30 Thread Carl B. Constantine
* lin Yang ([EMAIL PROTECTED]) wrote:
> Hello,everybody!
> I'm working on porting GTK to Intel dev board. My goal
> is to develop a system like smart phone or PDA. After
> investegating Qt and GTK, I choose GTK as my graphic
> user interface.However it's not easy.Firstly, I port
> X11 onto the dev board. Secondly, I compiled GTK.As to
> applications, I want to use GPE. If anyone else is
> interested in this topic,please feel free to contact
> me. I'm very pleased to discuss with you.

Actually, I think someone has altready done this with FLTK or someting.
ONe of the PDAs I used to have was entirely linux based and used GTK for
the UI which was a special version which I *think* was called FLTK or
something like that. The PDA used an embedded chip (though not intel
based).

Let's see, here is what I was thinking of, though according to the page
it's C++ based.

http://www.fltk.org/

It's worth a look. Failing that, I'd be happy to help you out on a
contractual basis.

Note that GTK+ is a little large for embedded systems. See this
reference:

http://www.linuxdevices.com/cgi-bin/board/UltraBoard.pl?Action=ShowPost&Board=100&Post=45&Idle=0&Sort=0&Order=Descend&Page=5&Session=

-- 
 .''`.  Carl B. Constantine
: :' : [EMAIL PROTECTED]
`. `'GnuPG: 135F FC30 7A02 B0EB 61DB  34E3 3AF1 DC6C 9F7A 3FF8
  `-  Debian GNU/Linux -- The power of freedom
  "Claiming that your operating system is the best in the world because more
  people use it is like saying McDonalds makes the best food in the world."
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Compiling GTK Test

2005-06-30 Thread Adolfo Eloy
Hello people!

I have tryed to follow the steps
posted by another mails, but even after
try all things I can't compile my first program
in my Fedora Core 3.


Now, I'm trying to compile using the statement below:
gcc -o base teste_gtk.c `pkg-config --libs gtk+-2.0`

but I receive the follow message:
/usr/bin/ld: cannot find -lgtk-x11-2.0
collect2: ld returned 1 exit status

But I have the gtk-x11-2.0
like this:
/usr/lib/libgtk-x11-2.0.so.0


I'd like to compile with these difficults
cause I don't wanna re-install the linux
from begin to solve this trouble.


Thank you people!


Adolfo Eloy





___ 
Yahoo! Acesso Grátis - Internet rápida e grátis. 
Instale o discador agora! http://br.acesso.yahoo.com/
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Are there anybody interested in porting GTK to embedded dev board

2005-06-30 Thread John Cupitt
On 6/28/05, lin Yang <[EMAIL PROTECTED]> wrote:
> I'm working on porting GTK to Intel dev board. My goal
> is to develop a system like smart phone or PDA. After
> investegating Qt and GTK, I choose GTK as my graphic

directfb has some useful stuff on their documentation page:

  http://directfb.org/index.php?path=Documentation

Even if you don't use the directfb backend (I think it wasn't working
for a while, don't know if it's OK again now), they have some useful
tips on building tiny gtk binaries. They get (or got, the page is a
few years old) gtk, the window system and gtktetris into 2MB of flash.
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Cannot start GTK apps - gdk_visual_decompose_mask

2005-06-30 Thread Owen Taylor
On Thu, 2005-06-30 at 17:36 +0100, David Saxton wrote:
> On Thursday 30 Jun 2005 14:26, you wrote:
> > You don't really give us enough information to guess here. (My initial
> > reaction is: that can't happen!)
> >
> > But we'd appreciate a bug in bugzilla, with:
> >
> >  - Your GTK+ version
> >  - Information about your operating system (what distro and version,
> >if Linux)
> >  - Information about your X server
> >  - The output of 'xdpyinfo' as an attachment
> >
> Before filing a bug with gtk, I want to check that it isn't either a bug 
> elsewhere (such as in X).
> 
> The output of 'xdpyinfo' gives (amongst other things) this interesting item:
> 
>   visual:
> visual id:0x3e
> class:DirectColor
> depth:24 planes
> available colormap entries:256 per subfield
> red, green, blue masks:0xff, 0x0, 0xff
> significant bits in color specification:8 bits
> 
> where presumably the "0x0" for the green mask is causing the problem - 
> indeed, 
> 0 is the value in visual_list in the _gdk_visual_init function returned from 
> XGetVisualInfo for that visual.
> 
> All the other visuals (as shown by xpdyinfo) have non-zero masks.

This looks very much like an X bug ... I have no idea what this could
mean... you could have only images that were different shades of red and
blue.

On the other hand, I don't think that GTK+ should go into an infinite
loop here, and it's easy enough to catch and avoid. So a bugzilla
bug would be appreciated.

Since it's a DirectColor visual, it's almost certainly not your default
visual, so it doesn't really matter what GTK+ does with it as long as it
doesn't hang.

Regards,
Owen



signature.asc
Description: This is a digitally signed message part
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Cannot start GTK apps - gdk_visual_decompose_mask

2005-06-30 Thread Owen Taylor
On Thu, 2005-06-30 at 11:58 +0100, David Saxton wrote:
> Hello,
> 
> Recently (perhaps due to an upgrade to the system, or similar - I'm unsure 
> when exactly it happened) gtk apps stopped working (the apps don't display 
> any gui - just sit there taking up 100% cpu).
> 
> This happens with all gtk apps tested - e.g. gimp, inkscape, gnumeric.
> 
> Compiling gtk with debugging support shows the same backtrace:
> 
> #0  gdk_visual_decompose_mask (mask=0, shift=0x89d46c, prec=0x89d470) at 
> gdkvisual-x11.c:611
> #1  0x2b72c6c8 in _gdk_visual_init (screen=0x89b6c0) at 
> gdkvisual-x11.c:194
> #2  0x2b72a81f in _gdk_x11_screen_new (display=0x899cc0, 
> screen_number=0) at gdkscreen-x11.c:429
> #3  0x2b714511 in IA__gdk_display_open (display_name=0x0) at 
> gdkdisplay-x11.c:183
> #4  0x2b6f8c6a in IA__gdk_display_open_default_libgtk_only () at 
> gdk.c:272
> #5  0x2b3ec63b in IA__gtk_init_check (argc=0x0, argv=0x89d46c) at 
> gtkmain.c:702
> 
> It seems like they are stuck in the following while loop in gdkvisual-x11.c 
> (as shown by the backtrace):
> 
>  while (!(mask & 0x1))
> {
>   (*shift)++;
>   mask >>= 1;
> }
> 
> However, I don't know enough about gtk to investigate any further - so 
> perhaps 
> someone has suggestions on what is going wrong / how to fix this?

You don't really give us enough information to guess here. (My initial
reaction is: that can't happen!)

But we'd appreciate a bug in bugzilla, with:

 - Your GTK+ version
 - Information about your operating system (what distro and version,   
   if Linux)
 - Information about your X server
 - The output of 'xdpyinfo' as an attachment

See the GTK+ README file for more information about filing bugs.

Regards,
Owen



signature.asc
Description: This is a digitally signed message part
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: pixel drawing

2005-06-30 Thread John Cupitt
On 6/28/05, Andreas Bentlage <[EMAIL PROTECTED]> wrote:
> i have the following 2 arrays.
> gfloat pixel[6000][1] = x[n]
> gfloat pixel[6000][2] = y[n]
> this 2 arrays contains the x/y values for 6000 rectangles
> drawn on a pixmap. Now my problem ...
> with button_press_event i catch the current x/y positions
> from screen. What i want is to draw the given pixels from
> my arrays in a different color when i'm close to it with my mouse.

In the button_press handler, save the mouse x/y position somewhere and
then trigger an expose. In the expose handler, redraw all your points
calculating the colour from the distance between the point and the
saved click position.

If it's too slow, you can start to do your own clipping depending on
the distance function.

John
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Drawing higher depth images

2005-06-30 Thread John Cupitt
On 6/30/05, David Necas (Yeti) <[EMAIL PROTECTED]> wrote:
> Is it possible to use Gdk drawing functions (gdk_draw_arc(),
> etc.) to draw images of higher depth than system and save
> them?

My understanding is unfortunately no. X servers can only draw to the
visuals they know about, and if a server only has (for example) 8 bpp
visuals, it means it does not have code (or hardware) to draw to 24
bpp visuals.

I think you will have to use a client side library (libart etc.) to do
the drawing if you must have 24 bpp drawing on all systems.

John
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Compiling GTK Test

2005-06-30 Thread Jeffrin Jose

Adolfo Eloy wrote:


Hello people!

I have tryed to follow the steps
posted by another mails, but even after
try all things I can't compile my first program
in my Fedora Core 3.


Now, I'm trying to compile using the statement below:
gcc -o base teste_gtk.c `pkg-config --libs gtk+-2.0`

but I receive the follow message:
/usr/bin/ld: cannot find -lgtk-x11-2.0
collect2: ld returned 1 exit status

But I have the gtk-x11-2.0
like this:
/usr/lib/libgtk-x11-2.0.so.0


I'd like to compile with these difficults
cause I don't wanna re-install the linux
from begin to solve this trouble.


 


try this...
gcc -o base teste_gtk.c `pkg-config gtk+-2.0 --cflags --libs`

--
Jeffrin [ http://trueangle.org ]

Send instant messages to your online friends http://in.messenger.yahoo.com 
___

gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


GLib 2.7.1 released

2005-06-30 Thread Matthias Clasen
GLib 2.7.1 is now available for download at:

   ftp://ftp.gtk.org/pub/gtk/v2.7/

glib-2.7.1.tar.bz2  md5sum: f6a6f4acd56b98e9372e5326e2657c10
glib-2.7.1.tar.gz   md5sum: 739c01270ca2395db62e76751fc6fc84

This is the second development release leading up to GLib-2.8.  

Notes:

 * This is unstable development release. While it has had
   a bit of testing, there are certainly plenty of bugs
   remaining to be found. This release should not be used
   in production.

 * Installing this version will overwrite your existing
   copy of GLib 2.6. If you have problems, you'll need
   to reinstall GLib 2.6.5.

 * GLib 2.8 will be source and binary compatible with
   the GLib 2.6.x series; however, the new API additions
   in GLib 2.7.0 are not yet finalized, so there may
   be incompatibities between this release and the final
   2.8 release.

 * Remaining issues for GLib 2.8 can be found with the 
   following bugzilla query:


http://bugzilla.gnome.org/buglist.cgi?product=glib&target_milestone=2.8
+API+Freeze&&target_milestone=2.8
+Freeze&bug_status=NEW&bug_status=UNCONFIRMED&bug_status=ASSIGNED&bug_status=REOPENED

 * Bugs should be reported to http://bugzilla.gnome.org.
   

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 from GLib 2.7.0 to GLib 2.7.1
=
* GOption 
 - Allow callback arguments without parameters [Dan Winship]
* GMappedFile: an mmap wrapper [David Schleef, Behdad Esfahbod]
* Misc new functions:
 - g_get_host_name [Tor Lillqvist]
 - g_mkdir_with_parents [Tor]
 - g_build_pathv, g_build_filenamev [Todd A. Fisher, 
   Matthias Clasen]
* Bug fixes [Roger Leigh, Masatake YAMATO, Kjartan Maraas,
  Manish Singh, Tor, Murray Cumming, Kian Duffy, Morten Welinder]
* Documentation improvements [Hong Gang XU, Dan Winship, Matthias]
* New and updated translations (bg,cs,da,en_CA,es,et,nb,nl,no,
  sk,th,zh_TW)


A list of all bugs fixed in this release can be found at
http://bugzilla.gnome.org/buglist.cgi?bug_id=302632,5200,60509,308528,308602,149092,308546,148218,308295,309157,307064


June 30, 2005


___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


GTK installation

2005-06-30 Thread Ninad Pachpute
Hi

i got the following error after doing ./configure while installing GTK 2.6



checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking for glib-2.0 >= 2.6.0atk >= 1.0.1pango >= 1.7.0...
Requested 'glib-2.0 >= 2.6.0' but version of GLib is 2.4.7

configure: error: Library requirements (glib-2.0 >= 2.6.0atk >=
1.0.1pango >= 1.7.0) not met; consider adjusting the
PKG_CONFIG_PATH environment variable if your libraries are in a
nonstandard prefix so pkg-config can find them.

PLEASE EXPLAIN..

THANK YOU
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK installation

2005-06-30 Thread David Necas (Yeti)
On Fri, Jul 01, 2005 at 10:39:37AM +0530, Ninad Pachpute wrote:
> 
> configure: error: Library requirements (glib-2.0 >= 2.6.0atk >=
> 1.0.1pango >= 1.7.0) not met; consider adjusting the
> PKG_CONFIG_PATH environment variable if your libraries are in a
> nonstandard prefix so pkg-config can find them.
> 
> PLEASE EXPLAIN..

Please don't shout. Please search the archives first (this
is asked every week at least once) and/or do what it tells
you: set PKG_CONFIG_PATH to point to lib/pkgconfig dir
correspondig to your Gtk+ installation.

Yeti


--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list