Thank You for your answer, but I'm not sure to have understood
everything...
You mean I should change like this :
filechooserb = ( new Gtk::FileChooserButton( "Select Target File",
GTK::FILE_CHOOSER_ACTION_OPEN));
??
I don't use GTK namespace, because in the project I'm modifying, a
specific namespace is used...
Can you explain me what you mean with the header file, is somewhat in it
that should not be ??
Le mercredi 28 mars 2007 à 11:20 +0200, Milosz Derezynski a écrit :
> Apart from that you don't really need to dynamically allocate those
> widgets (just use on-stack
> instances as class members), you forgot to prefix
> FILE_CHOOSER_ACTION_OPE with a Gtk::
> (or just use using namespace Gtk; at the top somewhere just please not
> in your header file :P)
>
> Milosz
>
> On 3/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I've some problems understanding that ! I've tried the
> following :
>
> header file (extract) :
> #include <gtkmm/filechooser.h>
> #include <gtkmm/filechooserbutton.h>
> class Dialog_Make_Image : public Gtk::Dialog
> {
> ......
> private:
> Partition partition ;
> Gtk::HBox *hbox ;
> Gtk::VBox *vbox ;
> Gtk::Frame *frame ;
> Gtk::FileChooserButton *filechooserb ;
> Gtk::Image *image;
> };//class
>
>
> ------------------------------
> source file (extract):
> -------------------------------
> filechooserb = ( new Gtk::FileChooserButton( "Select Target
> File",
> FILE_CHOOSER_ACTION_OPEN));
>
> vbox ->pack_start( *
> filechooserb ,Gtk::PACK_SHRINK ) ;
> frame ->add( *vbox ) ;
>
>
> ---------------------------------
>
> But at compiling, I get an error : FILE_CHOOSER_ACTION_OPEN is
> not
> declared, but it must be in gtkmm/filechooser*.h which are
> declared in
> the source header ??
>
> _______________________________________________
> gtkmm-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list