/* Authors:
* Jon A. Cruz
*
* Copyright (C) 2010 Jon A. Cruz
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "widgets/desktop-widget.h"
#include <glib-object.h>
#include "desktop-tracker.h"
#include "inkscape.h"
#include "desktop.h"
namespace Inkscape {
namespace UI {
namespace Dialog {
base(0),
desktop(0),
widget(0),
hierID(0),
trackActive(false),
{
}
{
disconnect();
}
{
disconnect();
hierID = g_signal_connect( G_OBJECT(widget), "hierarchy-changed", G_CALLBACK(hierarchyChangeCB), this );
);
}
}
}
{
if (hierID) {
if (widget) {
}
hierID = 0;
}
inkID.disconnect();
}
}
{
// Do not override an existing target desktop
if (!this->desktop) {
}
}
}
{
return base;
}
{
return desktop;
}
{
}
{
}
//return FALSE;
}
bool DesktopTracker::hierarchyChangeCB(GtkWidget * /*widget*/, GtkWidget* /*prev*/, DesktopTracker *self)
{
if (self) {
}
return false;
}
{
}
}
if (newFlag != trackActive) {
if (trackActive) {
setDesktop(getBase());
}
}
}
{
}
}
} // namespace Dialog
} // namespace UI
} // namespace Inkscape
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :