rect-toolbar.cpp revision e918c2e4dcbcd27cf2a8259e53ba7b1196edb291
2N/A#ifdef HAVE_CONFIG_H
2N/A#include "ui/widget/spinbutton.h"
2N/A#include "rect-toolbar.h"
2N/A#include "../desktop-handles.h"
2N/A#include "document-undo.h"
2N/A#include "../inkscape.h"
2N/A#include "../selection-chemistry.h"
2N/A#include "../selection.h"
2N/A#include "../ege-adjustment-action.h"
2N/A#include "../ege-output-action.h"
2N/A#include "../ege-select-one-action.h"
2N/A#include "../ink-action.h"
2N/A#include "../ink-comboboxentry-action.h"
2N/A#include "../widgets/spinbutton-events.h"
2N/A#include "../widgets/spw-utilities.h"
2N/A#include "../widgets/widget-sizes.h"
2N/A#include "../xml/node-event-vector.h"
2N/A#include "ui/uxmanager.h"
2N/A#include "../ui/icon-names.h"
2N/A#include "../helper/unit-menu.h"
2N/A#include "../helper/unit-tracker.h"
2N/A#include "../pen-context.h"
2N/A#include "../sp-namedview.h"
2N/A if (gtk_adjustment_get_value(adj1) == 0 && gtk_adjustment_get_value(adj2) == 0 && g_object_get_data(tbl, "single")) { // only for a single selected rect (for now)
2N/A // this is necessary if the previous value was 0, but we still need to run the callback to change all selected objects
2N/A int n_selected = 0;
2N/A n_selected++;
2N/A if (n_selected == 0) {
sp_desktop_selection(desktop)->connectChanged(sigc::bind(sigc::ptr_fun(sp_rect_toolbox_selection_changed), holder))