Page 1 of 1

[Done] GLib (CRITICAL) warnings

Posted: Fri Aug 28, 2015 11:04 am
by Joubarbe
Hey !

Code: Select all

If OpenWindow(0, 0, 0, 355, 180, "TreeGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) 
  TreeGadget(0, 10, 10, 160, 160)                                         ; liste arborescente standard
  TreeGadget(1, 180, 10, 160, 160, #PB_Tree_CheckBoxes | #PB_Tree_NoLines); liste arborescente avec cases à cocher + sans lignes reliant les noeuds
  For ID = 0 To 1
    For a = 0 To 10
      AddGadgetItem (ID, -1, "Elément normal "+Str(a), 0, 0) ; si vous souhaitez ajouter une image, utilisez 
      AddGadgetItem (ID, -1, "Noeud "+Str(a), 0, 0)          ; ImageID(x) comme 4ème paramètre
      AddGadgetItem (ID, -1, "Sous-élément 1", 0, 1)         ; Ceux-là sont au premier sous-niveau 
      AddGadgetItem (ID, -1, "Sous-élément 2", 0, 1)
      AddGadgetItem (ID, -1, "Sous-élément 3", 0, 1)
      AddGadgetItem (ID, -1, "Sous-élément 4", 0, 1)
      AddGadgetItem (ID, -1, "Fichier "+Str(a), 0, 0) ; sous-niveau 0 à nouveau
    Next
  Next
  Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
This code is from the TreeGadget documentation topic. When I play with some menu, GLib errors are displayed, such as :
"[WARNING] GLib (CRITICAL): Source ID X was not found when attempting to remove it", where X is a variable number (never the same twice).

I suppose there's something I didn't install ?

Thanks.
(Linux Mint 17.2)

Re: GLib (CRITICAL) warnings

Posted: Sat Aug 29, 2015 5:40 pm
by Vera
Joubarbe wrote:When I play with some menu,
What do you mean? Which menu?

Re: GLib (CRITICAL) warnings

Posted: Wed Sep 02, 2015 4:23 pm
by Joubarbe
I mean, when I play with some gadget items (tree items).

Re: GLib (CRITICAL) warnings

Posted: Wed Sep 02, 2015 8:38 pm
by Vera
Ah - ok.
I had a look around and found a similar issue being reported as bug already.

It might be one - maybe leave a note there too ? GTK errors

Re: GLib (CRITICAL) warnings

Posted: Fri Sep 04, 2015 1:46 pm
by Joubarbe
Fixed with 5.40 (probably something to do with gtk2, now that PB switched to gtk3).