Lines Matching defs:act
247 static void ms_new_geometry_changed( EgeSelectOneAction *act, GObject * /*tbl*/ )
250 gint geometrymode = ege_select_one_action_get_active( act ) == 0 ? SP_MESH_GEOMETRY_NORMAL : SP_MESH_GEOMETRY_CONICAL;
254 static void ms_new_fillstroke_changed( EgeSelectOneAction *act, GObject * /*tbl*/ )
257 Inkscape::PaintTarget fsmode = (ege_select_one_action_get_active( act ) == 0) ? Inkscape::FOR_FILL : Inkscape::FOR_STROKE;
298 static void ms_type_changed(EgeSelectOneAction *act, GtkWidget *widget)
311 SPMeshType type = (SPMeshType) ege_select_one_action_get_active(act);
386 EgeSelectOneAction* act = ege_select_one_action_new( "MeshNewTypeAction", (""), (""), NULL, GTK_TREE_MODEL(model) );
387 g_object_set( act, "short_label", _("New:"), NULL );
388 gtk_action_group_add_action( mainActions, GTK_ACTION(act) );
389 g_object_set_data( holder, "mesh_new_type_action", act );
391 ege_select_one_action_set_appearance( act, "full" );
392 ege_select_one_action_set_radio_action_type( act, INK_RADIO_ACTION_TYPE );
393 g_object_set( G_OBJECT(act), "icon-property", "iconId", NULL );
394 ege_select_one_action_set_icon_column( act, 2 );
395 ege_select_one_action_set_tooltip_column( act, 1 );
399 ege_select_one_action_set_active( act, mode );
400 g_signal_connect_after( G_OBJECT(act), "changed", G_CALLBACK(ms_new_geometry_changed), holder );
416 EgeSelectOneAction* act = ege_select_one_action_new( "MeshNewFillStrokeAction", (""), (""), NULL, GTK_TREE_MODEL(model) );
417 g_object_set( act, "short_label", _("on:"), NULL );
418 gtk_action_group_add_action( mainActions, GTK_ACTION(act) );
419 g_object_set_data( holder, "mesh_new_fillstroke_action", act );
421 ege_select_one_action_set_appearance( act, "full" );
422 ege_select_one_action_set_radio_action_type( act, INK_RADIO_ACTION_TYPE );
423 g_object_set( G_OBJECT(act), "icon-property", "iconId", NULL );
424 ege_select_one_action_set_icon_column( act, 2 );
425 ege_select_one_action_set_tooltip_column( act, 1 );
430 ege_select_one_action_set_active( act, fillstrokemode );
431 g_signal_connect_after( G_OBJECT(act), "changed", G_CALLBACK(ms_new_fillstroke_changed), holder );
468 InkToggleAction* act = ink_toggle_action_new( "MeshEditFillAction",
473 gtk_action_group_add_action( mainActions, GTK_ACTION( act ) );
474 PrefPusher *pusher = new PrefPusher(GTK_TOGGLE_ACTION(act), "/tools/mesh/edit_fill");
480 InkToggleAction* act = ink_toggle_action_new( "MeshEditStrokeAction",
485 gtk_action_group_add_action( mainActions, GTK_ACTION( act ) );
486 PrefPusher *pusher = new PrefPusher(GTK_TOGGLE_ACTION(act), "/tools/mesh/edit_stroke");
492 InkToggleAction* act = ink_toggle_action_new( "MeshShowHandlesAction",
497 gtk_action_group_add_action( mainActions, GTK_ACTION( act ) );
498 PrefPusher *pusher = new PrefPusher(GTK_TOGGLE_ACTION(act), "/tools/mesh/show_handles");
508 GtkAction* act = gtk_action_new( "MeshWarningAction",
510 gtk_action_group_add_action( mainActions, GTK_ACTION(act) );
524 EgeSelectOneAction* act = ege_select_one_action_new( "MeshSmoothAction", _("Coons"),
527 g_object_set( act, "short_label", _("Smoothing:"), NULL );
528 ege_select_one_action_set_appearance( act, "compact" );
529 gtk_action_set_sensitive( GTK_ACTION(act), FALSE );
530 g_signal_connect( G_OBJECT(act), "changed", G_CALLBACK(ms_type_changed), holder );
531 gtk_action_group_add_action( mainActions, GTK_ACTION(act) );
532 g_object_set_data( holder, "mesh_select_type_action", act );
536 InkAction* act = ink_action_new( "MeshToggleSidesAction",
541 g_object_set( act, "short_label", _("Toggle side:"), NULL );
542 g_signal_connect_after( G_OBJECT(act), "activate", G_CALLBACK(ms_toggle_sides), 0 );
543 gtk_action_group_add_action( mainActions, GTK_ACTION(act) );
547 InkAction* act = ink_action_new( "MeshMakeEllipticalAction",
552 g_object_set( act, "short_label", _("Make elliptical:"), NULL );
553 g_signal_connect_after( G_OBJECT(act), "activate", G_CALLBACK(ms_make_elliptical), 0 );
554 gtk_action_group_add_action( mainActions, GTK_ACTION(act) );
558 InkAction* act = ink_action_new( "MeshPickColorsAction",
563 g_object_set( act, "short_label", _("Pick Color"), NULL );
564 g_signal_connect_after( G_OBJECT(act), "activate", G_CALLBACK(ms_pick_colors), 0 );
565 gtk_action_group_add_action( mainActions, GTK_ACTION(act) );