_moo_term_clear_selection

master
Yevgen Muntyan 2006-10-24 01:26:10 -05:00
parent 999b2130eb
commit 1e6160a8af
4 changed files with 17 additions and 2 deletions

View File

@ -255,6 +255,7 @@ void _moo_term_invalidate (MooTerm *term);
void _moo_term_release_selection (MooTerm *term);
void _moo_term_grab_selection (MooTerm *term);
void _moo_term_clear_selection (MooTerm *term);
/* in mooterm-draw.c */
void _moo_term_pause_cursor_blinking (MooTerm *term);

View File

@ -338,6 +338,18 @@ _moo_term_select_range (MooTerm *term,
}
void
_moo_term_clear_selection (MooTerm *term)
{
MooTermIter iter;
g_return_if_fail (MOO_IS_TERM (term));
get_start_iter (term, &iter);
_moo_term_select_range (term, &iter, &iter);
}
static void get_start_iter (MooTerm *term,
MooTermIter *iter)
{

View File

@ -1622,6 +1622,8 @@ _moo_term_setting_request (MooTerm *term,
static void
moo_term_reset_real (MooTerm *term)
{
_moo_term_clear_selection (term);
_moo_term_buffer_freeze_changed_notify (term->priv->primary_buffer);
_moo_term_buffer_freeze_cursor_notify (term->priv->primary_buffer);

View File

@ -234,8 +234,8 @@ fork_argv (MooTermPt *pt_gen,
}
else
{
#if 0
g_message ("%s: forked child pid %d", G_STRLOC, pt->child_pid);
#if 1
g_message ("%s: forked child pid %d on fd %d", G_STRLOC, pt->child_pid, pt->master);
#endif
}