summaryrefslogtreecommitdiff
path: root/gtk-recordmydesktop
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2006-09-18 06:25:24 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2006-09-18 06:25:24 +0000
commit5fb17e6efd666ec3cc6f422e9c9ded7ac7f4ab24 (patch)
tree058929e00d8bf56c480ca4c8a7c29801d57fd450 /gtk-recordmydesktop
parenta4ced2ab252185e95a04d8a531093c6655ccf978 (diff)
correct exit status messages
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@58 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'gtk-recordmydesktop')
-rw-r--r--gtk-recordmydesktop/rmdTrayIcon.py30
1 files changed, 15 insertions, 15 deletions
diff --git a/gtk-recordmydesktop/rmdTrayIcon.py b/gtk-recordmydesktop/rmdTrayIcon.py
index 720b3b3..69ea055 100644
--- a/gtk-recordmydesktop/rmdTrayIcon.py
+++ b/gtk-recordmydesktop/rmdTrayIcon.py
@@ -60,19 +60,19 @@ class trayIcon(object):
1,22050,'hw:0,0',63,10,"$DISPLAY",0,1,75,1]
exit_status={
0:'Success',
- 1:'Error while parsing the arguments.',
- 2:'Initializing the encoder failed(either vorbis or theora)',
- 3:'Could not open/configure sound card.',
- 4:'Xdamage extension not present.',
- 5:'Shared memory extension not present.',
- 6:'Xfixes extension not present.',
- 7:'XInitThreads failed.',
- 8:'No $DISPLAY environment variable and none specified as argument.',
- 9:'Cannot connect to Xserver.',
- 10:'Color depth is not 24bpp.',
- 11:'Improper window specification.',
- 12:'Cannot attach shared memory to proccess.',
- 139:'Segmentation Fault'
+ 1*256:'Error while parsing the arguments.',
+ 2*256:'Initializing the encoder failed(either vorbis or theora)',
+ 3*256:'Could not open/configure sound card.',
+ 4*256:'Xdamage extension not present.',
+ 5*256:'Shared memory extension not present.',
+ 6*256:'Xfixes extension not present.',
+ 7*256:'XInitThreads failed.',
+ 8*256:'No $DISPLAY environment variable and none specified as argument.',
+ 9*256:'Cannot connect to Xserver.',
+ 10*256:'Color depth is not 24bpp.',
+ 11*256:'Improper window specification.',
+ 12*256:'Cannot attach shared memory to proccess.',
+ 11:'Segmentation Fault'
}
@@ -177,9 +177,9 @@ class trayIcon(object):
dialog = gtk.Dialog(title=None, parent=None, flags=0, buttons=None)
label1=None
try:
- label1 = gtk.Label("Recording is finished.\nrecordMyDesktop has exited with status %d\nDescription:\n%s\n"%(status,self.exit_status[int(status)]))
+ label1 = gtk.Label("\t\tRecording is finished.\nrecordMyDesktop has exited with status %d\nDescription:%s\n"%(status,self.exit_status[int(status)]))
except:
- label1 = gtk.Label("Recording is finished.\nrecordMyDesktop has exited with uknown\nerror code: %d \n"%(status))
+ label1 = gtk.Label("\t\tRecording is finished.\nrecordMyDesktop has exited with uknown\nerror code: %d \n"%(status))
dialog.vbox.pack_start(label1, True, True, 0)
label1.show()
button = gtk.Button(label=None, stock=gtk.STOCK_OK)
© All Rights Reserved