| Author |
Message |
plinej
Joined: 13 Aug 2006 Posts: 1517
|
Posted: Thu 07 Dec 2006, 18:46 Post subject:
a pic for Barry |
|
Here's a pic of burniso2cd (xdialog-gtk2 & gtk1)
| Description |
|
| Filesize |
53.53 KB |
| Viewed |
1579 Time(s) |

|
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6855 Location: Perth, Western Australia
|
Posted: Fri 08 Dec 2006, 03:09 Post subject:
|
|
Hmmm, this is what I get (displays ok gtk1 version)...
| Description |
|
| Filesize |
9.46 KB |
| Viewed |
1505 Time(s) |

|
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6855 Location: Perth, Western Australia
|
Posted: Fri 08 Dec 2006, 03:12 Post subject:
|
|
I'm using the latest patched version supplied by Dougal.
|
|
Back to top
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1517
|
Posted: Fri 08 Dec 2006, 09:41 Post subject:
|
|
I used Dougal's latest patches too. Here's my binary:
| Description |
|

Download |
| Filename |
Xdialog.tar.gz |
| Filesize |
27.28 KB |
| Downloaded |
782 Time(s) |
|
|
Back to top
|
|
 |
Dougal

Joined: 19 Oct 2005 Posts: 2505 Location: Hell more grotesque than any medieval woodcut
|
Posted: 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
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1517
|
Posted: 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
|
|
 |
Dougal

Joined: 19 Oct 2005 Posts: 2505 Location: Hell more grotesque than any medieval woodcut
|
Posted: 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
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1517
|
Posted: 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
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1517
|
Posted: 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
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6855 Location: Perth, Western Australia
|
Posted: 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?
| Description |
|
| Filesize |
11.76 KB |
| Viewed |
1324 Time(s) |

|
|
|
Back to top
|
|
 |
Dougal

Joined: 19 Oct 2005 Posts: 2505 Location: Hell more grotesque than any medieval woodcut
|
Posted: 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
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6855 Location: Perth, Western Australia
|
Posted: 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
|
|
 |
Dougal

Joined: 19 Oct 2005 Posts: 2505 Location: Hell more grotesque than any medieval woodcut
|
Posted: 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
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6855 Location: Perth, Western Australia
|
Posted: 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
|
|
 |
Dougal

Joined: 19 Oct 2005 Posts: 2505 Location: Hell more grotesque than any medieval woodcut
|
Posted: 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…
 |
| Description |
|

Download |
| Filename |
interface.c.gz |
| Filesize |
13.13 KB |
| Downloaded |
746 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
|
|
 |
|