Re: [gtkmm] Gtk::TreeView on gtkmm



Thank you for your quick and detailed response.

On Tue, 20 Jan 2004 11:56:34 +0000
Matthew Walton <matthew alledora co uk> wrote:

> If you connect a signal handler to Gtk::TreeView::signal_row_activated() 
> you will catch double-clicks on rows, and also the user pressing enter 
> when a row is highlighted. Single click to highlight the row is built in 
> behaviour in a Treeview.

I already tried to experiment that signal handler many times but
I got the same error (which I can't understand) every time.


nana:~/2004/XHercules/exp-tree_view5/src$ make
source='exp.cc' object='exp.o' libtool=no \
depfile='.deps/exp.Po' tmpdepfile='.deps/exp.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -I/usr/include/gtkmm-2.0 -I/usr/lib/gtkmm-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0    -c -o exp.o `test -f 'exp.cc' || echo './'`exp.cc
in the file included from window1.hh:13 
                 from exp.cc:10:
window1_glade.hh:48: there is a syntax error before the token `::'
in the file included from exp.cc:10 
window1.hh:43: there is a syntax error before the token `::'


window.hh:13 is ..

#  include "window1_glade.hh"



window1_glade.hh is ...

// generated 2004/1/20 21:14:26 JST by susumu nana michael-net (none)
// using glademm V2.0.0
//
// DO NOT EDIT THIS FILE ! It was created using
// glade-- /home/susumu/2004/XHercules/exp-tree_view5/exp.glade
// for gtk 2.2.1 and gtkmm 2.2.8
//
// Please modify the corresponding derived classes in ./src/window1.hh and./src/
window1.cc

#ifndef _WINDOW1_GLADE_HH
#  define _WINDOW1_GLADE_HH


#if !defined(GLADEMM_DATA)
#define GLADEMM_DATA 
#include <gtkmm/accelgroup.h>

class GlademmData
{  
        
        Glib::RefPtr<Gtk::AccelGroup> accgrp;
public:
        
        GlademmData(Glib::RefPtr<Gtk::AccelGroup> ag) : accgrp(ag)
        {  
        }
        
        Glib::RefPtr<Gtk::AccelGroup>  getAccelGroup()
        {  return accgrp;
        }
};
#endif //GLADEMM_DATA

#include <gtkmm/window.h>
#include <gtkmm/treeview.h>

class GlademmData
{  
        
        Glib::RefPtr<Gtk::AccelGroup> accgrp;
public:
        
        GlademmData(Glib::RefPtr<Gtk::AccelGroup> ag) : accgrp(ag)
        {  
        }
        
        Glib::RefPtr<Gtk::AccelGroup>  getAccelGroup()
        {  return accgrp;
        }
};
#endif //GLADEMM_DATA

#include <gtkmm/window.h>
#include <gtkmm/treeview.h>

class window1_glade : public Gtk::Window
{  
        
        GlademmData *gmm_data;
protected:
        class Gtk::TreeView *treeview1;
        
        window1_glade();
        
        ~window1_glade();
private:
        virtual void on_treeview1_row_activated(const TreeModel::Path& path, TreeViewColumn* column) = 0; // THIS IS LINE 48 -------RIGHT HERE--------
        virtual void on_treeview1_cursor_changed() = 0;
};
#endif



window1.hh:43 is ...
 
  void on_treeview1_row_activated(const TreeModel::Path& path, TreeViewColumn* column);


They are generated by glademm.
Is there anything wrong?

-- 
from Susumu Yoshida(susumu yt com)
Powered by Red Hat Linux



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]