Lines Matching defs:tbl

70 static void sp_rtb_sensitivize( GObject *tbl )
72 GtkAdjustment *adj1 = GTK_ADJUSTMENT( g_object_get_data(tbl, "rx") );
73 GtkAdjustment *adj2 = GTK_ADJUSTMENT( g_object_get_data(tbl, "ry") );
74 GtkAction* not_rounded = GTK_ACTION( g_object_get_data(tbl, "not_rounded") );
76 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)
84 static void sp_rtb_value_changed(GtkAdjustment *adj, GObject *tbl, gchar const *value_name,
87 SPDesktop *desktop = static_cast<SPDesktop *>(g_object_get_data( tbl, "desktop" ));
89 UnitTracker* tracker = reinterpret_cast<UnitTracker*>(g_object_get_data( tbl, "tracker" ));
100 if (g_object_get_data( tbl, "freeze" ) || tracker->isUpdating()) {
105 g_object_set_data( tbl, "freeze", GINT_TO_POINTER(TRUE));
121 sp_rtb_sensitivize( tbl );
128 g_object_set_data( tbl, "freeze", GINT_TO_POINTER(FALSE) );
131 static void sp_rtb_rx_value_changed(GtkAdjustment *adj, GObject *tbl)
133 sp_rtb_value_changed(adj, tbl, "rx", &SPRect::setVisibleRx);
136 static void sp_rtb_ry_value_changed(GtkAdjustment *adj, GObject *tbl)
138 sp_rtb_value_changed(adj, tbl, "ry", &SPRect::setVisibleRy);
141 static void sp_rtb_width_value_changed(GtkAdjustment *adj, GObject *tbl)
143 sp_rtb_value_changed(adj, tbl, "width", &SPRect::setVisibleWidth);
146 static void sp_rtb_height_value_changed(GtkAdjustment *adj, GObject *tbl)
148 sp_rtb_value_changed(adj, tbl, "height", &SPRect::setVisibleHeight);
173 GObject *tbl = G_OBJECT(data);
176 if (g_object_get_data( tbl, "freeze" )) {
181 g_object_set_data( tbl, "freeze", GINT_TO_POINTER(TRUE) );
183 UnitTracker* tracker = reinterpret_cast<UnitTracker*>( g_object_get_data( tbl, "tracker" ) );
187 gpointer item = g_object_get_data( tbl, "item" );
190 GtkAdjustment *adj = GTK_ADJUSTMENT( g_object_get_data( tbl, "rx" ) );
197 GtkAdjustment *adj = GTK_ADJUSTMENT( g_object_get_data( tbl, "ry" ) );
204 GtkAdjustment *adj = GTK_ADJUSTMENT( g_object_get_data( tbl, "width" ) );
211 GtkAdjustment *adj = GTK_ADJUSTMENT( g_object_get_data( tbl, "height" ) );
218 sp_rtb_sensitivize( tbl );
220 g_object_set_data( tbl, "freeze", GINT_TO_POINTER(FALSE) );
235 static void sp_rect_toolbox_selection_changed(Inkscape::Selection *selection, GObject *tbl)
241 if ( g_object_get_data( tbl, "repr" ) ) {
242 g_object_set_data( tbl, "item", NULL );
244 purge_repr_listener( tbl, tbl );
255 EgeOutputAction* act = EGE_OUTPUT_ACTION( g_object_get_data( tbl, "mode_action" ) );
257 g_object_set_data( tbl, "single", GINT_TO_POINTER(FALSE) );
262 GtkAction* w = GTK_ACTION( g_object_get_data( tbl, "width_action" ) );
264 GtkAction* h = GTK_ACTION( g_object_get_data( tbl, "height_action" ) );
269 g_object_set_data( tbl, "single", GINT_TO_POINTER(TRUE) );
271 GtkAction* w = GTK_ACTION( g_object_get_data( tbl, "width_action" ) );
273 GtkAction* h = GTK_ACTION( g_object_get_data( tbl, "height_action" ) );
277 g_object_set_data( tbl, "repr", repr );
278 g_object_set_data( tbl, "item", item );
280 sp_repr_add_listener(repr, &rect_tb_repr_events, tbl);
281 sp_repr_synthesize_events(repr, &rect_tb_repr_events, tbl);
287 sp_rtb_sensitivize( tbl );