Lines Matching defs:act
67 static void sp_erasertb_mode_changed( EgeSelectOneAction *act, GObject *tbl )
70 bool eraserMode = ege_select_one_action_get_active( act ) != 0;
103 static void sp_toogle_break_apart( GtkToggleAction* act, gpointer data )
106 gboolean active = gtk_toggle_action_get_active(act);
132 EgeSelectOneAction* act = ege_select_one_action_new( "EraserModeAction", (""), (""), NULL, GTK_TREE_MODEL(model) );
133 g_object_set( act, "short_label", _("Mode:"), NULL );
134 gtk_action_group_add_action( mainActions, GTK_ACTION(act) );
135 g_object_set_data( holder, "eraser_mode_action", act );
137 ege_select_one_action_set_appearance( act, "full" );
138 ege_select_one_action_set_radio_action_type( act, INK_RADIO_ACTION_TYPE );
139 g_object_set( G_OBJECT(act), "icon-property", "iconId", NULL );
140 ege_select_one_action_set_icon_column( act, 2 );
141 ege_select_one_action_set_tooltip_column( act, 1 );
145 ege_select_one_action_set_active( act, eraserMode );
146 g_signal_connect_after( G_OBJECT(act), "changed", G_CALLBACK(sp_erasertb_mode_changed), holder );
185 InkToggleAction* act = ink_toggle_action_new( "EraserBreakAppart",
190 gtk_toggle_action_set_active( GTK_TOGGLE_ACTION(act), prefs->getBool("/tools/eraser/break_apart", false) );
191 g_object_set_data( holder, "split", act );
192 g_signal_connect_after( G_OBJECT(act), "toggled", G_CALLBACK(sp_toogle_break_apart), holder) ;
193 gtk_action_group_add_action( mainActions, GTK_ACTION(act) );