GTK2 / GTK3 - Display problems with Scrapbook X

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: FranklinDM, Lootyhoof

User avatar
mseliger
Fanatic
Fanatic
Posts: 114
Joined: 2016-02-17, 10:53
Contact:

GTK2 / GTK3 - Display problems with Scrapbook X

Unread post by mseliger » 2021-05-31, 06:26

I've a problem with the GTK3-versions of Palemoon / Basilisk-browser. When I use the Scrapbook X extension then the capturing dialog is different to the one with GTK2.

The arrow on the dropdown-box of the title is missing (or not shown) with GTK3 (but it works - there is a little free space, where you can click).

In Palemoon, GTK 2:
Palemoon GTK2
Palemoon GTK2
In Palemoon and Basilisk, GTK3:
Basilisk GTK3 / Palemoon GTK3
Basilisk GTK3 / Palemoon GTK3
Does someone know a solution?
Mit freundlichen Grüßen / Greetings
Maria
---
Ich bin ein Westfale, und zwar ein Stockwestfale, nämlich ein Münsterländer – Gott sei Dank! füge ich hinzu ...
Annette von Droste zu Hülshoff, Bei uns zu Lande auf dem Lande

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35602
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: GTK2 / GTK3 - Display problems with Scrapbook X

Unread post by Moonchild » 2021-05-31, 11:16

mseliger wrote:
2021-05-31, 06:26
Does someone know a solution?
The scrapbook X dev needs to either account for GTK3 widgets or include their own graphic for the widget.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Nuck-TH
Project Contributor
Project Contributor
Posts: 202
Joined: 2020-03-02, 16:04

Re: GTK2 / GTK3 - Display problems with Scrapbook X

Unread post by Nuck-TH » 2021-05-31, 12:24

Moonchild wrote:
2021-05-31, 11:16
The scrapbook X dev needs to either account for GTK3 widgets or include their own graphic for the widget.
It is editable <menulist>. No additional CSS rules set for this element. How else to account?

User avatar
Lootyhoof
Themeist
Themeist
Posts: 1569
Joined: 2012-02-09, 23:35
Location: United Kingdom

Re: GTK2 / GTK3 - Display problems with Scrapbook X

Unread post by Lootyhoof » 2021-05-31, 12:27

This actually could be a platform issue. It looks like the dropmarker for menulist[editable="true"] isn't being given any width in GTK 3 for some reason. SeaMonkey seemed to work around this in bug #1331208 with a small CSS hack - we could probably apply this cleanly to menulist.css if we want the same approach.

New Tobin Paradigm

Re: GTK2 / GTK3 - Display problems with Scrapbook X

Unread post by New Tobin Paradigm » 2021-05-31, 12:33

Looks like a solution to me but I would suggest using MOZ_WIDGET_GTK == 3 as the conditional because GTK2 doesn't require it and we still target GTK2 buildablity. This, also, does not mean Moonchild was incorrect as an extension developer CAN account for this somewhat on the edge of an edge case but it SHOULD be promoted to a platform issue.

Either way, If we want this in the Minor/Security release scheduled for next Tuesday it will have to be fixed today. Someone, open an issue.

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 784
Joined: 2020-11-03, 06:47
Location: Philippines
Contact:

Re: GTK2 / GTK3 - Display problems with Scrapbook X

Unread post by jobbautista9 » 2021-05-31, 14:54

Even without the conditional it seems to work fine in GTK2, so I don't think the conditional is needed.

I will be opening an issue and a PR applying the min-width fix.

This is what it looks like in GTK3 with the min-width fix:
gtk3fix.png
Compare to GTK2 (which has the min-width fix applied):
gtk3fix-on-gtk2.png
EDIT: Opened Issue #1774 (UXP) and Issue #1775 (UXP)
Image

merry mimas

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

Mima avatar by 絵虎. Pixiv post: https://www.pixiv.net/en/artworks/15431817

Image

User avatar
mseliger
Fanatic
Fanatic
Posts: 114
Joined: 2016-02-17, 10:53
Contact:

Re: GTK2 / GTK3 - Display problems with Scrapbook X

Unread post by mseliger » 2021-05-31, 16:34

Thank you all for your support :thumbup:.
Mit freundlichen Grüßen / Greetings
Maria
---
Ich bin ein Westfale, und zwar ein Stockwestfale, nämlich ein Münsterländer – Gott sei Dank! füge ich hinzu ...
Annette von Droste zu Hülshoff, Bei uns zu Lande auf dem Lande

New Tobin Paradigm

Re: GTK2 / GTK3 - Display problems with Scrapbook X

Unread post by New Tobin Paradigm » 2021-05-31, 17:08

Damn it, did EITHER of you test every GTK2 theme engine and every theme on every distro to make sure it won't be a problem? I know Moonchild didn't.

I don't give explicit instructions just so they can be arbitrarily ignored. Adding the preprocessor conditional (and a comment) as I suggested was the SAFE option to ensure it wouldn't introduce issues. I also wanted to test my self under a few conditions before merging after my nap. Which is why I said open an issue NOT pr and instamerge.

EVEN IF YOU ARE CORRECT AND NOTHING SCREWED UP WILL HAPPEN.. it still should have been better tested. Guess the rule is never take a nap because people will do whatever while you aren't watching every second of every day.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35602
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: GTK2 / GTK3 - Display problems with Scrapbook X

Unread post by Moonchild » 2021-05-31, 17:41

Did you want it fixed today OR NOT?!
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

New Tobin Paradigm

Re: GTK2 / GTK3 - Display problems with Scrapbook X

Unread post by New Tobin Paradigm » 2021-05-31, 17:50

Oh yeah, cause that's logic. No, not if the fix is going to have any possibility of causing issues with GTK2 styling.

All we know at this moment is it MIGHT NOT based on one screenshot of one theme on one control in one extension on one application on one distro that isn't even cited merged without any other testing by you who dismissed the issue in the first place.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35602
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: GTK2 / GTK3 - Display problems with Scrapbook X

Unread post by Moonchild » 2021-05-31, 17:55

You know what?
I'll back it out and it can wait just stop your complaining.

And do me a favour. Next time don't rush people then blow up because people don't test every possible contingency because you rushed them. If you want everything tested extensively on every distro then don't tell them to fix something RIGHT NOW. because that's asking the impossible. We still aren't using quantum development.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

New Tobin Paradigm

Re: GTK2 / GTK3 - Display problems with Scrapbook X

Unread post by New Tobin Paradigm » 2021-05-31, 17:59

I didn't even demand anyone do anything other than open an issue and I merely stated that it needs to be in today if it is going to be in the release next week. Today does not mean instantly. Just an hour of testing would have been needed but if you are gonna put this on me then don't continue your days-long pissy behavior when I get a little upset at being cut out of the equation and ignored for no reason.
Last edited by New Tobin Paradigm on 2021-05-31, 18:05, edited 1 time in total.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35602
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: GTK2 / GTK3 - Display problems with Scrapbook X

Unread post by Moonchild » 2021-05-31, 18:04

Sure. I won't continue my "pissy behaviour".
New Tobin Paradigm wrote:
2021-05-31, 17:08
did EITHER of you test every GTK2 theme engine and every theme on every distro to make sure it won't be a problem? I know Moonchild didn't.
You can do that in an hour? Good man if so. i don't believe it.

Or, you know, you could have just filed a follow-up that adds the #ifdef instead of getting upset and blaming everyone but yourself.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

New Tobin Paradigm

Re: GTK2 / GTK3 - Display problems with Scrapbook X

Unread post by New Tobin Paradigm » 2021-05-31, 18:07

I would build a GTK3 build then flip through a fuck ton of themes. It isn't that difficult but NOT having the conditional was not in the anticipated plan but if that was to be a thing it would need more extensive testing at least two builds and flipping through lots more themes.

When you ignore conditional states and don't include them you widen the scope of what COULD go wrong. THAT IS MY POINT HERE. That and being bypassed for no reason. also. there would be no reason to follow up and just, you know, add the ifdef if it hadn't been instamerged.

Now since you obviously think I am wrong.. Do explain WHAT and HOW what I said isn't the PROPER thing to do or are you just approaching it from the familiar standpoint of being mad at me because you think this is merely about me being upset with you making a decision I didn't approve of because I think I need to control everything cause if it is.. It ain't and I am sick of everyone assuming that shit.

But know what? I'm not going to do that. I'll take a page from your book and give up and just let whatever happens happen. Why don't we just get our barely existent linux developer to handle it instead cause obviously neither one of us is doing it right.

The ONLY decision I made incorrectly today was waking up from my nap. I should have just slept through till tomorrow.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35602
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: GTK2 / GTK3 - Display problems with Scrapbook X

Unread post by Moonchild » 2021-05-31, 18:29

I never said you were wrong code-wise. You are absolutely right.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

New Tobin Paradigm

Re: GTK2 / GTK3 - Display problems with Scrapbook X

Unread post by New Tobin Paradigm » 2021-05-31, 18:35

So if I am not wrong codewise and I KNOW I am not wrong testing wise.. Then WHY was it merged? Cause THAT is the point of contention.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35602
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: GTK2 / GTK3 - Display problems with Scrapbook X

Unread post by Moonchild » 2021-05-31, 18:46

New Tobin Paradigm wrote:
2021-05-31, 18:35
WHY was it merged? Cause THAT is the point of contention.
Because it was tested, just not as extensive as you'd like because of time restrictions.
New Tobin Paradigm wrote:
2021-05-31, 12:33
If we want this in the Minor/Security release scheduled for next Tuesday it will have to be fixed today. Someone, open an issue.
http://developer.palemoon.org/docs/release-engineering/
Tuesday - Firefox Release Day
The master branches will be placed under a "CLOSED TREE" type of condition where no high-risk patches and feature merges will be permitted until after merge day.
Mind you, Tuesday is in 3 hours for me.

If you'd rather I not merge PRs anymore on the platform, just let me know. I certainly can do without all this unnecessary animosity.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

New Tobin Paradigm

Re: GTK2 / GTK3 - Display problems with Scrapbook X

Unread post by New Tobin Paradigm » 2021-05-31, 18:59

Oh ffs. Just don't be so quick to instamerge PRs without testing being done. Also, with conditional to GTK3 only it isn't a big risk. As just GTK-anything it COULD have unintended consequences even if it might not. ALSO Tuesday is 9 hours away for me. That is why we generally stick to UTC but we also know that Firefox won't be released until -sometime- tomorrow and security patches will be days away. It is just good not to merge risky patches during that week and you know that.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35602
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: GTK2 / GTK3 - Display problems with Scrapbook X

Unread post by Moonchild » 2021-05-31, 19:36

I'm not gonna argue. Testing was done. The PR could be better. Everyone of us made mistakes here, be it in completeness or haste or clarity or demands or emotional response.
Want to make sure it lands? Then stop being here and redo the PR and get it tested and merged while I'm unconscious. G'night.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

New Tobin Paradigm

Re: GTK2 / GTK3 - Display problems with Scrapbook X

Unread post by New Tobin Paradigm » 2021-05-31, 20:06

It is in progress and I hope you do get some quality sleep.

Locked