All pastes #91668 Raw Edit

Something

public text v1 · immutable
#91668 ·published 2006-07-18 20:14 UTC
rendered paste body
//in choose-desktop.h
class ChooseDesktop : public Gtk::Dialog
{
public:

    ChooseDesktop()
        { doSetup(); }

    virtual ~ChooseDesktop()
        {}

private:

    void okCallback();
    void cancelCallback();

    bool doSetup();

    Gtk::Table table;

    Gtk::Label jidLabel;
    Gtk::Entry jidField;

    Gtk::Entry fileNameField;

    Gtk::Button selectFileButton;

};

// in session manager.cpp
    ChooseDesktop dialog();
    int result = dialog.run();
    dialog.hide();

// bash
error: request for member ‘run’ in ‘dialog’, which is of non-class type ‘ChooseDesktop ()()’