~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/jabber_whiteboard/invitation-confirm-dialog.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * Whiteboard invitation confirmation dialog --
 
3
 * quick subclass of Gtk::MessageDialog
 
4
 *
 
5
 * Authors:
 
6
 * David Yip <yipdw@rose-hulman.edu>
 
7
 *
 
8
 * Copyright (c) 2005 Authors
 
9
 *
 
10
 * Released under GNU GPL, read the file 'COPYING' for more information
 
11
 */
 
12
 
 
13
#include <gtkmm.h>
 
14
#include <glibmm.h>
 
15
#include <glibmm/i18n.h>
 
16
 
 
17
#include "invitation-confirm-dialog.h"
 
18
#include "session-file-selector.h"
 
19
 
 
20
namespace Inkscape {
 
21
 
 
22
namespace Whiteboard {
 
23
 
 
24
InvitationConfirmDialog::InvitationConfirmDialog(Glib::ustring const& msg) :
 
25
        Gtk::MessageDialog(msg, true, Gtk::MESSAGE_QUESTION, Gtk::BUTTONS_NONE, false),
 
26
        _usesessionfile(_("_Write session file:"), true)
 
27
{
 
28
        this->_construct();
 
29
        this->get_vbox()->show_all_children();
 
30
}
 
31
 
 
32
InvitationConfirmDialog::~InvitationConfirmDialog()
 
33
{
 
34
 
 
35
}
 
36
 
 
37
Glib::ustring const&
 
38
InvitationConfirmDialog::getSessionFilePath()
 
39
{
 
40
        return this->_sfsbox.getFilename();
 
41
}
 
42
 
 
43
bool
 
44
InvitationConfirmDialog::useSessionFile()
 
45
{
 
46
        return this->_sfsbox.isSelected();
 
47
}
 
48
 
 
49
void
 
50
InvitationConfirmDialog::_construct()
 
51
{
 
52
        this->get_vbox()->pack_end(this->_sfsbox);
 
53
}
 
54
 
 
55
}
 
56
 
 
57
}
 
58
 
 
59
/*
 
60
  Local Variables:
 
61
  mode:c++
 
62
  c-file-style:"stroustrup"
 
63
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
64
  indent-tabs-mode:nil
 
65
  fill-column:99
 
66
  End:
 
67
*/
 
68
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :