Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Eye of GNOME Eye of GNOME
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 97
    • Issues 97
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • Eye of GNOMEEye of GNOME
  • Merge requests
  • !131

Use last features provided by glib and some cleanups

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Krifa75 requested to merge Krifa75/eog:update into master Mar 17, 2022
  • Overview 11
  • Commits 57
  • Pipelines 7
  • Changes 90

Hi,

this MR intends to use last features provided by glib and replacing the include guards by pragma once.

The last features from GLib I'm talking about are :

  • Using g_autoptr/g_clear_*
  • Replacing the boilerplate code by G_DECLARE_*

What I wish to do at the same time :

  • Creating an ui file for each source file
  • Removing unnecessary includes (for example eog-thumbnail.c include eog-list-store.h but is not used)
  • Removing the private structure (changing G_DEFINE_TYPE_WITH_PRIVATE with G_DEFINE_FINAL_TYPE)
  • (Don't know if it's a convention) Renaming the variable of the class by self (example: eog_thumb_nav_foo (EogThumbNav *self)).

I'm probably wrong, but I think it may be a good start before porting to GTK4 especially using the ui files.

This is just a start but if you don't agree with this please let met know so that I close the MR and we forget this :)

Thanks ! 😄

Edited Mar 23, 2022 by Krifa75
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: update