[Xfce-bugs] [Bug 14045] New: Add annotation to renamer method to improve introspection

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Thu Nov 30 16:02:19 CET 2017


https://bugzilla.xfce.org/show_bug.cgi?id=14045

            Bug ID: 14045
           Summary: Add annotation to renamer method to improve
                    introspection
    Classification: Xfce Core
           Product: Thunar
           Version: 1.7.0
          Hardware: PC (x86_64)
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: Thunarx
          Assignee: xfce-bugs at xfce.org
          Reporter: adamplumb at gmail.com
        QA Contact: nick at xfce.org
                CC: benny at xfce.org, hjudt at xfce.org
  Target Milestone: 1.8.0

Created attachment 7459
  --> https://bugzilla.xfce.org/attachment.cgi?id=7459&action=edit
Annotations patch

The ThunarxRenamer.get_menu_items method calls into the ThunarxRenamer classes
created by extensions (through C, python, or otherwise) and currently it is
marked as not introspectable by the g-ir scanner.  You can confirm this by
looking at the generated Thunarx-3.0.gir file and in that get_menu_items method
it says introspectable="0".  This happens because there is something about the
function arguments or return value that the g-ir scanner doesn't understand,
and it needs annotation. What this means is that for thunarx-python extensions,
their get_menu_items callback is going to be ignored and they will be unable to
add custom menu items.

I'm including a patch to add the needed annotations.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list