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 ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user