[Done] CanvasGadget OpenGadgetList (CloseGadgetList() bug ???

Post bugreports for the Linux version here
Joris
Addict
Addict
Posts: 857
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

[Done] CanvasGadget OpenGadgetList (CloseGadgetList() bug ???

Post by Joris »

Last edited by Joris on Mon May 16, 2022 6:50 am, edited 1 time in total.
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
Joris
Addict
Addict
Posts: 857
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: CloseGadgetList() bug ???

Post by Joris »

Fred, I hope you'll find some time to look at this one.

Thanks.
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
User avatar
mk-soft
Addict
Addict
Posts: 3792
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: CloseGadgetList() bug ???

Post by mk-soft »

OpenGadgetList failed with CanvasGadget

Code: Select all


Procedure Main()
  Protected dx, dy
  
  If OpenWindow(0, 0, 0, 220, 220, "CanvasGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
    dx = WindowWidth(0)
    dy = WindowHeight(0)
    
    CanvasGadget(10, 10, 10, dx - 20, dy - 50, #PB_Canvas_Container)
    CloseGadgetList()
    
    ButtonGadget(0, 10, dy - 35, 100, 30, "Add")
    
    Repeat
      Select WaitWindowEvent()
        Case #PB_Event_CloseWindow
          Break
          
        Case #PB_Event_Gadget
          Select EventGadget()
            Case 0
              OpenGadgetList(10)
              ButtonGadget(1, 20, 20, 100, 30, "Remove")
              CloseGadgetList()
            Case 1
              FreeGadget(1)
              
          EndSelect
      EndSelect
    ForEver
    
  EndIf
EndProcedure : Main()
[12:08:00] Warte auf den Start des Executable...
[12:08:00] Executable-Typ: Linux - x64 (64bit, Unicode)
[12:08:00] Executable gestartet.
[12:08:00] [WARNING] Zeile: 1
[12:08:00] [WARNING] GLib-GIO (DEBUG): _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
[12:08:04] [WARNING] Zeile: 23
[12:08:04] [WARNING] Gtk (CRITICAL): gtk_layout_put: assertion 'GTK_IS_LAYOUT (layout)' failed
[12:08:04] [WARNING] Zeile: 23
[12:08:04] [WARNING] Gtk (CRITICAL): gtk_widget_realize: assertion 'widget->priv->anchored || GTK_IS_INVISIBLE (widget)' failed
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Fred
Administrator
Administrator
Posts: 14729
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: CanvasGadget OpenGadgetList (CloseGadgetList() bug ???

Post by Fred »

Fixed.
Joris
Addict
Addict
Posts: 857
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: [Done] CanvasGadget OpenGadgetList (CloseGadgetList() bug ???

Post by Joris »

Thanks Fred.
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
User avatar
mk-soft
Addict
Addict
Posts: 3792
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: [Done] CanvasGadget OpenGadgetList (CloseGadgetList() bug ???

Post by mk-soft »

Work now ;)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply