[GB.GTK]
* 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:
parent
4fed42ea7e
commit
ab80d1ab67
2 changed files with 15 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -51,6 +51,8 @@ public:
|
|||
|
||||
virtual int containerX();
|
||||
virtual int containerY();
|
||||
virtual int clientX();
|
||||
virtual int clientY();
|
||||
virtual int clientWidth();
|
||||
virtual int clientHeight();
|
||||
|
||||
|
|
Loading…
Reference in a new issue