* BUG: Fix Frame children detection.

[GB.GTK3]
* BUG: Fix Frame children detection.


git-svn-id: svn://localhost/gambas/trunk@6329 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2014-06-19 09:07:50 +00:00
parent 4fed42ea7e
commit ab80d1ab67
2 changed files with 15 additions and 3 deletions

View file

@ -160,7 +160,7 @@ gFrame::gFrame(gContainer *parent) : gContainer(parent)
gtk_container_add(GTK_CONTAINER(widget), fr);
realize(false);
g_signal_connect(G_OBJECT(border), "size-allocate", G_CALLBACK(cb_frame_resize), (gpointer)this);
}
@ -233,9 +233,14 @@ int gFrame::containerX()
return gApplication::getFrameWidth();
}
int gFrame::clientX()
{
return 0;
}
int gFrame::clientWidth()
{
return width() - gApplication::getFrameWidth() * 2;
return width(); // - gApplication::getFrameWidth() * 2;
}
int gFrame::containerY()
@ -248,7 +253,12 @@ int gFrame::containerY()
return y;
}
int gFrame::clientY()
{
return 0;
}
int gFrame::clientHeight()
{
return height() - containerY() - gApplication::getFrameWidth();
return height(); // - clientY() - gApplication::getFrameWidth();
}

View file

@ -51,6 +51,8 @@ public:
virtual int containerX();
virtual int containerY();
virtual int clientX();
virtual int clientY();
virtual int clientWidth();
virtual int clientHeight();