~ubuntu-branches/ubuntu/utopic/mysql-workbench/utopic

« back to all changes in this revision

Viewing changes to library/forms/gtk/src/lf_form.cpp

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2014-05-31 12:03:58 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20140531120358-cjik5ofkmj0fxsn8
Tags: 6.1.6+dfsg-1
* New upstream release [May 2014].
* Dropped "prtcl.patch".
* "debian/clean": better clean-up.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* 
2
 
 * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
 
2
 * Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved.
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or
5
5
 * modify it under the terms of the GNU General Public License as
251
251
  if (form_flag & mforms::FormMinimizable)
252
252
    flags |= Gdk::DECOR_MINIMIZE;
253
253
 
254
 
  _window->signal_realize().connect(sigc::bind(sigc::mem_fun(this, &FormImpl::realized), form, flags)); 
 
254
  _window->set_events(Gdk::FOCUS_CHANGE_MASK);
 
255
  _window->signal_realize().connect(sigc::bind(sigc::mem_fun(this, &FormImpl::realized), form, flags));
 
256
 
 
257
 
 
258
  _window->signal_focus_in_event().connect(sigc::bind< ::mforms::Form *>(sigc::mem_fun(this, &FormImpl::on_focus_event), form));
 
259
  _window->signal_focus_out_event().connect(sigc::bind< ::mforms::Form *>(sigc::mem_fun(this, &FormImpl::on_focus_event), form));
 
260
}
 
261
 
 
262
 
 
263
bool FormImpl::on_focus_event(GdkEventFocus* ev, ::mforms::Form *form)
 
264
{
 
265
  if (ev->in)
 
266
    form->activated();
 
267
  else
 
268
    form->deactivated();
 
269
  return false;
255
270
}
256
271
 
257
272
void FormImpl::realized(mforms::Form *owner, Gdk::WMDecoration flags)