minor cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -527,7 +527,7 @@ size_t wxMBConvUTF7::WC2MB(char *buf, const wchar_t *psz, size_t n) const
|
|||||||
{
|
{
|
||||||
// BASE64 encode string
|
// BASE64 encode string
|
||||||
unsigned int lsb, d, l;
|
unsigned int lsb, d, l;
|
||||||
for (d = 0, l = 0;; psz++)
|
for (d = 0, l = 0; /*nothing*/; psz++)
|
||||||
{
|
{
|
||||||
for (lsb = 0; lsb < 2; lsb ++)
|
for (lsb = 0; lsb < 2; lsb ++)
|
||||||
{
|
{
|
||||||
|
@@ -717,7 +717,7 @@ long wxTreeCtrl::GetChild(long item) const {
|
|||||||
|
|
||||||
p = findGtkTreeItem(item);
|
p = findGtkTreeItem(item);
|
||||||
GList *list = gtk_container_children(GTK_CONTAINER(p));
|
GList *list = gtk_container_children(GTK_CONTAINER(p));
|
||||||
next = GTK_TREE_ITEM(list->data);;
|
next = GTK_TREE_ITEM(list->data);
|
||||||
|
|
||||||
if (next != NULL)
|
if (next != NULL)
|
||||||
return (long)gtk_object_get_data(GTK_OBJECT(next), "id");
|
return (long)gtk_object_get_data(GTK_OBJECT(next), "id");
|
||||||
@@ -729,7 +729,7 @@ long wxTreeCtrl::GetFirstVisibleItem(void) const {
|
|||||||
GtkTreeItem *next = NULL;
|
GtkTreeItem *next = NULL;
|
||||||
|
|
||||||
GList *list = gtk_container_children(GTK_CONTAINER(m_anchor));
|
GList *list = gtk_container_children(GTK_CONTAINER(m_anchor));
|
||||||
next = GTK_TREE_ITEM(list->data);;
|
next = GTK_TREE_ITEM(list->data);
|
||||||
// gtk_container_foreach(GTK_CONTAINER(m_anchor), gtk_treectrl_next_visible_callback, &next);
|
// gtk_container_foreach(GTK_CONTAINER(m_anchor), gtk_treectrl_next_visible_callback, &next);
|
||||||
|
|
||||||
if (next != NULL)
|
if (next != NULL)
|
||||||
@@ -744,7 +744,7 @@ long wxTreeCtrl::GetNextVisibleItem(long item) const {
|
|||||||
|
|
||||||
p = findGtkTreeItem(item);
|
p = findGtkTreeItem(item);
|
||||||
GList *list = gtk_container_children(GTK_CONTAINER(p));
|
GList *list = gtk_container_children(GTK_CONTAINER(p));
|
||||||
next = GTK_TREE_ITEM(list->data);;
|
next = GTK_TREE_ITEM(list->data);
|
||||||
// gtk_container_foreach(GTK_CONTAINER(p), gtk_treectrl_next_visible_callback, &next);
|
// gtk_container_foreach(GTK_CONTAINER(p), gtk_treectrl_next_visible_callback, &next);
|
||||||
|
|
||||||
if (next != NULL)
|
if (next != NULL)
|
||||||
|
@@ -717,7 +717,7 @@ long wxTreeCtrl::GetChild(long item) const {
|
|||||||
|
|
||||||
p = findGtkTreeItem(item);
|
p = findGtkTreeItem(item);
|
||||||
GList *list = gtk_container_children(GTK_CONTAINER(p));
|
GList *list = gtk_container_children(GTK_CONTAINER(p));
|
||||||
next = GTK_TREE_ITEM(list->data);;
|
next = GTK_TREE_ITEM(list->data);
|
||||||
|
|
||||||
if (next != NULL)
|
if (next != NULL)
|
||||||
return (long)gtk_object_get_data(GTK_OBJECT(next), "id");
|
return (long)gtk_object_get_data(GTK_OBJECT(next), "id");
|
||||||
@@ -729,7 +729,7 @@ long wxTreeCtrl::GetFirstVisibleItem(void) const {
|
|||||||
GtkTreeItem *next = NULL;
|
GtkTreeItem *next = NULL;
|
||||||
|
|
||||||
GList *list = gtk_container_children(GTK_CONTAINER(m_anchor));
|
GList *list = gtk_container_children(GTK_CONTAINER(m_anchor));
|
||||||
next = GTK_TREE_ITEM(list->data);;
|
next = GTK_TREE_ITEM(list->data);
|
||||||
// gtk_container_foreach(GTK_CONTAINER(m_anchor), gtk_treectrl_next_visible_callback, &next);
|
// gtk_container_foreach(GTK_CONTAINER(m_anchor), gtk_treectrl_next_visible_callback, &next);
|
||||||
|
|
||||||
if (next != NULL)
|
if (next != NULL)
|
||||||
@@ -744,7 +744,7 @@ long wxTreeCtrl::GetNextVisibleItem(long item) const {
|
|||||||
|
|
||||||
p = findGtkTreeItem(item);
|
p = findGtkTreeItem(item);
|
||||||
GList *list = gtk_container_children(GTK_CONTAINER(p));
|
GList *list = gtk_container_children(GTK_CONTAINER(p));
|
||||||
next = GTK_TREE_ITEM(list->data);;
|
next = GTK_TREE_ITEM(list->data);
|
||||||
// gtk_container_foreach(GTK_CONTAINER(p), gtk_treectrl_next_visible_callback, &next);
|
// gtk_container_foreach(GTK_CONTAINER(p), gtk_treectrl_next_visible_callback, &next);
|
||||||
|
|
||||||
if (next != NULL)
|
if (next != NULL)
|
||||||
|
@@ -705,8 +705,8 @@ void wxTopLevelWindowMSW::Maximize(bool maximize)
|
|||||||
}
|
}
|
||||||
else // hidden
|
else // hidden
|
||||||
{
|
{
|
||||||
// we can't maximize the hidden frame because it shows it as well, so
|
// we can't maximize the hidden frame because it shows it as well,
|
||||||
// just remember that we should do it later in this case
|
// so just remember that we should do it later in this case
|
||||||
m_maximizeOnShow = maximize;
|
m_maximizeOnShow = maximize;
|
||||||
|
|
||||||
// after calling Maximize() the client code expects to get the frame
|
// after calling Maximize() the client code expects to get the frame
|
||||||
@@ -715,7 +715,7 @@ void wxTopLevelWindowMSW::Maximize(bool maximize)
|
|||||||
// it's shown, so return our size as it will be then in this case
|
// it's shown, so return our size as it will be then in this case
|
||||||
if ( maximize )
|
if ( maximize )
|
||||||
{
|
{
|
||||||
// unfortunatrly we don't know which display we're on yet so we
|
// unfortunately we don't know which display we're on yet so we
|
||||||
// have to use the default one
|
// have to use the default one
|
||||||
SetSize(wxGetClientDisplayRect().GetSize());
|
SetSize(wxGetClientDisplayRect().GetSize());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user