Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 24 Dec 2014, 22:58
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Misc
a pic for Barry
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Author Message
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Thu 07 Dec 2006, 18:46    Post subject:  a pic for Barry  

Here's a pic of burniso2cd (xdialog-gtk2 & gtk1)
burniso2cd.jpg
 Description   
 Filesize   53.53 KB
 Viewed   1697 Time(s)

burniso2cd.jpg

Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7102
Location: Perth, Western Australia

PostPosted: Fri 08 Dec 2006, 03:09    Post subject:  

Hmmm, this is what I get (displays ok gtk1 version)...
xdialog-gtk2-nogood.gif
 Description   
 Filesize   9.46 KB
 Viewed   1761 Time(s)

xdialog-gtk2-nogood.gif

Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7102
Location: Perth, Western Australia

PostPosted: Fri 08 Dec 2006, 03:12    Post subject:  

I'm using the latest patched version supplied by Dougal.
Back to top
View user's profile Send private message Visit poster's website 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Fri 08 Dec 2006, 09:41    Post subject:  

I used Dougal's latest patches too. Here's my binary:
Xdialog.tar.gz
Description 
gz

 Download 
Filename  Xdialog.tar.gz 
Filesize  27.28 KB 
Downloaded  911 Time(s) 
Back to top
View user's profile Send private message 
Dougal


Joined: 19 Oct 2005
Posts: 2505
Location: Hell more grotesque than any medieval woodcut

PostPosted: Fri 08 Dec 2006, 10:04    Post subject:  

Barry: do you specify a size for that dialog?
In Jason's case the names are long so he gets a scrollbar, so I guess that allows the tag to be fully displayed...

I've actually encountered truncated tags in the past -- I think in the gtk1 version.

_________________
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Back to top
View user's profile Send private message 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Fri 08 Dec 2006, 11:38    Post subject:  

That's a good idea dougal,

try it after editing the following line:

Code:

#BURNERDRIVE="`Xdialog --title "Burniso2cd: Choose burner drive" --stdout --menubox "Choose the CD/DVD drive to burn to\n(/dev/scd0 or 0,0,0 format are SCSI drives,\n/dev/hda format are IDE/ATAPI drives)" 0 0 5 $SELECTIONX 2> /dev/null`"

BURNERDRIVE="`Xdialog --title "Burniso2cd: Choose burner drive" --stdout --menubox "Choose the CD/DVD drive to burn to\n(/dev/scd0 or 0,0,0 format are SCSI drives,\n/dev/hda format are IDE/ATAPI drives)" 400x200 5 $SELECTIONX 2> /dev/null`"
Back to top
View user's profile Send private message 
Dougal


Joined: 19 Oct 2005
Posts: 2505
Location: Hell more grotesque than any medieval woodcut

PostPosted: Fri 08 Dec 2006, 12:04    Post subject:  

I just remembered: it did happen to me with GTK1! When I was working on the xkb-config script.

I guess it's matter of a coincidence when the two fields are certain sizes... Probably nothing we can do about it.

_________________
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Back to top
View user's profile Send private message 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Sat 09 Dec 2006, 01:40    Post subject:  

How about editing the following (along with the previous modification):

Code:

#v2.0.0
#if [ "$MEDIATYPE" = "CD" ];then
# SCSIDRIVES="`cdrecord -scanbus 2>&1 | grep '[0-9],[0-9],[0-9]' | grep -v '*$' | tr '|' " " | tr '\t' '|' | cut -f 2,3 -d '|' | tr -s " " | tr "'" '_' | tr " " '_' | tr -s '_'`" #'
# ATAPIDRIVES="`probedisk | grep '|cdrom|' | grep '/dev/hd' | cut -f 1,3 -d '|' | tr " " '_' | tr -s '_'`"
#else
# ATAPIDRIVES="`probedisk | grep '|cdrom|' | grep '/dev/hd' | cut -f 1,3 -d '|' | tr " " '_' | tr -s '_'`"
# SCSIDRIVES="`probedisk | grep '/dev/scd' | cut -f 1,3 -d '|' | tr " " '_' | tr -s '_'`"
#fi
#SELECTIONS="$ATAPIDRIVES
#$SCSIDRIVES"
#SELECTIONX="`echo "$SELECTIONS" | tr '|' " " | tr "\n" " "`"

SELECTIONX="`probedisk | grep -i '|cd-*rom|' | cut -f 1,3 -d '|' | tr -s ' ' | sed -e 's/ /_/g' | sed -e 's/|/ /g' `"


One line to replace ten.

A modified line from pmount to get your cd/dvd drives. This will prevent burniso2cd adding all usb/scsi drives (like external hard drives) and just populate with cd/dvd drives. Maybe it will take care of your truncating problem too?

Of course some other modifications will need to be made throughout the script becasue there will be no need for the ATAPI parts and I don't have time to go through it right now since I'll be leaving for the weekend.

I don't believe you need to use ATAPI when using cdrecord anymore. I just use /dev/hdc or /dev/scd0 and it seems to work fine.

At least this part will need modified:

Code:

 #if [ ! "`echo "$CDR" | grep '/dev/hd'`" = "" ];then
#DEVDEV="ATAPI:$CDR"
# else
  DEVDEV="$CDR"
# fi
Back to top
View user's profile Send private message 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Sat 09 Dec 2006, 02:37    Post subject:  

Nevermind that obviously won't change the size of the first tag. Maybe you could just remove the '/dev/' part in the display so it will just say hdc instead.
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7102
Location: Perth, Western Australia

PostPosted: Wed 13 Dec 2006, 20:26    Post subject:  

Guys,
we need a fix in the source code. I think this should be treated as fairly
high priority, as I have been testing other scripts that use Xdialog and they ALL have a truncated tags column.

The very first window in burniso2cd has such a narrow first column that even "DVD" is truncated! See pic.

Maybe it has something to do with the new DejaVu fonts?
truncatedmore.gif
 Description   
 Filesize   11.76 KB
 Viewed   1444 Time(s)

truncatedmore.gif

Back to top
View user's profile Send private message Visit poster's website 
Dougal


Joined: 19 Oct 2005
Posts: 2505
Location: Hell more grotesque than any medieval woodcut

PostPosted: Thu 14 Dec 2006, 13:26    Post subject:  

This is really weird!

I think it is because of the fonts, since we didn't encounter it… have you tried using the gtk1 version with those fonts?

I'll try having a look at the code, but it's a bit of a problem trying to fix something if you don't encounter it…(and I don't know how or what might be the reason)

_________________
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7102
Location: Perth, Western Australia

PostPosted: Thu 14 Dec 2006, 15:26    Post subject:  

Dougal, maybe if you could find the code that sets the width of the first column, then just double the value. That should fix it.
Back to top
View user's profile Send private message Visit poster's website 
Dougal


Joined: 19 Oct 2005
Posts: 2505
Location: Hell more grotesque than any medieval woodcut

PostPosted: Fri 15 Dec 2006, 09:45    Post subject:  

BarryK wrote:
Dougal, maybe if you could find the code that sets the width of the first column, then just double the value. That should fix it.


I could try, but it's probably worth checking first if it's only that one type of dialog that has the problem...

_________________
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7102
Location: Perth, Western Australia

PostPosted: Fri 15 Dec 2006, 20:10    Post subject:  

Okay, it's not the font.
I changed /etc/gtk-2.0/gtkrc to use different fonts. It is currently
'DejaVu sans 12" however I tried "Sans 12" (which uses a Type1 font) and "Arial 12" (same as earlier Puppies). No difference, bug is still there.

So, I tried the old GTK1 version of Xdialog -- works perfectly.

So, the bug is in the new GTK2 version of Xdialog.
Back to top
View user's profile Send private message Visit poster's website 
Dougal


Joined: 19 Oct 2005
Posts: 2505
Location: Hell more grotesque than any medieval woodcut

PostPosted: Sat 16 Dec 2006, 09:19    Post subject:  

Ok, Barry, I looked at the code and have answers to two problems you encountered:

1) Long items being concatenated: there are maximum display lengths defined… for example, the menulist tags have a maximum of 128 pixels (interface.h, line 29).
So if you want to allow longer display names, let me know where and I'll look into it.

2) The burniso2cd bug: I got this in 2.12 and as far as I can see it is a gtk bug!
After the clist is filled with the data, a gtk autoresize function is run -- which apparently doesn't work well…
I created a workaround, where I get the length of the longest tag and use it to resize the column.
This length is in characters, while the column width has to be in pixels, so I just multiplied by 10 and it seems to work ok…
Another option will be to just set the tag column to be fixed to the maximum (128).

Anyway, try this and let me know if you think it should be tweaked some more.
That goes for you too, plinej…
interface.c.gz
Description 
gz

 Download 
Filename  interface.c.gz 
Filesize  13.13 KB 
Downloaded  880 Time(s) 

_________________
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Misc
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0835s ][ Queries: 13 (0.0105s) ][ GZIP on ]