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

port to gtk3 #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

port to gtk3 #108

wants to merge 1 commit into from

Conversation

BwackNinja
Copy link

Fixes #96 and does not retain gtk2 compatibility

@tastytea
Copy link
Contributor

tastytea commented Aug 24, 2021

Commit c847089 + this patch compiles and works mostly fine for me on Linux, GCC-10.3, GTK-3.24.

But I found 2 bugs: The credits view seems to miss the “interpret this as pango”-bit.

Screenshot of credits view with pango code visible.

Image → Crop… does not work, I get this error message. Edit: With “does not work” I mean the crop-window does not show up.

** (viewnior:24376): WARNING **: 23:11:48.957: /usr/share/viewnior/vnr-crop-dialog.ui:12:37 Invalid property: GtkDialog.has_separator

@BwackNinja BwackNinja force-pushed the master branch 2 times, most recently from 7a18414 to 49c97cf Compare August 24, 2021 21:42
@BwackNinja
Copy link
Author

Fixed those bugs along with broken dark background mode and some minor style issues.

@BwackNinja BwackNinja force-pushed the master branch 2 times, most recently from 4d7500e to 72c6737 Compare August 25, 2021 14:33
@BwackNinja
Copy link
Author

Fixed bugs I had introduced with fullscreen and the crop rectangle.

I tested whatever else that I could think of, and it looks like everything works.

@orbea
Copy link

orbea commented Sep 5, 2021

does not retain gtk2 compatibility

Why not? Would be good for backwards compatibility.

@BwackNinja
Copy link
Author

@orbea Backwards compatibility with what? Gtk2 is end of life and gtk3 has been available for over 10 years. Even xfce4's gtk3 port was finished over 3 years ago.

It's doable, and I've done that with older gtk3 ports like SpaceFM when gtk3 was still controversial, but unless there is a good example of where using gtk2 is preferable, or if Viewnior's maintainer requests gtk2 support, I don't see how keeping gtk2 compatibility would be more than a maintenance burden.

@ncmprhnsbl
Copy link

Seems to be an issue with the 'open image..' dialog, if selecting multiple images (ctrl+click) ...first image opens okay, but navigating to the second(and more) there's just : Fail to open file:<looks like recent clipboard history and/or random junk>:no such file or directory .
Then navigating back to the first image also fails.
Opening single image(ie the entire folder) is ok.
Open multiple images from a filemanager is ok.

Using arch, gtk3-3.24.30+62+g8d04980f38 and building from your fork..

@BwackNinja
Copy link
Author

@ncmprhnsbl This doesn't seem to be a gtk3 issue as I can reproduce the same with gtk2. It is probably a use-after-free issue. I'll see if I can resolve it regardless, but it would be best to open up a separate bug report to track that issue.

@BwackNinja
Copy link
Author

That's what it was. I'll make a pull request to fix it in the next few days, but for now here's a patch:

fix-use-after-free-multi-file.patch.txt

@ncmprhnsbl
Copy link

ah, yes, didn't think to check that.. issue #111 done..

@hellosiyan hellosiyan added this to the v2.0 milestone Nov 20, 2021
@qarkai
Copy link
Contributor

qarkai commented Nov 23, 2021

I believe GTK+3 migration should be removed from TODO in this PR.

@qarkai
Copy link
Contributor

qarkai commented May 24, 2022

Glade files data/vnr-*-dialog.ui still use gtk+ 2.12. I suggest to update them to at least gtk+ 3.16 (labels on vnr-preferences-dialog.ui have xalign property which was introduced in 3.16) and fix deprecation warnings.

@qarkai
Copy link
Contributor

qarkai commented Dec 2, 2022

There is difference in fullscreen mode. Gtk2 has gray background, Gtk3 has black background. In window mode both versions have same gray background.
@BwackNinja Could you fix this difference?
Upd. Ristretto has same behavior: gray background in window mode changes to black background in fullscreen. Probably it's Gtk3 feature. Background color could depend on chosen Gtk theme.

@BwackNinja
Copy link
Author

Sure. I'll take a look. It should be simple.

dimkr added a commit to dimkr/woof-CE that referenced this pull request Jan 13, 2023
dimkr added a commit to dimkr/woof-CE that referenced this pull request Jan 13, 2023
dimkr added a commit to dimkr/woof-CE that referenced this pull request Jan 13, 2023
dimkr added a commit to puppylinux-woof-CE/woof-CE that referenced this pull request Jan 13, 2023
@amosonn
Copy link

amosonn commented Nov 4, 2023

Any news on this? Can I help in some way?

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

Successfully merging this pull request may close these issues.

GTK 3/4 support?
7 participants