Lines Matching defs:act
65 static void sp_lpetool_mode_changed(EgeSelectOneAction *act, GObject *tbl)
80 gint mode = ege_select_one_action_get_active(act);
87 ege_select_one_action_set_active(act, 0);
147 static void lpetool_toggle_show_bbox(GtkToggleAction *act, gpointer data) {
151 bool show = gtk_toggle_action_get_active( act );
160 static void lpetool_toggle_show_measuring_info(GtkToggleAction *act, GObject *tbl)
171 bool show = gtk_toggle_action_get_active( act );
178 static void lpetool_unit_changed(GtkAction* /*act*/, GObject* tbl)
194 static void lpetool_toggle_set_bbox(GtkToggleAction *act, gpointer data)
218 gtk_toggle_action_set_active(act, false);
245 static void sp_lpetool_change_line_segment_type(EgeSelectOneAction* act, GObject* tbl)
261 lpe->end_type.param_set_value(static_cast<Inkscape::LivePathEffect::EndType>(ege_select_one_action_get_active(act)));
268 static void lpetool_open_lpe_dialog(GtkToggleAction *act, gpointer data)
275 gtk_toggle_action_set_active(act, false);
317 EgeSelectOneAction* act = ege_select_one_action_new( "LPEToolModeAction", (""), (""), NULL, GTK_TREE_MODEL(model) );
318 gtk_action_group_add_action( mainActions, GTK_ACTION(act) );
319 g_object_set_data( holder, "lpetool_mode_action", act );
321 ege_select_one_action_set_appearance( act, "full" );
322 ege_select_one_action_set_radio_action_type( act, INK_RADIO_ACTION_TYPE );
323 g_object_set( G_OBJECT(act), "icon-property", "iconId", NULL );
324 ege_select_one_action_set_icon_column( act, 2 );
325 ege_select_one_action_set_tooltip_column( act, 1 );
328 ege_select_one_action_set_active( act, lpeToolMode );
329 g_signal_connect_after( G_OBJECT(act), "changed", G_CALLBACK(sp_lpetool_mode_changed), holder );
334 InkToggleAction* act = ink_toggle_action_new( "LPEShowBBoxAction",
339 gtk_action_group_add_action( mainActions, GTK_ACTION( act ) );
340 g_signal_connect_after( G_OBJECT(act), "toggled", G_CALLBACK(lpetool_toggle_show_bbox), desktop );
341 gtk_toggle_action_set_active( GTK_TOGGLE_ACTION(act), prefs->getBool( "/tools/lpetool/show_bbox", true ) );
346 InkToggleAction* act = ink_toggle_action_new( "LPEBBoxFromSelectionAction",
351 gtk_action_group_add_action( mainActions, GTK_ACTION( act ) );
352 g_signal_connect_after( G_OBJECT(act), "toggled", G_CALLBACK(lpetool_toggle_set_bbox), desktop );
353 gtk_toggle_action_set_active( GTK_TOGGLE_ACTION(act), FALSE );
360 EgeSelectOneAction* act = ege_select_one_action_new ("LPELineSegmentAction", "" , (_("Choose a line segment type")), NULL, GTK_TREE_MODEL(model));
361 ege_select_one_action_set_appearance (act, "compact");
362 g_object_set_data (holder, "lpetool_line_segment_action", act );
368 g_signal_connect(G_OBJECT(act), "changed", G_CALLBACK(sp_lpetool_change_line_segment_type), holder);
369 gtk_action_set_sensitive( GTK_ACTION(act), FALSE );
370 gtk_action_group_add_action(mainActions, GTK_ACTION(act));
375 InkToggleAction* act = ink_toggle_action_new( "LPEMeasuringAction",
380 gtk_action_group_add_action( mainActions, GTK_ACTION( act ) );
381 g_signal_connect_after( G_OBJECT(act), "toggled", G_CALLBACK(lpetool_toggle_show_measuring_info), holder );
382 gtk_toggle_action_set_active( GTK_TOGGLE_ACTION(act), prefs->getBool( "/tools/lpetool/show_measuring_info", true ) );
387 GtkAction* act = tracker->createAction( "LPEToolUnitsAction", _("Units"), ("") );
388 gtk_action_group_add_action( mainActions, act );
389 g_signal_connect_after( G_OBJECT(act), "changed", G_CALLBACK(lpetool_unit_changed), holder );
390 g_object_set_data(holder, "lpetool_units_action", act);
391 gtk_action_set_sensitive(act, prefs->getBool("/tools/lpetool/show_measuring_info", true));
396 InkToggleAction* act = ink_toggle_action_new( "LPEOpenLPEDialogAction",
401 gtk_action_group_add_action( mainActions, GTK_ACTION( act ) );
402 g_signal_connect_after( G_OBJECT(act), "toggled", G_CALLBACK(lpetool_open_lpe_dialog), desktop );
403 gtk_toggle_action_set_active( GTK_TOGGLE_ACTION(act), FALSE );