~ubuntu-branches/debian/wheezy/linuxdcpp/wheezy

« back to all changes in this revision

Viewing changes to linux/dialogentry.cc

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2006-10-24 16:46:05 UTC
  • mfrom: (1.1.5 upstream) (4.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20061024164605-ydvywkpog32r1wiw
Tags: 0.0.1.cvs20061024-1
* New upstream release
* Patched SContruct to remove unneeded ld flags, according to
checklib

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* 
2
 
* Copyright (C) 2004 Jens Oknelid, paskharen@gmail.com
3
 
*
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.
8
 
*
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.
13
 
*
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.
17
 
*/
 
2
 * Copyright © 2004-2006 Jens Oknelid, paskharen@gmail.com
 
3
 *
 
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.
 
8
 *
 
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.
 
13
 *
 
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.
 
17
 */
18
18
 
19
19
#include "dialogentry.hh"
20
20
 
21
21
using namespace std;
22
22
 
23
 
DialogEntry::DialogEntry(string id)
24
 
{
25
 
        this->id = id;
26
 
}
27
 
 
28
 
GtkWidget* DialogEntry::getDialog()
29
 
{
30
 
        return dialog;
31
 
}
32
 
 
33
 
void DialogEntry::setDialog(GtkWidget *d)
34
 
{
35
 
        dialog = d;
36
 
}
37
 
 
38
 
string DialogEntry::getID()
39
 
{
40
 
        return id;
 
23
int DialogEntry::responseID = GTK_RESPONSE_NONE;
 
24
 
 
25
GtkWidget* DialogEntry::getContainer()
 
26
{
 
27
        return getWidget("dialog");
 
28
}
 
29
 
 
30
void DialogEntry::setResponseID(int responseID)
 
31
{
 
32
        this->responseID = responseID;
 
33
}
 
34
 
 
35
int DialogEntry::getResponseID()
 
36
{
 
37
        return responseID;
41
38
}
42
39
 
43
40
void DialogEntry::applyCallback(GCallback closeCallback)
44
41
{
45
 
        g_signal_connect(G_OBJECT(dialog), "response", closeCallback, (gpointer)this);
 
42
        g_signal_connect(getWidget("dialog"), "response", closeCallback, (gpointer)this);
46
43
}