~noskcaj/ubuntu/trusty/gnome-documents/3.10.2

« back to all changes in this revision

Viewing changes to src/searchbar.js

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-08-22 10:01:18 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20120822100118-3837rqfy72e1op72
Tags: 3.5.90-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
491
491
    },
492
492
 
493
493
    createSearchWidgets: function() {
494
 
        this._searchContainer = new Gd.MarginContainer({ min_margin: 6,
495
 
                                                         max_margin: 64 });
 
494
        this._searchContainer = new Gd.MarginContainer({ min_margin: 64,
 
495
                                                         max_margin: 128 });
496
496
        this._box = new Gtk.Box({ orientation: Gtk.Orientation.HORIZONTAL });
497
497
        this._searchContainer.add(this._box);
498
498
 
601
601
 
602
602
    hide: function() {
603
603
        this._dropdownButton.set_active(false);
 
604
 
 
605
        // clear all the search properties when hiding the entry
 
606
        this._searchEntry.set_text('');
 
607
 
 
608
        Global.searchTypeManager.setActiveItemById('all');
 
609
        Global.searchMatchManager.setActiveItemById('all');
 
610
        Global.sourceManager.setActiveItemById('all');
 
611
 
604
612
        this.parent();
605
613
    }
606
614
});