~ubuntu-branches/ubuntu/utopic/linuxdcpp/utopic

« back to all changes in this revision

Viewing changes to linux/entry.cc

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2007-09-24 00:35:20 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20070924003520-793fzp01xwgklphn
Tags: 1.0.0-1
* Final 1.0.0 release ! 
* Added Homepage: to debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
using namespace std;
26
26
 
27
 
Entry::Entry(const string &id, const string &glade)
 
27
Entry::Entry(const string &id, const string &glade):
 
28
        xml(NULL)
28
29
{
29
30
        // Special case: Allow search tab to have many tabs with the same title.
30
31
        if (id == "Search")
42
43
Entry::~Entry()
43
44
{
44
45
        g_object_unref(xml);
 
46
        xml = NULL;
45
47
}
46
48
 
47
49
GtkWidget *Entry::getWidget(const string &name)
48
50
{
49
 
        dcassert(!name.empty());
 
51
        dcassert(xml && !name.empty());
50
52
        GtkWidget *widget = glade_xml_get_widget(xml, name.c_str());
51
53
        dcassert(widget);
52
54
        return widget;