Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geany: Support for GTK2 and GTK3 #53409

Closed
wants to merge 2 commits into from
Closed

Geany: Support for GTK2 and GTK3 #53409

wants to merge 2 commits into from

Conversation

frlan
Copy link
Member

@frlan frlan commented Jan 4, 2019

Motivation for this change

Support both GTK2 as well as GTK3 for Geany.

Things done

The change keeps the current defaults for both used GTK as well as VTE.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Keep GTK2 as default allowing building of Geany with GTK3
@jtojnar
Copy link
Contributor

jtojnar commented Jan 4, 2019

Is not this overkill? Why not just use the maintained library?

@frlan
Copy link
Member Author

frlan commented Jan 4, 2019

@jtojnar GTK3? My thought was as long as there is Xfce 4.12 around GTK2 support should be kept and I decided against switching the default for now. I'm totally fine on defaulting to GTK3 but at least option for GTK2 should be kept for some time IMHO

@veprbl
Copy link
Member

veprbl commented Jan 5, 2019

This PR doesn't add support for anything, it just renames parameters and changes code formatting. It seems like you can already do everything you want in current nixpkgs: geany.override { gtk2 = gtk3; }

@veprbl
Copy link
Member

veprbl commented Jan 15, 2019

Is it possible to just switch to gtk3? Renaming gtk2 to gtk doesn't magically add support for gtk3. In my mind, support means that we are building those variants and fixing them when needed. If you are willing to (co-)maintain geany, I don't see a problem why we can't build both gtk2 and gtk3 versions.

cc @frlan as geany maintainer

@jtojnar
Copy link
Contributor

jtojnar commented Jan 15, 2019

When building with GTK3, we will also need to add wrapGAppsHook to dependencies so the relevant settings can be found.

@veprbl
Copy link
Member

veprbl commented Jan 15, 2019

@jtojnar Good point. And that currently breaks darwin build, IIRC. So then this PR is incomplete because it doesn't implement wrapGAppsHook?

@jtojnar
Copy link
Contributor

jtojnar commented Jan 16, 2019

Yup. Without wrapGAppsHook, the file chooser dialogue might crash the application due to missing GSettings schemas.

@aanderse
Copy link
Member

aanderse commented Aug 4, 2019

@frlan are you able to address the above comments and continue with this PR?

@frlan
Copy link
Member Author

frlan commented Aug 8, 2019

Yes, I will.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants