Mut2 GUI in the works (GTK+)

Under development: PCMCIA, wireless, etc.
Message
Author
Jesse
Posts: 466
Joined: Sun 08 May 2005, 16:07
Location: Auckland, NZ

Mut2 GUI in the works (GTK+)

#1 Post by Jesse »

Hello,

I've got some time up my sleeves at the moment, and I thought I'd have a go at building a GTK+ GUI for mut2.

Here is a twigs and sticks in a box version, it doesn't do very much at the moment.

I'm posting this here for some feedback, as I'm not sure what the finished application should look like.

If you're curious to take it for a spin, download and extract the archive and run (click on) the extracted application file named "mut_gui". You will need to be running a 4.x version of puppy, one that has mut as an option in PMount, as mut2 itself is not included in this download.
Once you've tried it out, just delete it, nothing to install/uninstall.

Jesse
Attachments
mut_gui-test001.tar.gz
contains mut2 gui binary application 'mut_gui'
(49.3 KiB) Downloaded 518 times

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

#2 Post by big_bass »

hey Jesse
great to hear your back in action with mounting tools

Joe

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

boxpup 4.13 (xfce)

#3 Post by raffy »

From my Athlon 2+ Ghz (monster) PC:
Puppy user since Oct 2004. Want FreeOffice? [url=http://puppylinux.info/topic/freeoffice-2012-sfs]Get the sfs (English only)[/url].

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#4 Post by ttuuxxx »

Looking nice, could it be possible to have the amount of free space, and maybe use mount, unmount icons and maybe the rox icon like pmount does?, just an idea, I always like graphics better than words and since we already have lots of icons in puppy, just would be nice to dress it up a bit.
Mut has always been old reliable, if pmount fails, mut usually always takes care of it :) Great program:) probably in the top 5 of best puppy applications.
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#5 Post by Lobster »

Hi Jesse

Colour or icons as tttuuxxx suggests.
Also be aware of the hotplug option that is standard in Puppy now - very good too . . .
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#6 Post by mikeb »

I got big butts and I cannot lie........choose yer backend..


ps..those desktop icons don't like my vfat hda1 but pmount does

mike
Attachments
pmount.png
(39.38 KiB) Downloaded 1103 times

Jesse
Posts: 466
Joined: Sun 08 May 2005, 16:07
Location: Auckland, NZ

#7 Post by Jesse »

Hi Puppians,

Thanks for the feedback, I've been trying to get my head around some of the things that is going on with the GTK+ library, it seems that there is a buggy component in the GTK+ library, the GtkIconView in conjunction with a GtkTreeStore, which would have made it very easy for me to make it look like what mikeb has suggested.

It seems that adding in graphics shouldn't be too hard.

I must admit that the GTK+ library has some quite confusing aspects, it doesn't quite come across as "easy to use", except for a few of the more trivial things, I'm wondering if there is something out there that is more aligned with "easy to use"?

Jesse

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#8 Post by ttuuxxx »

Well was programming languages go, the next big thing is Vala and genie, Barry, Mu, are right into it now, Here's a few links
http://www.murga-linux.com/puppy/viewtopic.php?t=39560
http://www.puppylinux.com/blog/?viewDetailed=00595
http://www.puppylinux.com/blog/?viewDetailed=00810 <--- example of a basic text editor.
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#9 Post by mikeb »

Well that was made with gtkdialog...a bit quirky but only 3k as most of the work is done in the backends and mut is a particularily good one...fast too. I tried gtk-server for a while but has it's own oddities but is more like working with the oroginal gtk2 calls. The need to redraw is a drawback using these methods though the refresh was doen to about half a second.
Also missing out the redundant mount button for dev_save but leaving a rox button seemed a worthwhile simplification. The above was meant to be family friendly.
Tk/tcl...always seemed like chinese to me ...just slight modifications brought me out in a rash.
Vala and genie
sounds promising..something fresh.
Another thought was to have an autorefreshing pmount (or whatever) instead of the desktop icons....one application does all idea...only redrawing when something changed....or something in the taskbar?

mike

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#10 Post by ttuuxxx »

mikeb wrote:Well that was made with gtkdialog...a bit quirky but only 3k as most of the work is done in the backends and mut is a particularily good one...fast too. I tried gtk-server for a while but has it's own oddities but is more like working with the oroginal gtk2 calls. The need to redraw is a drawback using these methods though the refresh was doen to about half a second.
Also missing out the redundant mount button for dev_save but leaving a rox button seemed a worthwhile simplification. The above was meant to be family friendly.
Tk/tcl...always seemed like chinese to me ...just slight modifications brought me out in a rash.
Vala and genie
sounds promising..something fresh.
Another thought was to have an autorefreshing pmount (or whatever) instead of the desktop icons....one application does all idea...only redrawing when something changed....or something in the taskbar?

mike
Hey mike care to share your creation ? Maybe tar.gz it up and let me have a play with it? looks good.
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#11 Post by mikeb »

Hey mike care to share your creation ? Maybe tar.gz it up and let me have a play with it? looks good.
ttuuxxx
nah you really don't want to do that..it would cause rashes and such

mike

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#12 Post by mikeb »

seriously ttuuxxx...it's a serving suggestion and not tested on more obsure hardware. My point was to try and make a gui that's clear and friendly....there were a few variations. Indeed one aspect of gtk2 is that it's bulky..takes up a lot of room to convey very little.

mike

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

Re: Mut2 GUI in the works (GTK+)

#13 Post by ttuuxxx »

Jesse wrote:Hello,

I've got some time up my sleeves at the moment, and I thought I'd have a go at building a GTK+ GUI for mut2.

Jesse
Hi Jesse

I've been updating 2.14.1R and it uses MUT, the forum members have a couple of small issues with it, and I was wondering if maybe you could look at the issues?

Quote"6. MUT still returns a messy screen if you have volume labels. As shown in previous messages of mine.

7. MUT still doesn't show any partitions over hda9 (as previously reported) "

Here a picture of his "messy screen" his names of his partitions get written over by volume size, and like he said, he doesn't see 2 other partitions

Thanks for your time :)
ttuuxxx
Attachments
messy_mut.jpg
(31.45 KiB) Downloaded 1001 times
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#14 Post by mikeb »

I remember rearranging the layout of mut many moons ago...everything as a one liner seemed to work and minimise info..there's a copy of it buried somewhere..i'll post if if I find it

mike

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#15 Post by mikeb »

ok think this was it..on simplepup so cannot verify but was made for 2.12

mike
Attachments
mut.tcl.gz
(11.42 KiB) Downloaded 445 times

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#16 Post by ttuuxxx »

mikeb wrote:ok think this was it..on simplepup so cannot verify but was made for 2.12

mike
Thanks mike I'll give it to the forum member with the issues, probably should of given you the newer themed version that we are using in 2.14.1X lol it took hours to theme, change all the fonts and spaces etc.
oh well
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#17 Post by mikeb »

Ah I see.
On a side note I forgot how cute the world of 2.4 kernels is...56MB including wine!....alsa seems so messy and won't play with an ad1816 sound card..but I learnt loads about kernel modules lol.
I digress blatantly......and without the use of alcohol :D

mike

Jesse
Posts: 466
Joined: Sun 08 May 2005, 16:07
Location: Auckland, NZ

Re: Mut2 GUI in the works (GTK+)

#18 Post by Jesse »

ttuuxxx wrote:Hi Jesse

I've been updating 2.14.1R and it uses MUT, the forum members have a couple of small issues with it, and I was wondering if maybe you could look at the issues?

Quote"6. MUT still returns a messy screen if you have volume labels. As shown in previous messages of mine.

7. MUT still doesn't show any partitions over hda9 (as previously reported) "

Here a picture of his "messy screen" his names of his partitions get written over by volume size, and like he said, he doesn't see 2 other partitions

Thanks for your time :)
ttuuxxx
Hi Ttuuxx,

Have you tried this version of mut? It has a vertical scroll bar and possibly other fixes/updates in it too.

http://www.murga-linux.com/puppy/viewto ... 892#183158

Jesse

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

Re: Mut2 GUI in the works (GTK+)

#19 Post by ttuuxxx »

Jesse wrote:
ttuuxxx wrote:Hi Jesse

I've been updating 2.14.1R and it uses MUT, the forum members have a couple of small issues with it, and I was wondering if maybe you could look at the issues?

Quote"6. MUT still returns a messy screen if you have volume labels. As shown in previous messages of mine.

7. MUT still doesn't show any partitions over hda9 (as previously reported) "

Here a picture of his "messy screen" his names of his partitions get written over by volume size, and like he said, he doesn't see 2 other partitions

Thanks for your time :)
ttuuxxx
Hi Ttuuxx,

Have you tried this version of mut? It has a vertical scroll bar and possibly other fixes/updates in it too.

http://www.murga-linux.com/puppy/viewto ... 892#183158

Jesse
Hi I did the fix posted on that thread and packaged it up for the boys with the large partition numbers to try.
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

Jesse
Posts: 466
Joined: Sun 08 May 2005, 16:07
Location: Auckland, NZ

#20 Post by Jesse »

Yay! I've been able to get past some tricky aspects of the GTK+, the biggest issue I had was with having used some code from a tutorial example that didn't actually work. Well to be fair it all seemed very reasonable but didn't work as expected. Anyway I now seem to have popup menus working and hopefully I'm not leaking handles or memory. So I'll probably be able to make a gui version soon that works nicely (mount, unmount, etc...) and has a nice icon view too.

So I am now wondering about the visual content of icons to be used. This is possibly my trickiest problem to date :wink:
If I have an icon display where a physical drive has an icon of that drive (sda), what should the icon picture be for a partition on that same drive (sda1)?
The reason for the distinction between drive and partition is that mut can go in the direction of issuing commands to the drive, i.e. enter power saving sleep mode, eject the media, tray close, multimedia cd drive commands play/next/pause/stop.

Jesse

Post Reply