[EXAMPLES]

* BUG: Fix the use of Dialog.Filter in the Picture Database example.

[GB.GTK]
* BUG: Splitter works again.

[GB.QT4]
* BUG: The Dialog.Filter property works correctly now.


git-svn-id: svn://localhost/gambas/trunk@2451 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2009-11-30 20:56:56 +00:00
parent c29934025e
commit 96b97d9f16
7 changed files with 8 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

View file

@ -1,5 +1,5 @@
# Gambas Project File 3.0
# Compiled with Gambas 2.99.0 (r2045)
# Compiled with Gambas 2.99.0 (r2435)
Title=Picture Database Viewer
Startup=FormPictureDatabase
Icon=Images/image-x-generic.png
@ -7,7 +7,7 @@ Version=0.0.2
Component=gb.gui
Component=gb.db
Authors="Timothy Marshal-Nichols\ntimothy.marshal-nichols@ntlworld.com"
Environment="GB_GUI=gb.qt"
Environment="GB_GUI=gb.gtk"
TabSize=2
Translate=1
Language=fr

View file

@ -204,7 +204,7 @@ End
Private Function FileFilter(Optional All As Boolean = False) As String[]
Dim filter As New String[]
If All Then
filter.Add("*.png *.jpeg *.jpg *.bmp *.gif *.xpm")
filter.Add("*.png;*.jpeg;*.jpg;*.bmp;*.gif;*.xpm")
filter.Add("All Graphics")
End If
filter.Add("*.png")

View file

@ -140,7 +140,7 @@ gSplitter::gSplitter(gContainer *parent, bool vert) : gContainer(parent)
g_signal_connect_after(G_OBJECT(curr), "size-allocate", G_CALLBACK(cb_size_allocate), (gpointer)this);
}
void gSplitter::insert(gControl *child)
void gSplitter::insert(gControl *child, bool realize)
{
GtkWidget *w = child->border;
GtkWidget *tmp;
@ -172,7 +172,7 @@ void gSplitter::insert(gControl *child)
unlock();
gContainer::insert(child);
gContainer::insert(child, realize);
//updateVisibility();
//emit(SIGNAL(onResize));

View file

@ -43,7 +43,7 @@ public:
void (*onResize)(gControl *sender);
//"Private"
virtual void insert(gControl *child);
virtual void insert(gControl *child, bool realize = false);
virtual void remove(gControl *child);
void updateChild(GtkWidget *wid = 0);
void updateVisibility();

View file

@ -60,7 +60,7 @@ static QString get_filter(void)
if (s.length())
s += ";;";
s += TO_QSTRING(*((char **)GB.Array.Get(dialog_filter, i * 2 + 1)));
s += " (" + filter + ")";
s += " (" + filter.replace(";", " ") + ")";
}
s += ";;";

View file

@ -60,7 +60,7 @@ static QString get_filter(void)
if (s.length())
s += ";;";
s += TO_QSTRING(*((char **)GB.Array.Get(dialog_filter, i * 2 + 1)));
s += " (" + filter + ")";
s += " (" + filter.replace(";", " ") + ")";
}
s += ";;";