2
* Copyright (C) 2004 Jens Oknelid, paskharen@gmail.com
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2
* Copyright © 2004-2006 Jens Oknelid, paskharen@gmail.com
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
19
#include "dialogentry.hh"
21
21
using namespace std;
23
DialogEntry::DialogEntry(string id)
28
GtkWidget* DialogEntry::getDialog()
33
void DialogEntry::setDialog(GtkWidget *d)
38
string DialogEntry::getID()
23
int DialogEntry::responseID = GTK_RESPONSE_NONE;
25
GtkWidget* DialogEntry::getContainer()
27
return getWidget("dialog");
30
void DialogEntry::setResponseID(int responseID)
32
this->responseID = responseID;
35
int DialogEntry::getResponseID()
43
40
void DialogEntry::applyCallback(GCallback closeCallback)
45
g_signal_connect(G_OBJECT(dialog), "response", closeCallback, (gpointer)this);
42
g_signal_connect(getWidget("dialog"), "response", closeCallback, (gpointer)this);