SVN revision: 65287
This commit is contained in:
Andreas Volz 2011-11-16 07:02:05 +00:00
parent 1260f6e706
commit 3d921de346
4 changed files with 24 additions and 3 deletions

View File

@ -104,7 +104,7 @@ int main (int argc, const char **argv)
* data pointer (first param) is passed the final param here (in this
* case it is NULL). This is how you can pass specific things to a
* callback like objects or data layered on top */
win->getEventSignal ("delete-request")->connect (sigc::ptr_fun (&my_win_del));
win->getEventSignal ("delete,request")->connect (sigc::ptr_fun (&my_win_del));
win->setAutoDel (true);

View File

@ -13,7 +13,6 @@ using namespace Elmxx;
static void
my_win_del(Evasxx::Object &obj, void *event_info)
{
// TODO
/* called when my_win_main is requested to be deleted */
Application::exit(); /* exit the program's main loop that runs in elm_run() */
}
@ -28,7 +27,7 @@ int main (int argc, const char **argv)
Application elmApp (argc, argv);
Window *elmWin = Window::factory ("window1", ELM_WIN_BASIC);
elmWin->getEventSignal ("delete-request")->connect (sigc::ptr_fun (&my_win_del));
elmWin->getEventSignal ("delete,request")->connect (sigc::ptr_fun (&my_win_del));
Background *bg = Background::factory (*elmWin);

View File

@ -59,6 +59,18 @@ public:
void setRotation (int rotation);
void setSticky (bool sticky);
/*!
* Get the transparency state of a window.
*/
bool getTransparent () const;
/*!
* Set the transparency state of a window.
*
* Use setAlpha () instead.
*/
void setTransparent (bool transparent);
//void setKeyboardMode (Elm_Win_Keyboard_Mode mode);

View File

@ -109,6 +109,16 @@ void Window::setSticky (bool sticky)
elm_win_sticky_set(o, sticky);
}
bool Window::getTransparent () const
{
return elm_win_transparent_get (o);
}
void Window::setTransparent (bool transparent)
{
elm_win_transparent_set (o, transparent);
}
void Window::addObjectResize (const Evasxx::Object &subobj)
{
elm_win_resize_object_add (o, subobj.obj ());