The start of the backend class

Review Request #3911 — Created March 16, 2025 and submitted

Information

hiya/hiya
default

Reviewers

The start of the backend class

Ran the unit tests under valgrind and called in the turtles.

Summary ID
The start of the backend class
9ed65defc17291d53c20fa4f9e9a3e835aa6893d
Description From Last Updated

The doesn't seems superfluous.

ivanhoeivanhoe

The doesn't seems superfluous.

ivanhoeivanhoe

Does data not count towards the n_params parameter of g_signal_new_class_handler?

ivanhoeivanhoe

Same question as on line 103.

ivanhoeivanhoe

Should add "if true" in front of "browse" here.

ivanhoeivanhoe

That seems like a weird way to set up the Enum. If it's intended to be like that, a comment …

ivanhoeivanhoe
There are no open issues
grim
ivanhoe
  1. 
      
  2. hiya/hiyabackend.c (Diff revision 2)
     
     
    Show all issues

    The doesn't seems superfluous.

  3. hiya/hiyabackend.c (Diff revision 2)
     
     
    Show all issues

    The doesn't seems superfluous.

  4. hiya/hiyabackend.c (Diff revision 2)
     
     
    Show all issues

    Does data not count towards the n_params parameter of g_signal_new_class_handler?

    1. Every signal callback gets a data object that is the value of data passed to g_signal_connect and is not counted as part of the signal definitition per g_signal_new*.

  5. hiya/hiyabackend.c (Diff revision 2)
     
     
    Show all issues

    Same question as on line 103.

  6. hiya/hiyabackend.h (Diff revision 2)
     
     
     
    Show all issues

    Should add "if true" in front of "browse" here.

  7. hiya/tests/test_backend.c (Diff revision 2)
     
     
     
    Show all issues

    That seems like a weird way to set up the Enum. If it's intended to be like that, a comment with the reasoning would be nice.

    1. The testbackend has no properties right now, but is overriding properties from the parent class. The property at index 0 is reserved, hence the PROP_0, but to keep things consistent in the code you set the first overridden property to the value of N_PROPERTIES. See the gplugin python plugin code for a more complete example https://keep.imfreedom.org/gplugin/gplugin/file/65b765ccd0b4/python3/gplugin-python3-plugin.c#l45.

  8. 
      
grim
ivanhoe
  1. Ship It!
  2. 
      
grim
Review request changed
Status:
Completed
Loading...