[Gambas-user] DateBox popup transparency issue

Tobias Boege taboege at ...626...
Tue Sep 23 19:12:21 CEST 2014


On Tue, 23 Sep 2014, Willy Raets wrote:
> On di, 2014-09-23 at 18:36 +0200, Beno??t Minisini wrote:
> > Le 23/09/2014 17:46, Tobias Boege a ??crit :
> > > Hi,
> > >
> > > someone reported an issue with DateBox's chooser popup. After double-clicking
> > > on a date, the popup would stay halfways transparent and flicker according to
> > > the mouse movements. The attached screenshot kind of shows this. Project is
> > > also attached.
> > >
> > > After it didn't happen on my system, we found out that replacing gb.gui with
> > > gb.qt4 fixed the symptom. His system:
> > >
> > > [...]
> > >
> > > Regards,
> > > Tobi
> > >
> > 
> > I guess this is an Unity thing... By the way, it detects the desktop as 
> > being Gnome. If someone knows a way to detect that it is actually Unity.
> 
> Private $sUnityVersion As String
> 
> Private Function Unity() As Boolean
> 
>   Dim sOutput As String
>   Try Exec ["unity", "--version"] To sOutput
>   If Not (Error Or Len(sOut) = 0) Then
>     bUnity = True
>     $sUnityVersion = ExtractUnityVersion(sOutput)
>     Return True
>   Else
>     Return False
>   Endif
> 
> 
> Private Function ExtractUnityVersion(TextToParse As String) As String
>   
>   Dim iPosB, iPosE As Integer
>   iPosB = InStr(TextToParse, " ", 1) + 1
>   iPosE = InStr(TextToParse, "\n", iPosB)
>   Return Trim(Mid$(TextToParse, iPosB, iPosE - iPosB))
>   
> End
> 
> Important is to check this before checking for gnome!!
> 
> As far as I know it doesn't run with all window managers.
> It does run with: mutter, metacity, kwin and muffin.
> 

Wouldn't this just check if unity is installed? Doesn't mean it's running.

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk




More information about the User mailing list