~bigwhale/gwibber/UI-fixes

« back to all changes in this revision

Viewing changes to client/tab-bar.vala

  • Committer: David Klasinc
  • Date: 2011-09-07 20:32:54 UTC
  • Revision ID: bigwhale@lubica.net-20110907203254-qsptnqr8purwn0lk
A workaround for bug #812039. No more bleeding.

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
    _layout.put (_entry, 0, 0);
105
105
    _entry.notify["showing"].connect (()=>
106
106
    {
107
 
      if (!_entry.showing)
 
107
      if (!_entry.showing) {
108
108
        _entry.text_view.reset ();
 
109
        unmake_room();
 
110
      } else {
 
111
        make_room();
 
112
      }
109
113
      _view_box.set_sensitive (!_entry.showing);
110
114
    });
111
115
 
340
344
    }
341
345
    queue_draw ();
342
346
  }
 
347
 
 
348
  public void make_room()
 
349
  {
 
350
    Gtk.Allocation alloc;
 
351
    _view_box.get_allocation(out alloc);
 
352
    _layout.move(_view_box, alloc.x, 90);
 
353
  }
 
354
 
 
355
  public void unmake_room()
 
356
  {
 
357
    Gtk.Allocation alloc;
 
358
    _view_box.get_allocation(out alloc);
 
359
    _layout.move(_view_box, alloc.x, 0);
 
360
  }
 
361
 
343
362
}