Installation problem

2005-05-11 Thread Fabian Arocena
Hi everybody,

I'm experiencing some issues installing gtkmm. I've done it on Windows
XP and I had no problems. I did the exact same thing in Windows 2000
(same results with the pkg-config commands) , restarted the machine,
and still, dev c++ doesn't seem to compile the gtkmm.h.

I've attached a screenshot of the error. Is it a common one? What am I
doing wrong ?

Thank,
Fabian
attachment: error.bmp___
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list


std::function ?

2005-05-11 Thread Foster, Gareth
I came across this today [ http://www.codeproject.com/cpp/FastDelegate.asp
], I know there were discussions about GTKmm, libsigc++ and boost, does the
following now mean that the discussion will need to gather momentum (if it
hasn't already)?


There are many implementations of this scheme, including several here at
CodeProject. They vary in their complexity, their syntax (especially, how
similar their syntax is to C#), and in their generality. The definitive
implementation is boost::function. Recently, it was adopted into the next
version of the C++ standard [Sutter1]. Expect its use to become widespread.

[Sutter1] http://www.cuj.com/documents/s=8464/cujcexp0308sutter/

Gaz


**
* http  -   http://planetearthworm.com/  *
* mail home -  [EMAIL PROTECTED] *
* mail work -[EMAIL PROTECTED]   *
**
___
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list


Re: Installation problem

2005-05-11 Thread Fabian Arocena
The instructions I followed are the ones specified for windows on www.gtkmm.org:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ape.html 

On 5/11/05, Redefined Horizons [EMAIL PROTECTED] wrote:
 I am having a similar error on my Windows 2000 Machine. I think Dev
 C++ is having trouble locating the gtkmm header file.
 
 I have also attached a screen shot. (I wonder if there is a mistake in
 the installation instructions. What instructions did you follow to
 install GTKMM?)
 
 I will try this out on my Windows XP machine at home and see if it
 works. That ought to tell us if it is a Windows 2000 problem.
 
 Landon
 
 P.S. - I attached a screen shot of my error also.
 
 
 On 5/11/05, Fabian Arocena [EMAIL PROTECTED] wrote:
  Hi everybody,
 
  I'm experiencing some issues installing gtkmm. I've done it on Windows
  XP and I had no problems. I did the exact same thing in Windows 2000
  (same results with the pkg-config commands) , restarted the machine,
  and still, dev c++ doesn't seem to compile the gtkmm.h.
 
  I've attached a screenshot of the error. Is it a common one? What am I
  doing wrong ?
 
  Thank,
  Fabian
 
 
  ___
  gtkmm-list mailing list
  gtkmm-list@gnome.org
  http://mail.gnome.org/mailman/listinfo/gtkmm-list
 
 
 
 
 
 

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


Re: Installation problem

2005-05-11 Thread ztl_post
Have you set PKG_CONFIG_PATH environment variable ? This should be set
with the path where your gtkmm-2.4.pc lies in. Otherwise, the
pkg-config.exe can not work. When you finish this, just copy the
output of 'pkg-config --cflags gtkmm2.4' and 'pkg-config --libs
gtkmm-2.4' to the appropriate place.

On Wed, May 11, 2005 at 11:35:16AM -0300, Fabian Arocena wrote:
 The instructions I followed are the ones specified for windows on 
 www.gtkmm.org:
 http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ape.html 
 
 On 5/11/05, Redefined Horizons [EMAIL PROTECTED] wrote:
  I am having a similar error on my Windows 2000 Machine. I think Dev
  C++ is having trouble locating the gtkmm header file.
  
  I have also attached a screen shot. (I wonder if there is a mistake in
  the installation instructions. What instructions did you follow to
  install GTKMM?)
  
  I will try this out on my Windows XP machine at home and see if it
  works. That ought to tell us if it is a Windows 2000 problem.
  
  Landon
  
  P.S. - I attached a screen shot of my error also.
  
  
  On 5/11/05, Fabian Arocena [EMAIL PROTECTED] wrote:
   Hi everybody,
  
   I'm experiencing some issues installing gtkmm. I've done it on Windows
   XP and I had no problems. I did the exact same thing in Windows 2000
   (same results with the pkg-config commands) , restarted the machine,
   and still, dev c++ doesn't seem to compile the gtkmm.h.
  
   I've attached a screenshot of the error. Is it a common one? What am I
   doing wrong ?
  
   Thank,
   Fabian
  
  
   ___
   gtkmm-list mailing list
   gtkmm-list@gnome.org
   http://mail.gnome.org/mailman/listinfo/gtkmm-list
  
  
  
  
  
  
 
 ___
 gtkmm-list mailing list
 gtkmm-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtkmm-list
 
-

-- 
I'm a soldier, not a diplomat.  I can only tell the truth.
-- Kirk, Errand of Mercy, stardate 3198.9

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


Re: Installation problem

2005-05-11 Thread ztl_post
OK! To check the environment variables, right click 'My Computer',
choose 'properties' and select the 'Advance' page of the property
dialog. In the middle of the page, you can see a button 'Environment
Variables'. Click the button and see whether the PKG_CONFIG_PATH
already set properly. 

Alternatively, you can run 'pkg-config --cflags gtkmm-2.4' in a
command box to see whether pkg-config works correctly.

On Wed, May 11, 2005 at 11:56:44AM -0300, Fabian Arocena wrote:
 Ie marked the option of setting the PKG_CONFIG_PATH that appears at
 the end of the installation. And Ie also linked the ouput of those
 commands at my project. Like I said, i followed those instructions in
 XP  and everything works fine...
 
 Is there a way to set the PKG_CONFIG_PATH manually ? or at least
 verify that been set...
 
 
 On 5/11/05, ztl_post [EMAIL PROTECTED] wrote:
  Have you set PKG_CONFIG_PATH environment variable ? This should be set
  with the path where your gtkmm-2.4.pc lies in. Otherwise, the
  pkg-config.exe can not work. When you finish this, just copy the
  output of 'pkg-config --cflags gtkmm2.4' and 'pkg-config --libs
  gtkmm-2.4' to the appropriate place.
  
  On Wed, May 11, 2005 at 11:35:16AM -0300, Fabian Arocena wrote:
   The instructions I followed are the ones specified for windows on 
   www.gtkmm.org:
   http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ape.html
  
   On 5/11/05, Redefined Horizons [EMAIL PROTECTED] wrote:
I am having a similar error on my Windows 2000 Machine. I think Dev
C++ is having trouble locating the gtkmm header file.
   
I have also attached a screen shot. (I wonder if there is a mistake in
the installation instructions. What instructions did you follow to
install GTKMM?)
   
I will try this out on my Windows XP machine at home and see if it
works. That ought to tell us if it is a Windows 2000 problem.
   
Landon
   
P.S. - I attached a screen shot of my error also.
   
   
On 5/11/05, Fabian Arocena [EMAIL PROTECTED] wrote:
 Hi everybody,

 I'm experiencing some issues installing gtkmm. I've done it on Windows
 XP and I had no problems. I did the exact same thing in Windows 2000
 (same results with the pkg-config commands) , restarted the machine,
 and still, dev c++ doesn't seem to compile the gtkmm.h.

 I've attached a screenshot of the error. Is it a common one? What am I
 doing wrong ?

 Thank,
 Fabian


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




   
   
   
   ___
   gtkmm-list mailing list
   gtkmm-list@gnome.org
   http://mail.gnome.org/mailman/listinfo/gtkmm-list
  
  -
  
  --
  I'm a soldier, not a diplomat.  I can only tell the truth.
  -- Kirk, Errand of Mercy, stardate 3198.9
  
  ___
  gtkmm-list mailing list
  gtkmm-list@gnome.org
  http://mail.gnome.org/mailman/listinfo/gtkmm-list
 
 
-

-- 
lighthouse, n.:
A tall building on the seashore in which the government
maintains a lamp and the friend of a politician.

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


Re: std::function ?

2005-05-11 Thread John Taber
Thks for keeping us abreast.  Gtkmm is all about C++ and to me, the C++ 
committee is totally missing the big picture, which limits gtkmm.  Whether 
it's the language, or the toolkit, or the ide, I don't see any progress here 
that's going to speed up our production 1.1x much less 3x with less bugs 
while maintaining decent performance, but that's what we really need and have 
to be headed towards.  The C++ committee has not advanced any significant 
ease of use improvements in the last 8 years or so since STL was adopted, 
meanwhile java, c#, python, ruby, XUL, Objective C are all moving forward.

In the link, Sutter asks what if there were different flavors of string -  duh 
guess what, every toolkit now has it's own string class now because the C++ 
group hasn't modernized to accomodate UTF-8.  so now we have string, 
std::string, ustring(Gtkmm), Qstring(Qt), FxString(Fox).   At least 
Walter Bright's D is much more progressive, too bad it doesn't seem to be 
totally backward compatible.

Maybe we should be working towards gtkdd  - it would be moving forward, not 
maintaining status quo.  
John

On Wednesday 11 May 2005 07:47 am, Foster, Gareth wrote:
 I came across this today [ http://www.codeproject.com/cpp/FastDelegate.asp
 ], I know there were discussions about GTKmm, libsigc++ and boost, does the
 following now mean that the discussion will need to gather momentum (if it
 hasn't already)?


 There are many implementations of this scheme, including several here at
 CodeProject. They vary in their complexity, their syntax (especially, how
 similar their syntax is to C#), and in their generality. The definitive
 implementation is boost::function. Recently, it was adopted into the next
 version of the C++ standard [Sutter1]. Expect its use to become widespread.

 [Sutter1] http://www.cuj.com/documents/s=8464/cujcexp0308sutter/

 Gaz


 **
 * http  -   http://planetearthworm.com/  *
 * mail home -  [EMAIL PROTECTED] *
 * mail work -[EMAIL PROTECTED]   *
 **
 ___
 gtkmm-list mailing list
 gtkmm-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtkmm-list
___
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list


Using CellRendererPixbuf

2005-05-11 Thread Caspar MacRae

Hi,

I'm trying to implement images in treeview cells using an image cell
render.  All I could find regarding this was:
http://mail.gnome.org/archives/gtkmm-list/2003-September/msg00077.html -
which looks promising.

Assuming Gtk::TreeModelColumnGdk::Pixbuf icon;  How would I add
the Pixbuf of a stock image to the row's cell, row[column_set.icon] = ???
Image::get_pixbuf() returns a RefPtr which as I understand can't be
dereferenced.

Can anyone provide any guidance?  This is my first gtkmm app so I'm
quite clueless.

Thanks in advance,
C.


Archive Code Snip:

  /* Create renderer */

  Gtk::CellRendererPixbuf *imagerenderer =

  Gtk::manage(new Gtk::CellRendererPixbuf);

  /* Create col */

  Gtk::TreeViewColumn* iconcolumn =

  Gtk::manage(new Gtk::TreeViewColumn(Icon, *imagerenderer));

  /* Add renderer and Gtk::ModelViewColumn to the Gtk::TreeView::Column */

  iconcolumn-set_renderer(*imagerenderer, this-column_set.icon);

  /* Add col to Gtk::TreeView */

  this-tree_view.append_column (*iconcolumn);

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


Re: Using CellRendererPixbuf

2005-05-11 Thread Murray Cumming
 I'm trying to implement images in treeview cells using an image cell
 render.  All I could find regarding this was:
 http://mail.gnome.org/archives/gtkmm-list/2003-September/msg00077.html -
 which looks promising.

 Assuming Gtk::TreeModelColumnGdk::Pixbuf icon;  How would I add
 the Pixbuf of a stock image to the row's cell

demos/gtk-demo/ does exactly this.

Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com
www.openismus.com

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


Help to connect a signal gtkmm

2005-05-11 Thread Lebon Sylvain
Don't know if my first message has been sent so:

Ok so i want to resize  an Gtk::Image each time  that the window  has a
rescale / resize.
this-signal_configure_event().connect(sigc::mem_fun(*this,
function_resize_and_show_image));
And this doesn't work , i can't figure out why. this is a Gtk::Window
If you could help me
thank you
LEBON Sylvain
begin:vcard
fn:LEBON Sylvain
n:Sylvain;LEBON
email;internet:[EMAIL PROTECTED]
tel;cell:0688012148
version:2.1
end:vcard

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


Re: Using CellRendererPixbuf

2005-05-11 Thread Caspar MacRae

Thanks Murray, 
the example_stockbrowser.cc is almost exactly what i'm after.

One thing though, couldn't find the demos/gtk-demo directory in suse9.1
- it wasn't installed with the devel rpm and doesn't seem to be
available as a seperate package or anything - maybe suse forgot?  Got it
anyway, via  http://cvs.gnome.org/viewcvs/gtkmm-root/demos/gtk-demo/


cheers,
C.


Murray Cumming wrote:
I'm trying to implement images in treeview cells using an image cell
render.  All I could find regarding this was:
http://mail.gnome.org/archives/gtkmm-list/2003-September/msg00077.html -
which looks promising.

Assuming Gtk::TreeModelColumnGdk::Pixbuf icon;  How would I add
the Pixbuf of a stock image to the row's cell


demos/gtk-demo/ does exactly this.

Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com
www.openismus.com



.

  


-- 

Caspar MacRae

Email:  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Phone:  +44 (0)771 363 1486



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