/*
* Inkscape::UI::Widget::UnitTracker
* Simple mediator to synchronize changes to unit menus
*
* Authors:
* Jon A. Cruz <jon@joncruz.org>
* Matthew Petroff <matthew@mpetroff.net>
*
* Copyright (C) 2007 Jon A. Cruz
* Copyright (C) 2013 Matthew Petroff
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "style-internal.h"
#include "unit-tracker.h"
#include "widgets/ege-select-one-action.h"
#define COLUMN_STRING 0
namespace Inkscape {
namespace UI {
namespace Widget {
_active(0),
_isUpdating(false),
_activeUnitInitialized(false),
_store(0),
_unitList(0),
_actionList(0),
_adjList(0),
{
}
_setActive(--count);
} else {
}
}
{
// Unhook weak references to GtkActions
while (_actionList) {
}
// Unhook weak references to GtkAdjustments
while (_adjList) {
}
}
{
return _isUpdating;
}
{
return _activeUnit;
}
{
if (unit) {
int index = 0;
while (found) {
break;
}
index++;
}
}
}
{
setActiveUnit(u);
}
{
}
}
{
}
{
/* Re-shuffle our default selection here (_active gets out of sync) */
}
{
}
{
EgeSelectOneAction *act1 = ege_select_one_action_new(name, label, tooltip, NULL, GTK_TREE_MODEL(_store));
if (_active) {
}
return GTK_ACTION(act1);
}
{
}
}
{
if (data && where_the_object_was) {
}
}
{
if (data && where_the_object_was) {
}
}
{
if (target) {
} else {
}
}
{
if (target) {
} else {
}
}
{
if (found) {
if (found) {
if (_adjList) {
}
} else {
g_warning("Did not find new unit");
}
} else {
g_warning("Did not find old unit");
}
}
}
_activeUnitInitialized = true;
}
}
void UnitTracker::_fixupAdjustments(Inkscape::Util::Unit const *oldUnit, Inkscape::Util::Unit const *newUnit)
{
_isUpdating = true;
{
{
}
} else {
}
}
_isUpdating = false;
}
} // namespace Widget
} // namespace UI
} // namespace Inkscape