109
109
elif stype == 'exec':
110
widget = gtk.Button(_("_Launch"))
111
widget.connect('clicked', run_action, val)
112
p = Popen(['which', val.split()[0]])
114
widget.props.sensitive = False
115
widget.props.label = _("Unavailable")
110
widget = gtk.Button(_("_Unavailable"))
113
# check for existence
114
p = Popen(['which', val.split()[0]])
116
widget.props.sensitive = False
118
widget.connect('clicked', run_action, val)
119
widget.props.label = _("Launch")
122
for vname, vdesc in vals:
123
# check to see if it exists
124
p = Popen(['which', vname.split()[0]])
127
# take the first valid action
128
widget.connect('clicked', run_action, vname)
129
widget.props.label = vdesc
117
132
elif stype == 'label':
118
133
widget = gtk.Label()
119
134
widget.props.xalign = 0