Lines Matching defs:act
46 static void toggle_dropper_pick_alpha( GtkToggleAction* act, gpointer tbl )
49 prefs->setInt( "/tools/dropper/pick", gtk_toggle_action_get_active( act ) );
52 if ( gtk_toggle_action_get_active( act ) ) {
62 static void toggle_dropper_set_alpha( GtkToggleAction* act, gpointer tbl )
65 prefs->setBool( "/tools/dropper/setalpha", gtk_toggle_action_get_active( act ) );
83 EgeOutputAction* act = ege_output_action_new( "DropperOpacityAction", _("Opacity:"), "", 0 );
84 ege_output_action_set_use_markup( act, TRUE );
85 gtk_action_group_add_action( mainActions, GTK_ACTION( act ) );
89 InkToggleAction* act = ink_toggle_action_new( "DropperPickAlphaAction",
94 g_object_set( act, "short_label", _("Pick"), NULL );
95 gtk_action_group_add_action( mainActions, GTK_ACTION( act ) );
96 g_object_set_data( holder, "pick_action", act );
97 gtk_toggle_action_set_active( GTK_TOGGLE_ACTION(act), pickAlpha );
98 g_signal_connect_after( G_OBJECT(act), "toggled", G_CALLBACK(toggle_dropper_pick_alpha), holder );
102 InkToggleAction* act = ink_toggle_action_new( "DropperSetAlphaAction",
107 g_object_set( act, "short_label", _("Assign"), NULL );
108 gtk_action_group_add_action( mainActions, GTK_ACTION( act ) );
109 g_object_set_data( holder, "set_action", act );
110 gtk_toggle_action_set_active( GTK_TOGGLE_ACTION(act), prefs->getBool( "/tools/dropper/setalpha", true) );
112 gtk_action_set_sensitive( GTK_ACTION(act), pickAlpha );
113 g_signal_connect_after( G_OBJECT(act), "toggled", G_CALLBACK(toggle_dropper_set_alpha), holder );