Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pygobject pygobject
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 279
    • Issues 279
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • pygobjectpygobject
  • Issues
  • #457

Closed
Open
Created Feb 09, 2021 by GeoLang@George-Langroudi

GTK4 Creating a Gtk.Expression does not return a GObject

When creating a GtkExpression, get the following error:

/app/share/flashcards/flashcards/DeckManager.py:82: Warning: g_object_get_qdata: assertion 'G_IS_OBJECT (object)' failed
  base_expression = Gtk.PropertyExpression.new(Gtk.ListItem, base_expression, "item")
/app/share/flashcards/flashcards/DeckManager.py:82: Warning: g_object_is_floating: assertion 'G_IS_OBJECT (object)' failed
  base_expression = Gtk.PropertyExpression.new(Gtk.ListItem, base_expression, "item")

Then, using this GtkExpression object to do anything returns TypeError: expected GObject but got <gi.repository.Gtk.PropertyExpression object at 0x7f65a021d4f0>

For Example

# creating a more complex expression
front_expression = Gtk.PropertyExpression.new(CardModelItem, base_expression, "front")
# or creating a filter using that (incomplete) expression
filter = Gtk.StringFilter.new(base_expression)

Both have the same error, TypeError: expected GObject but got <gi.repository.Gtk.PropertyExpression object at 0x7f65a021d4f0>

Assignee
Assign to
Time tracking