Learning gtkDialog (pmenu project)

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Message
Author
User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#21 Post by jemimah »

This latest Pmenu is really quite nice. I've added it to Puppeee 4.4 and I'm hoping Barry will add it to woof soon.

afishe2000
Posts: 37
Joined: Fri 29 Jan 2010, 16:09

#22 Post by afishe2000 »

Thanks to all for the kind words.

It is fairly amazing what can be done with gtkDialog considering it's limitations.

big_bass
Posts: 1740
Joined: Mon 13 Aug 2007, 12:21

#23 Post by big_bass »

Hey afishe2000

well I made another small edit and added the Exec=
to see the code used to launch the desktop with

*I added an icon this time and desktop so it could be packaged
for another version (I use a TXZ format)

the reason I hacked out this part of the code is because it can be re used
for other apps the way you set up the reading of the comments is very clever :D




Joe
Attachments
desktop-edit2.png
(43.5 KiB) Downloaded 1991 times
desktop_view2.tar.gz
(20.85 KiB) Downloaded 549 times

afishe2000
Posts: 37
Joined: Fri 29 Jan 2010, 16:09

#24 Post by afishe2000 »

See the first post for more details...

pmenu-3.0.0.pet

The pet for 3.0.0 REQUIRES /usr/bin/switch2 from gtk-theme-switch-i386.pet.

Jeff

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#25 Post by jemimah »

After I run pmenu, depending on what gtk theme I was using, the gtk menus are messed up - the highlight color doesn't show.

Do you have any idea if it can be fixed? Otherwise, it's brilliant.

afishe2000
Posts: 37
Joined: Fri 29 Jan 2010, 16:09

#26 Post by afishe2000 »

Hum,

That's not good, trying to recreate it...

afishe2000
Posts: 37
Joined: Fri 29 Jan 2010, 16:09

#27 Post by afishe2000 »

jemimah,

Ah, found the issue - seems to happen to the right click menus.

Looking to see if zigbert's code causes the same problem?

Just wondering if it's a gtk-theme-switch problem or if I implemented his technique incorrectly.

Thanks,

Jeff

afishe2000
Posts: 37
Joined: Fri 29 Jan 2010, 16:09

#28 Post by afishe2000 »

Ok,

After further research I cannot recreate the problem.

I'm switching between the Brushed and Clearlooks themes using CHThemes.

Brushed looks perfect.

Clearlooks has white highlight text and is hard to read when you use the right click menus. (That is what I thought the problem was.)

This is a problem on my machine with the theme straight out of the box un-modified.

Maybe you can post a screenshot of the problem.

Unless you are talking about "Atom", "Barbee", "Celeron"... themes.

Jeff

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#29 Post by jemimah »

I have the problem with both Brushed and Faraway. (No problem with IceWM themes).
It is a problem with the right click menus - you can't tell what item you're hovering over.

A screenshot would just look like a menu with nothing highlighted.

afishe2000
Posts: 37
Joined: Fri 29 Jan 2010, 16:09

#30 Post by afishe2000 »

Here are two screen shots.

Is this what we are talking about?
Attachments
Clearlooks.png
(15.67 KiB) Downloaded 1770 times
Brushed.png
(40.22 KiB) Downloaded 1770 times

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#31 Post by jemimah »

Both of those are working. When it breaks, there is no highlight at all.

I'll play with it again when I get home from work.

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#32 Post by jemimah »

The problem seems to only affect ROX. And maybe it's only ROX-2.10 from Puppeee4.4 and Fluppy05.

afishe2000
Posts: 37
Joined: Fri 29 Jan 2010, 16:09

#33 Post by afishe2000 »

Downloaded a fresh copy of 4.4 beta 1 and put in on my SD card.

Running Rox as my desktop and Icewm as my windows manager.

Still can't recreate the problem.

If we can't figure it out, I'll revert back to 2.0.1 version without the icons, add the Exec data and develop from there.

Jeff

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#34 Post by jemimah »

I'll try it on a fresh install later today. Maybe it's only my dev box - it does get hosed up from time to time. :)

afishe2000
Posts: 37
Joined: Fri 29 Jan 2010, 16:09

#35 Post by afishe2000 »

Ok,

Finally able to duplicate the problem, and it's a weird one.

I'm using a fresh full install of Puppeee 4.4 beta 2.

Change your theme to Brushed.

Open Chrome and Geany and test the menus work normally.

Open pmenu and select a program from either list so the icon shows.

While pmenu is still open test the menus on Chrome and Greany. (Should function normally)

Close pmenu and check the menus again. (No highlighting for the menu system)

Close and reopen Chrome and Greany and check the menus again. (Should function normally)

You can also fix the problem by re-applying the theme.

Doesn't seem to effect Firefox, still checking other programs.

May take some research to figure this one out....

Jeff

its-me-again
Posts: 109
Joined: Thu 29 Apr 2010, 05:23

#36 Post by its-me-again »

Hi in quirky 1.2 pmenu 3.0.0 crashes the desktop background and all apps currently running. is this normal.

its-me-again
Posts: 109
Joined: Thu 29 Apr 2010, 05:23

#37 Post by its-me-again »

afishe2000 wrote:Ok,

Finally able to duplicate the problem, and it's a weird one.

I'm using a fresh full install of Puppeee 4.4 beta 2.

Change your theme to Brushed.

Open Chrome and Geany and test the menus work normally.

Open pmenu and select a program from either list so the icon shows.

While pmenu is still open test the menus on Chrome and Greany. (Should function normally)

Close pmenu and check the menus again. (No highlighting for the menu system)

Close and reopen Chrome and Greany and check the menus again. (Should function normally)

You can also fix the problem by re-applying the theme.

Doesn't seem to effect Firefox, still checking other programs.

May take some research to figure this one out....

Jeff
Jeff what version of pmenu are you using. you have an old puppy version. try the older ones. from here http://www.murga-linux.com/puppy/viewtopic.php?t=40277

PenguinPupLin
Posts: 130
Joined: Fri 23 Dec 2011, 09:21
Location: The Little Red Dot

#38 Post by PenguinPupLin »

Sorry,newbie question. After I've downloaded the pmenu-3.0.0.pet which is actually a pupzip tar.gz file ,and the required gtk...pet, what do I do? Pls bear with me,usually I just click the pet and it would auto install.
I am keen to use this tool in puppy 431, Wary 511 and 522, 214X-TOP9 and Lighthouse . Thanks in advance.

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#39 Post by jemimah »

Try this one.
Attachments
pmenu-0.1.pet
(6.51 KiB) Downloaded 786 times

PenguinPupLin
Posts: 130
Joined: Fri 23 Dec 2011, 09:21
Location: The Little Red Dot

#40 Post by PenguinPupLin »

'That simply works,thanks so much;instead of hunting high and low for the latest pmenu.pet to update the original/default pmenu editor,greedy me :oops: .
Btw,before you came to my rescue,I've carelessly or accidentally deleted the opera icon on the desktop in the usr/share/applications folder and it became a triangle with exclamation mark inside but not linked to anything,how do I restore or remove this "hanging" icon?
Edit: It's OK,I've figured out how to remove or edit the menu item or put one on the desktop.

Post Reply