~ubuntu-branches/ubuntu/natty/gtkhtml3.14/natty

« back to all changes in this revision

Viewing changes to gtkhtml/htmlselection.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-01-25 16:47:41 UTC
  • mfrom: (1.6.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100125164741-0yjpj0hijgo8a8k2
Tags: 1:3.29.6.is.3.28.2-0ubuntu1
* Revert upload as incompatible with evolution 2.28
* drop << in debian/libgtkhtml3.14-19.shlibs and
  debian/libgtkhtml3.14-19.shlibs
* take debian/patches/01_use_gtk_widget_is_toplevel.patch from
  upstream to build with gtk > 2.18

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
{
141
141
        e = html_engine_get_top_html_engine (e);
142
142
        html_engine_hide_cursor (e);
143
 
        if (e->selection && html_interval_eq (e->selection, i)) {
144
 
                html_interval_destroy (i);
145
 
        } else if (i && i->from.object == i->to.object && i->from.offset == i->to.offset) {
146
 
                /* shouldn't select zero letters */
147
 
                html_interval_destroy (i);
148
 
                html_engine_unselect_all (e);
149
 
        } else {
 
143
        if (e->selection && html_interval_eq (e->selection, i))
 
144
                html_interval_destroy (i);
 
145
        else {
150
146
                if (!e->selection || !optimize_selection (e, i)) {
151
147
                        html_engine_unselect_all (e);
152
148
                        e->selection = i;