1a05542005-07-28Martin Nilsson require gtk26; class GTK2.FileChooserButton; inherit GTK2.Hbox; //! Properties: //! GTK2.FileChooserDialog dialog //! string title //! int width-chars
3d76632005-11-03Lance Dillon void create(string|mapping(string:mixed) title_or_props, ?int action)
1a05542005-07-28Martin Nilsson //! Create a new file-selecting button widget. //! action is one of CONST(GTK_FILE_CHOOSER_ACTION_)
3d76632005-11-03Lance Dillon { pgtk_verify_not_inited(); pgtk_verify_setup(); { if (Pike_sp[-args].type==PIKE_T_STRING) { char *title; int action; GtkWidget *gf; get_all_args("create",args,"%s%i",&title,&action); gf=gtk_file_chooser_button_new(title,action); THIS->obj=G_OBJECT(gf); } else { INIT_WITH_PROPS(GTK_TYPE_FILE_CHOOSER_BUTTON); } my_pop_n_elems(args); } pgtk__init_this_object(); }
1a05542005-07-28Martin Nilsson  string get_title(); //! Retrieves the title of the browse dialog. void set_title(string title); //! Modifies the title of the browse dialog. int get_width_chars(); //! Retrieves the width in characters of the button widget's //! entry and/or label. void set_width_chars(int n_chars); //! Sets the width (in characters) that the button will use. endrequire;